|
Hi All,
Will anyone guide me in sorting, filtering a Excel file through .net 2003 or 2005 with C# code. I have done this sorting but the first row which is the heading also gets sorted and becomes last row. How to avoid this. How to do filtering the Excel file also. Anyone please help me in this regard.
Thanks in Advance,
Umashanker.K
|
|
|
|
|
|
hi all
i have develop a desktop application and i want to set a image (icon) for setup.exe file.
plz help me some one.
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|
|
|
Right Click on Setup(Application)
View-File System
users desktop-Create short cut-Application folder-select primary out put
Right click on short cut-browse icon
|
|
|
|
|
Hi all,
I've a problem in ListView management. The problem is the following:
when the ListView looses the focus, the currently selected item in the
ListView looses the selection: the selection in the ListView is not mantained
switching from a control to another in the user interface.
How can I solve this problem ? I'd like to let the ListView to mantain
the selection.
Thanks a lot !
|
|
|
|
|
Hi!
It's not true that the "currently selected item [...] loses the selection".
You might not be able to see it, but it's still there.
The LV has a property HideSelection you can use to control this behaviour.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Hi,
I would like to find out how I can run a Windows Service by pressing a key on the keyboard.
My idea is to create a Windows Service in C# and when the user press the Print Screen key the service must capture the screen and save the image.
Thank you!!
Illegal Operation
Making Computer Software Talk
|
|
|
|
|
|
hi
I want to list out the drives on my device. i wrote this code for .net compact framework:
string[] dList = System.IO.Directory.GetLogicalDrives();
for (int i = 0; i < dList.Length; i++)
{
MessageBox.Show(dList[i]);
}
But on compilation i get the error saying that "System.IO.Directory.GetLogicalDrives()" is not supported.
Can anyone please help.
Thnaks
|
|
|
|
|
All the devices/platforms are not supporting this method. Please make sure that your device is supported by Compact framework.
You can go through this[^] link for that.
*jaans
|
|
|
|
|
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
|
|
|
|