|
|
Hi there,
I'm using CDO to access Exchange folders in a C# application.
Is there a way to filter the Task and/or Appointment items in a public folder for start date and due date?
Filtering for a specifig start date and end date is easy, but I need to find all Task items that begin after date X and end before date Y.
Is this possible?
Thanks for every hint,
coco
|
|
|
|
|
Hi, guys, how can I display a progress(eg. just like open a web page progress in IE6.0) in the statusbar.
Thank you every much
vigorous
|
|
|
|
|
Go to MSDN and look up the StatusBar class and the ProgressBar class. StatusBar has a Panel where you can add panels. If you don't like monkeying with code use the designer add panels then add ProgressBar to the panel.
|
|
|
|
|
http://discuss.develop.com/archives/wa.exe?A2=ind0110D&L=DOTNET&D=0&P=6846
Shows you how
Gary
"A fellow with the inventiveness of Albert Einstein but with the attention span of Daffy Duck."
Tom Shales talking about Robin Williams
|
|
|
|
|
|
Hello all!
Is there any way to simulate the mouse on the way you normally use it?
I read that with the Message class you can set the mouse's position in certain window (or in all at the same time(???)), but can you set the mouse's position in WinXP like you normally moving the mouse? So you don't set to which window you want to send the mouseposition, just moving it and clicking like when you use it, and an application will have the control when you clicked on its window or something (like when you just use the mouse with your hands).
So like instead of a window you send it directly to the operation system or something?
MS Visual Studio.NET 2003
C#
|
|
|
|
|
|
Damn I almost started a new thread in ASP.NET
Just before typed the message thought first i'd ask you why(i couldn't understand how the hack it can be), but now I see your subject is answer to a completely different question. How come it posted to my thread?
MS Visual Studio.NET 2003
C#
|
|
|
|
|
There was a goof up with the forums when I was posting, not sure exactly what happened but I noticed it as well.
- Nick Parker My Blog | My Articles
|
|
|
|
|
I have a ListBox control on my form which has the following properties set:
MultiColumn = false;<br />
SelectionMode = = SelectionMode.One;<br />
Sorted = false;
and I load the data as such:
DataSource = dt;<br />
DisplayMember = "CASE_NAME";<br />
ValueMember = "CASE_NAME";
All is fine, the ListBox displays the data just fine, with one problem. Before the user has selected any of the items in the ListBox the first item is highlighted as if the user has already selected it. Is there any way to show the initial display of the items in the ListBox without ANY of the items being highlighted?
|
|
|
|
|
After binding it to the DataSource, set the SelectedIndex of the ListBox to -1
|
|
|
|
|
Thanks, but that doesn't work!
|
|
|
|
|
Hi
Did u set the SelectedIndex after binding the ListBox with the DataSet.
It is working for me. I am doing it after filling the DataSet which the DataSource for the ListBox like this.
private void Form1_Load(object sender, System.EventArgs e)
{
this.oleDbDataAdapter1.Fill(this.dataSet11);
this.listBox1.SelectedIndex = -1;
}
|
|
|
|
|
I had filled my DataTable dt in a lower tier, and then bound the ListBox control from a call in the forms contructor, after all the controls have been instantiated. After I have bound my DataTable to the ListBox I have then set the ListBox SelectedIndex property to -1, but I still get the first item of the ListBox displayed as highlighted. I don't have any other code that would have selected an item in the ListBox.
Forgive me, but you appear to have a oleDbDataAdapter1 and dataSet11 on your form which you have bound to the listbox1 at design time, else the listbox1 doesn't appear to be bound to the dataSet11.
|
|
|
|
|
Yeah,
For me also happening the same thing. I dont know why. But this workaround will solve your problem. You have to add an EventHandler for Form's Activated event and you have to add the following code in that EventHandler method.
private void Form1_Activated(object sender, System.EventArgs e)<br />
{<br />
this.listBox1.SelectedIndex = -1;<br />
this.listBox1.Invalidate();<br />
}
|
|
|
|
|
i have created 2 datagrids. The upper one displays the currently available values and the lower one allows entering new avalues... When u enter a vale to the lower grid and click on a button(Add) the selected value
(s) should be added. If one entered a valid row and another row with missing fields only the valid row should be added and the invalid row should be remained (displayed).How can I achive this?.
samitha
|
|
|
|
|
Get the row index of the row that is valid and use
DataTable.Rows.RemoveAt(rowIndex);
For each row that is valid, this will remove the row from the table the datagrid is bound to and therefore remove it from the datagrid itself.
Kev Pearman MCP
|
|
|
|
|
how can i reverse-engineered from IL?
How can I stop my code being reverse-engineered from IL?
is there any tools for this ?
********************
S r e e j i t h N a i r
Bangalore - India
********************
|
|
|
|
|
There are useful c# tools in the following link.
http://msdn.microsoft.com/vcsharp/team/tools/default.aspx
You can obfuscators also to prevent reverse engineering.
|
|
|
|
|
how can i reverse-engineered from IL?
How can I stop my code being reverse-engineered from IL?
is there any tools for this ?
********************
S r e e j i t h N a i r
Bangalore - India
********************
|
|
|
|
|
sreejith ss nair wrote:
how can i reverse-engineered from IL?
Use .NET Reflector. Search it on the internet.
sreejith ss nair wrote:
How can I stop my code being reverse-engineered from IL?
You must obfuscate it. There are many thrid parties that can do that.
Regards,
Alexandru Savescu
|
|
|
|
|
hi,
how to get user object password in active directory(for example using c#).
and how to set the memberOf property of the user object using C#;
Thank you
|
|
|
|
|
How I can transfer a file from the host to the client using .NET Remoting?
I try the following but not success.
Server Code:
static void Main(string[] args)
{
HttpChannel chnl = new HttpChannel(1403);
ChannelServices.RegisterChannel(chnl);
RemotingConfiguration.RegisterWellKnownServiceType(
typeof(ObjectCreation), "ObjectCreation.soap", WellKnownObjectMode.Singleton);
Console.WriteLine("Press key to terminate server");
Console.ReadLine();
}
public override object getAssembly()
{
string fileEntries = AppDomain.CurrentDomain.BaseDirectory + "HelloWorldClass.doc" ;
return LoadBinary(fileEntries);
}
private object LoadBinary(string Path)
{
object tAsm;
FileStream fs = new FileStream(Path,FileMode.Open,FileAccess.Read);
BinaryFormatter bf = new BinaryFormatter();
tAsm = bf.Deserialize(fs);
fs.Close();
return (object)tAsm;
}
Client Code:
private void cmdConnect_Click(object sender, System.EventArgs e)
{
ChannelServices.RegisterChannel(chnl);
obj = (BaseRemoteObject) Activator.GetObject(typeof(BaseRemoteObject),
"http://localhost:1403/ObjectCreation.soap");
MessageBox.Show("Channel to Server has connected");
}
private void cmdCallClass_Click(object sender, System.EventArgs e)
{
string fileEntries = AppDomain.CurrentDomain.BaseDirectory + "HelloWorldClass.dll" ;
object tAsm = obj.getAssembly();
FileStream fs = new FileStream(fileEntries,FileMode.Create,FileAccess.Write);
BinaryFormatter bf = new BinaryFormatter();
try
{
bf.Serialize(fs,tAsm);
fs.Close();
}
catch (Exception err)
{
MessageBox.Show(err.Message);
}
lAss = Assembly.LoadFrom(fileEntries);
Type[] FrmType = lAss.GetTypes();
foreach (Type typ in FrmType)
{
object lObj = Activator.CreateInstance(typ);
MethodInfo mi = typ.GetMethod("HelloWorld");
mi.Invoke(lObj , null);
}
}
|
|
|
|
|
I am learning C#, coming from VB.NET
I would like to know what method is commonly used to make a decision based on the contents of an object.
For something like:
if ( obj is MyType1 )
...
else
if ( obj is MyType2 )
...
else
if ( obj is MyType3 )
...
could be quite lengthy.
Naively:
switch( obj )
{
case MyType1:
...
Case MyType2:
...
Case MyType3:
...
}
This, I realise is incorrect because switch only accepts integral types or strings.
Is there another way of doing it?
Any help appreciated,
Shayne
|
|
|
|