| Grouping Projects/Resource groups |
|
 |
Index ‹ DotNet ‹ Microsoft Project
|
- Previous
- 1
- Visual C#.Net >> Enum questionSay, if I got this enum defined:
enum Colors { Red = 1, Green = 2, Blue = 4 }
If someone passes me a string with value "Red" , how can I Cast it to enum
or convert the variable so that it returns Colors.Red?
string mystring = "Red";
- 2
- Visual C#.Net >> Matching Same Results In Single StringI would like to use the Regular Expression search in the Find dialog in
VS.Net to find a pattern in a code file. I am not sure if a pattern can be
written for the Find dialog that matches my criteria though.
Basically, I want to find all occurances of:
i = i + 1
where i can be any valid variable name, but all matches of i will be the
same on both sides of the '='. So:
a = a + 1 ' match
b = b + 1 ' match
c = c + 1 ' match
d = c + 1 ' invalid
c = a + 1 ' invalid
If this is possible, what would the pattern be to match this? Remember,
this isn't normal Regular Expressions, this is for the Find dialog in Visual
Studio .Net itself (and not a program I am writing).
Thanks,
Mythran
- 3
- Visual C#.Net >> URGENTCusom dialog boxesDear All,
I am writing an app that does some syncronization with a mobile device. I
use the
System.Threading.Thread.Sleep(15000);
to sleep the main app thread for 15 sec till the sync is finished.
I want to show a form "Please Wait... while syncronizing" and when it's done
i close that form.
how can this be done?
i tried the following:
private void Sync_Connection()
{
SyncWindow wSync = new SyncWindow("Please Wait...");
wSync.Show();
abc();
this.cmnuConnect.Enabled = false;
this.cmnuDisconnect.Enabled = true;
this.SyncFiles(); //i sleep here
wSync.Close();
}
but this doesn't always show on top of the main form and if the main form is
clicked it gets focus. I tired wSync.ShowDialog() but it carries the
control to the wSync form and waits till the wSync form is closed.
Thanks a lot for your help really appreciated
Mustafa Rabie
- 4
- Microsoft Project >> Assigning Resources to part of a taskHi
Just wondering if anyone knows the easiest way of doing the following.
Fixed duration task of 5 days
2 Resources to be assigned
Resource 1 will be 100% for the 5 days - no problems there
Resource 2 will be 100% (or 8 hrs per day) for days 2, 3 & 4 (24 hrs in Total)
Under the 'Task Usage - Usage' view it is possible to put 0 hrs in day 1 and
day 5 for Resource 2, which is fine for the simple example above, but not
very practical if the task is a year long.
I have also tried using the Start and Finish date options under 'Assignment
Information' dialog box but this alters the task duration.
Any help is much appreciated.
Thanks
--
Robin
- 5
- Net Framework >> .NET Framework 2 & SyncToysI need to download .NET Framework 2.0.50727 to run SyncToys v1.4 but
am given three choices, namely : x86 version, x64 version and xIA64
version. Can someone tell me which one I need please? I have Win XP
Home.
Many thanks
Kate
- 6
- 7
- Visual C#.Net >> Accessing Mapped Network Drive from ServiceHi All,
I am trying to access a mapped network drive from a service that I have
created.
The service needs to create/delete folders/files on a network drive. When I
tried to connect to a folder on mapped network drive (eg. N:\Storage that
corresponds to \\FS1NS\SharedDir\), I get an error as "Could not find part
of path N:\".
I tried running the service in the Administrators account but the same
problem. The thing works if I directly access the network share
\\FS1NS\SharedDir\.
Can anybody please throw some light on whats happening here? Is there
anykind of restriction on access to the mapped drives when tried from a
service (it did work from a C# windows application).
Many thanks in advance
Regds,
Niloday
- 8
- Visual C#.Net >> Control doesn't repaint when using object with custom type converterI've made a custom groupbox control. Inside, as one of it's members is
CSimpleGradient object. CSimpleGradient is a wrapper class for gradient
usage. Basically it looks like that:
[TypeConverter(typeof(CSimpleGradientConverter))]
public class CSimpleGradient
{
private float m_GradientAngle;
private Color m_ColorA;
private Color m_ColorB;
// Properties
blah blah ...
// Constructor
public CSimpleGradient(float _angle, Color _colorA, Color _colorB)
{
this.m_ColorA = _colorA;
this.m_ColorB = _colorB;
this.m_GradientAngle = _angle;
}
#endregion
}
It uses custom type converter(ExpandableObjectConverter). It's code goes
like this:
internal class CSimpleGradientConverter : ExpandableObjectConverter
{
public override bool CanConvertFrom(ITypeDescriptorContext context, Type
sourceType)
{
if (sourceType == typeof(string))
{
return true;
}
return base.CanConvertFrom(context, sourceType);
}
// Overrides the ConvertFrom method of TypeConverter.
public override object ConvertFrom(ITypeDescriptorContext context,
CultureInfo culture, object value)
{
if (value is string)
{
string[] v = ((string)value).Split(new char[] {','});
float angle = float.Parse(v[0]);
Color colorA = Color.FromName(v[1].Trim());
Color colorB = Color.FromName(v[2].Trim());
return new CSimpleGradient(angle, colorA, colorB);
}
return base.ConvertFrom(context, culture, value);
}
// Overrides the ConvertTo method of TypeConverter.
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo
culture, object value, Type destinationType)
{
if (destinationType == typeof(string))
{
return ((CSimpleGradient)value).Angle + "," +
((CSimpleGradient)value).ColorA + "," + ((CSimpleGradient)value).ColorB;
}
return base.ConvertTo(context, culture, value, destinationType);
}
}
In my custom group-box class, CSimpleGradient properties looks like this:
[Category("Appearance_Header"), Description("Gets/Sets header gradient color
fill/gradient angle if HeaderFillType is set to Gradient."),
RefreshProperties(RefreshProperties.All),
DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public CSimpleGradient HeaderGradientColor
{
get{return this.m_HeaderGradient;}
set
{
this.m_HeaderGradient = value;
this.Invalidate();
}
Everything works fine, but after changing values of CSimpleGradent object I
have to ALT+TAB forth and back to designer editor for changes to be
repainted.
I'm not sure why it doesn't work automatically since there is Invalidate
call in property's SET.
Please help! Thanks in advance!
D.
- 9
- Visual C#.Net >> Calling Unmanaged CodeWe have a ton of code already written in C++ and the code
is compiled into dynamically linked dll's. What is the
easiest way to call this code, or is it even possible to
call the code. We do export serveral classes from those
dll's right now. Any direction on this would be
appreciated.
Thanks
- 10
- Visual C#.Net >> Problems with C# unsafe code...I'm calling the C++ function below from C#:
GENCLIENT_API int CleanseEx(char ncSystem, const char *strServer,
const char **pNames, const char **pInputData,
const char **pRules, char ***pOutputData);
I can call this function from a console application however when I attempt
to use the same code from within a web service I get the following error:
*********************************************************
An unhandled exception of type 'System.Web.Services.Protocols.SoapException'
occurred in system.web.services.dll
Additional information: Server was unable to process request. --> Object
reference not set to an instance of an object.
*********************************************************
I'm spinning my wheels trying to figure out if this is a pointer problem or
a code access securing problem, etc... Below are the variables and method
call from my C# application:
[DllImport(@"d:\tempdlllocation\genclient.dll",
arSet.Ansi,
EntryPoint="CleanseEx")]
private unsafe static extern int CleanseEx(char SystemId, string Server,
string[]Names, string[] InputData, string[] Rules, byte*** OutputData);
int retCode;
char _SystemId = 'G';
string _Server = "TestServer";
string[] _Names = new string[100];
string[] _Rules = new string[100];
string[] outputData = new string[100];
...... the various arrays are populated with data values.
unsafe
{
byte ** pOutput = null;
retCode = CleanseEx(_SystemId, _Server, _Names, _InputData, _Rules, &pOutput);
.... code fails on the call above when calling from web service.
}
......
Any help or recommendations would be really appreciated.
- 11
- ADO >> EndCurrentEdit does not push changes into the datasetI have a Windows Form written in C# with a non-edit DataGrid showing a
list of records. When the user selects a row in the grid, the full
details of the record display in a panel which contains textboxes and
comboboxes. The underlying datatable that the detail panel is bound to
only ever has one record at a given time.
When the user edits the detail record and then issues a save command by
clicking the save button, all works well. This is because the focus
moves from the current control and current record to the button.
However if the user issues a Save by pressing the F2 key (caught by the
form's ProcessCmdKey), the focus remains in the current control and
current record. Under these circumstances, the EndCurrentEdit will not
push the changes into the dataset.
I tried calling EndCurrentEdit() on each control (in the control leave
event) in the following ways:
control.BindingContext[dataset.Tables[datatablename]].EndCurrentEdit();
if (control.DataBindings.Count > 0)
{
control.DataBindings[0].BindingManagerBase.EndCurrentEdit();
}
I tried calling EndEdit() on the datatable row
dataset.Tables[datatablename].Rows[rownumber].EndEdit()
I then implemented a BindingManagerBase as follows:
bindMgrBase = this.BindingContext [mydataset, datatablename];
and on save called
bindMgrBase.EndCurrentEdit()
I tried
1) moving programmatically to the next textbox control
2) moving programmatically back to the datagrid
3) moving programmatically to a button
I suspect that the EndCurrentEdit() requires the user to move off the
current record. That is difficult to test as the record detail panel
only ever has one record at a given time.
Is there any way to make this work? Anyone have any ideas for me?
...Susan
- 12
- Visual C#.Net >> VSTO Issue : Customize the user properties dialog in Outlook 2007Hi fellows,
I want to customize the dialog box that appears when you double click
any entry in the address box dialog in
outlook 2007. I searched the web with many saerch keys but no luck.
The dialog box seems to show the properties of an ExchangeUser object.
If anyone has Windows Live Messenger installed he will find the
Actions button customized with 2 new items
in the drop down action list.
I think VSTO is the best way to go but I do not know where to start
Appreciate any hints
Thanks
- 13
- 14
- Winforms >> Active Directory and VB.NetHi all,
I'm trying to write an app that will "popup" a nice form when the
user's mail submenu is selected at the AD console so I can add, modify,
delete and check the mail addresses and aliases of that user.
In vbscript, in order to bind to the "selected user" at the AD Users &
Computers console, the Wscript.Arguments is used.
ex. strDN = Wscript.Arguments(0)
Set objUser = GetObject("LDAP://" & strDN)
I've found out how to bind to a specific user (with DirectoryEntry) in
vb.net but can't see how to "catch" the DN of the selected user.
Is there a way to accomplish something similar with vb.net?
Many thx,
Elena
- 15
- Net Framework >> System.Web.Mail Namespace questionsI've been looking over how to send emails using ASP.NET
and I can't seem fine how to apply a username and password
for a SMTP server that requires authentication.
If this is possible, can anyone point me to some
documentation, and if its not, anyone know of a work
around?
|
| Author |
Message |
rustydog

|
Microsoft Project >> Grouping Projects/Resource groups
Hello,
I'm using Project 2003 standard.
I have several projects consolidated in one master project. My resources are
divided in several groups: A, B, C
Sometimes, theire are several ressource from different groups on the same
task.
Now, I need to edit Work statistics grouped by project then by resource
group, on a monthly timescale.
Such as:
Project1,
Group A
Group B
Project2
Group A
Group C
But Project generates "combined" groups such as A;B that pollute all the
statistics.
How to avoid this? I tried the "Groups assignments, not tasks" option
without success.
Thanks for help
DotNet458
|
| |
|
| |
 |
| |
 |
Index ‹ DotNet ‹ Microsoft Project |
- Next
- 1
- Net Framework >> switch between local and remote (web) Business LogicHi Everyone,
i need some ideas for the following problem:
I am developing a three tier architecture. The client should be
implemented in WPF to be able to easily port the application to a web
application later on.
The Business and Data Tier should be easily portable from local
computer to a remote one somewhere on the web. So the only possible
Link between Client and Business Logic would be a Webservice, wouldn't
it?? In the local scenario I don't want to use a Webservice but only
the usual construct of interfaces to connect the layers.
What would be the best approach here ? Maybe you guys could push me
into some direction ??
I thought of implementing a second Assembly on the client which on one
side the client connects to, to send and receive it's data and which
can on the other side be configured easily to use either local
connection or the remote Webservice connection.
Thanks,
Oliver
- 2
- Dotnet >> Implementing Interfacehi all,
How to implement an interface in ASP.Net?.
Consider my interface name is IExample. Then whatz mean by
IExample ie = (IExample)obj1
Kindly let me know about this implementing interface in detail.
Thanks in advance.
Regards,
Gomathi
- 3
- Dotnet >> event handlerPlease help.
My bread is at stake.
How do i know if a event has a handler associated with it?.
I dont want to keep counters myself.
Please , if any reader can reply, sedn a direct reply mail also to
shunya@vsnl.com
Mahesh Naik
- 4
- Visual C#.Net >> MetaprogrammingIf you do metaprogramming in C#, is the generated code garbage collected or
does it leak indefinitely?
--
Dr Jon D Harrop, Flying Frog Consultancy
http://www.ffconsultancy.com/products/?u
- 5
- Microsoft Project >> messy gantt charts and ordering tasksHi,
with projects with a large number of linked tasks it can quickly become a
mess in the Gantt chart, as task orders are changed and added. I know it is
possible to fix this by clicking on the task and moving it up or down the
sheet, but this can become tedious with so many tasks. Is there any faster
way to do this?
Kind Regards
- 6
- ADO >> Jet database engine could not find the object 'Expr...'I have been connecting to MS-Access database using Jet 4.0
from C#.NET. My application works finely on my computer on which I've
made the application.
But I observed a strange behavior. When I run my application on other
computer that is installed .NET Framework, I get the following error
"System.Data.OleDb.OleDbException: The Microsoft Jet
database engine could not find the object 'Expr1007'.
Make sure the object exists and that you spell its name
and the path name correctly.".
When I open Access mdb in the UI and paste the query string into the
SQL window of the query designer and executes it, I get no error, the
query results correct rows. I do this test on both other and my
computer.
What's the solution?
Thanks in advance
... Orgil
- 7
- Visual C#.Net >> Object monitoring - listener?Hello,
In one class, I have a struct containing data for the application, how
can I have something monitor the variable for changes. If the struct
changed, some function will be called.
I'm reading about delegate, should it work?
- 8
- Dotnet >> ZIP in .NETHi..
My coleagues-programmers are coping with a problem. We want to find a way
to export our project (folder structure) into a single file.
We tought ZIP would be suitable for also utilizing a light compression.
Is there any free code or free library for C# that would support this
zipping, but including spanning, in case the date exceedes 2 GBs?
It must support the spanning. Withuout it, it is meaningless.
Thanks,
Kris
- 9
- 10
- Dotnet >> c# lesson for c++ developersI was sitting on my porch reading 'c# Class Design' from WROX press and i
thought this paragraph was interesting:
______
Where reference types are concerned, C++ developers will need to get used to
not thinking in terms of pointers. Although this is more-or-less what
happens behind the scenes, the CRL moves objects around on the managed heap
and adjusts references on the fly while the application is running. SInce
we don't notice this at run time and it's no obvious from the source code,
it confuses matters if you mentally try to tranlate between c# and c++ as
you write.
_____
This to me shows what a radical break there is between c++ and c# and how
being a c++ *guru* can be a real detriment to learning c#.
--
W '04 <:> Open
- 11
- ADO >> DateTime vs DateSince the .NET framework morphs both of these data types into being a
DATE.... that jsut happens to have both a DATE and TIME component.....
how do we tell.... which of these the data really is....... since the
same object tests out as DATE and DATETIME ?
The issue becomes one when we want to programatically create update
parameters for updating..... as there are databases that will not accept
the wrong string types..... and convert them on the fly.....
- 12
- Visual C#.Net >> Persisting the properties of a nested control at design timeI have a progress bar which is nested control and I want to persist
the design time properties of this nested control. I thought all I
needed to do was mark it with the
DesignerSerializationVisibility.Content attribute, as below:
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public ProgressBar ProgressBar
{
get{return _progressBar;}
set{_progressBar = value;}
}
but for some reason the properies are not being persisted (eg value),
has anyone got any ideas of how to do this?
thanks
andrew
www.vbusers.com
- 13
- Visual C#.Net >> InsertCommand???Hi,
I am running an insert statement into an access database, but i don't want
to add information to every column in my table... when i run my
insertcommand the following exception is thrown...
"Number of query values and Destination fields are not the same"...
How do i stop it from caring wether i insert a record for all my fields or
just one? and the fields that i am missing out are not required so i don't
understand the problem??
Any help would be appreciated.
Regards
Darryn
- 14
- Dotnet >> ODBC - Turning auto commit offHi all
I am runnig a Oracle procedure(this inserts records in table)
with asp.command object.
I dont want to commit the inserts, I want to turn auto-commit off when I
execute this procedure. Can this be done in ASP, if so, can some one give me
a example.
Any help will be really appreciated.
Thanks
mvr
- 15
- Net Framework >> dynamically determine .net baseframework version of exe or dllHi All,
Whether in a Winform application (.exe) or a .Net assembly (.dll), is there
a way to determine what version of the .net baseframework the run-time
module (i.e. exe or dll) was loaded with (is using)? Seems that using
reflection this is possible...just can't seem to figure out what
classes/instances will get me there. Thanks in advance!
Tony
|
|
|