|
My device supports compact framework. a wince device doesnot have drives, it has storage places. so i dont know how to list them out.
|
|
|
|
|
I want to set a timer to execute in every two minutes in visual C++. Please help
|
|
|
|
|
Try posting in the C++ forums then.
Dingleberry.
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|
|
I have a treeview, when it has many items, then the scrollbar automatically appears, but it always
scrolls to the end item by default, how to force it to scroll to the start position by default?
thanks.
|
|
|
|
|
The scroll position will be determined by the selected item in the tree view. After loading the treeview make the first node as the selected one.
like
if (treeView1.Nodes.Count > 0)
{
treeView1.SelectedNode = treeView1.Nodes[0];
}
*jaans
|
|
|
|
|
Hi,
I want to enable a menu, which is in main class, against any child class function but it is not activating.
Instead If I enable it against any button of main class it becomes enable.
as here udb-main is main class and from its button of start I open another form like:
private void bstart_Click(object sender, EventArgs e)<br />
{<br />
<br />
UserLogin uslog = new UserLogin();<br />
<br />
uslog.Show(); <br />
}
Now in userlogin class login button I want to active main class activities menu against successful login.Here just relevant code is:
<br />
private void bLogin_Click(object sender, EventArgs e)<br />
{<br />
<br />
DialogResult ds;<br />
ds = MessageBox.Show(" you are successfully login ","Login Success", MessageBoxButtons.OKCancel);<br />
if (ds == DialogResult.Cancel)<br />
this.Close();<br />
else if (ds == DialogResult.OK)<br />
{<br />
udb-main hmain=new udb-main();
hmain.activitiesToolStripMenuItem.Enable=true;<br />
hmain.hessloadfunc();<br />
this.Close();<br />
} <br />
<br />
}<br />
plz tell me how I can enable/disable any control from another class.
Thanx.
Shanzay
|
|
|
|
|
DeepOceans wrote: else if (ds == DialogResult.OK)
{
udb-main hmain=new udb-main();// Main class
hmain.activitiesToolStripMenuItem.Enable=true;
hmain.hessloadfunc();
this.Close();
}
You have to assign the parent class to the hmain field instead of assigning a new instance. Most probably it has to be
udb-main hmain = (udb-main)this.Parent;// Main class .
BTW the architecture which is changing the state of a parent element does not seems to be good.
*jaans
|
|
|
|
|
I did it, but now it is giving error:Set object refrence exception.....
Tell another solution.Plzzz
Shanzay
|
|
|
|
|
There is a small change required in both of the functions, we can use Owner instead of Parent
private void bstart_Click(object sender, EventArgs e)
{
UserLogin uslog = new UserLogin();
uslog.Show(this);
}
and
else if (ds == DialogResult.OK)
{
udb-main hmain = (udb-main)this.Owner;
hmain.activitiesToolStripMenuItem.Enable=true;
hmain.hessloadfunc();
this.Close();
}
Please try this.
*jaans
|
|
|
|
|
Thank u so much.
It did work now
Now plz tell me abt my 1 more prob. if u can. When I click Disconnect button it throws exception and application dont close all threads which are using in main as well as its other classes.
private void bDisconect_Click(object sender, EventArgs e)
{
try
{
Client_Login clog = new Client_Login();//child class
clog.clnt_th.Abort();//child class thread
clog.sock.Close();//child socket function
}
catch(System.NullReferenceException expnul)
{
MessageBox.Show(expnul.Message);
}
}
Here what is the main prob.? How to finish this thread exactly.
Shanzay
|
|
|
|
|
Now I am working with webservices.But now we are facing a problem while calling a method in webservice asynchronously from a web page.ie.when the webmethod computes the result it will not get reflected in the webform, because the page would be rendered to the client while the method processing data.Please help me to avoid this problem( without using polling)...........
|
|
|
|
|
hi,
check this link it may help you.
aspalliance.com/337_Review_of_Making_Web_Service_Calls.12
Mhan Kumar
|
|
|
|
|
|
hi all
good morning.i want to use date,month and year seperately in my application.i can use convert function in sql sever for this purpose,but i dont want to refer database unnecessarily again and again.can anyone tell me how to get only the date month and year from the datetime format in the frontend.(c#).
pintoo
|
|
|
|
|
Did it occur to you to read the documentation? Look at the DateTime class.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
System.DateTime moment = new System.DateTime(
1999, 1, 13, 3, 57, 32, 11);
// Year gets 1999.
int year = moment.Year;
// Month gets 1 (January).
int month = moment.Month;
// Day gets 13.
int day = moment.Day;
// Hour gets 3.
int hour = moment.Hour;
// Minute gets 57.
int minute = moment.Minute;
// Second gets 32.
int second = moment.Second;
// Millisecond gets 11.
int millisecond = moment.Millisecond;
|
|
|
|
|
|
I doubt you will be work around this because it's more of a security feature. I use it all the time to verify what link I am actually clicking on, since what's displayed has nothing to do with the underlying link.
For example, http://www.apple.com
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
using c#,I want to get date, month, year from date seperately.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Cross posting is rude. Please don't do it.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Check the available properties of Datetime[^] structure.
*jaans
|
|
|
|
|
System.DateTime moment = new System.DateTime(
1999, 1, 13, 3, 57, 32, 11);
// Year gets 1999.
int year = moment.Year;
// Month gets 1 (January).
int month = moment.Month;
// Day gets 13.
int day = moment.Day;
// Hour gets 3.
int hour = moment.Hour;
// Minute gets 57.
int minute = moment.Minute;
// Second gets 32.
int second = moment.Second;
// Millisecond gets 11.
int millisecond = moment.Millisecond;
|
|
|
|
|
Hi,
I would like to retrieve the comments from a word document using c#.net. Is there any method available?
Regards,
PS@CodeProj
|
|
|
|
|
Convert the word doc to an xml format (using an invisible instance of word itself), then parse the xml for the data you need.
Sounds like somebody's got a case of the Mondays
-Jeff
|
|
|
|
|
Thanks for your post,
but would you please describe it in detail.
Or Is there any library to convert doc to xml?
Help with more detail. Thanks.
|
|
|
|