|
I have similar problem. Don't we have any other solution other than adding MouseLeave and MouseEnter to inside controls.
Thanks
Muthu.
|
|
|
|
|
Hello,
Sorry, but I have no other solution for you!
All the best,
Martin
|
|
|
|
|
Hi
I have a C# Windows Application that copies a lot of data between different databases. All the copying is being controlled by a method in a helper class and this method is being called when the user clicks a button on the Windows form. Is there a way of showing the progress of this copying in a progress bar in the Windows form?
Thanks.
Kobus
|
|
|
|
|
You could add an event to your helper class that provides some progress information and is triggered by the copy method. Before calling thios method, register to the event and adjust the progressbar according to the information provided by the event.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
You stole my signature
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
You could run the method inside of a BackgroundWorker. With the BackgroundWorker you can get the progress of the method through its properties and you can define how the progress...well progresses.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
i want yo know that how i can add data from a table into a drop down.
ursbuddy
|
|
|
|
|
SqlDataSource1.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["YourConnStr"].ConnectionString;
<br />
SqlDataSource1.SelectCommand = "select * from yourtablename";
SqlDataSource1.DataSourceID = "SqlDataSource1";
SqlDataSource1.DataTextField = "ColText";
SqlDataSource1.DataValueField = "ColVal";";//DataValueField represent value<br />
SqlDataSource1.DataBind();
Hope this helps
"My advice to you is to get married. If you find a good wife, you will be happy; if not, you will become a philosopher." Socrates
|
|
|
|
|
|
you are welcome...
example which i posted before to you it's in VS2005
"My advice to you is to get married. If you find a good wife, you will be happy; if not, you will become a philosopher." Socrates
|
|
|
|
|
Hi,
For example, you can fill a Dataset using ADO.NET (Oledbconnection, OledbAdapter and Oledbcommand) and then set in the dropdown the property DataSource the dataset as value.
Example of the dataset filling:
//create the conn
OleDbConnection con = new OleDbConection("conection string");
//create the command
OleDbCommand cmd = new OleDbCommand("SELECT <field> FROM ", con);
//create the DataAdapter & DataSet
OleDbDataAdapter da = new OleDbDataAdapter(cmd);
DataSet ds = new DataSet();
//fill the DataSet
da.Fill(ds);
|
|
|
|
|
thnxs very much
i'l try this.
u people are very helpful
thnxs again
ursbuddy
|
|
|
|
|
Hi all,
I have an application which will be installed on the user machine.
The application has two main parts.
First application checks for the new updates from the server and then invokes the other application using the dll.
The second application is what the user actually interact with.
The application minimizes to the system tray.
The user may close or minimize the form that is displayed.
My main objective here is if the application is running and the user again clicks on the Shortcut that is placed on the desktop.
The form that is minimized or was closed should be displayed.
How do i do this?
Hope i have put the problem properly to everyones understanding.
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
Hi Yadav
Guess the following 2 links will help you.
http://msdn.microsoft.com/msdnmag/issues/05/09/NETMatters/
http://www.codeproject.com/threads/simplesingleinstanceapp.asp
Thanks and Regards
Pani
|
|
|
|
|
Thanks for the links...But I have to display a form from another assembly...
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
Does the shortcut point to the actual application or the "launcher" application? Either way, you could check for the existence of the process first off and switch focus to it if you find it running. Something like
bool IsProcessAlreadyRunning(string processName)
{
Process[] processes = Process.GetProcesses(processName);
return (processes != null && processes.Length != 0);
}
If the above method returns true, you know that an instance of the process is already running. You could then use the MainWindowHandle[^] of the corresponding Process object to get the window handle and P/Invoke some Win32 API (Activate?) to bring the existing process' window into focus.
Hope this helps.
|
|
|
|
|
Hey Friends,
I want to develop a virtual storage drive project in .Net. but confused about how to start?
I have alerady created a web drive solution which working using WebDav protocol, but it uses Iexplorer to display files and folders.
Whereas i want to display the folders and files in Windows explorer (Something exactly like What Gdrive software works)
Can anyone help me to distingush the webdrive and virtual windows drive?
Please post the articles or sourcecode related to this issue..
Thanks in advance
|
|
|
|
|
Look into the software program TrueCrypt. That application is a perfect example of Virtual Drives (encrypted). I do believe it is open source, but I know for sure it is not .NET. I am sure the program still lead you in the right direction, if it is anything like what you are looking for.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
Sorry but TrueCrypt software is File Encryption software to securely save your data on local file system.
I want to connect the folder of remote server i.e. http://remoteservername/foldername.. and that folder should be appear as drive (virtual drive) in "My Computer"..
after that i will be able to do all operations on it, as normally we are doing in our locl file system..
Thanks for your reply Thomas
|
|
|
|
|
Hi there,
I want to create a menubar and tool bar using menustrip and toolstrip. Tool bar should come under menubar and it should also be dragged and dropped anywhere onto the form. There are multiple toolbars and they should appear next to the other. What could be the right code to achieve this?
|
|
|
|
|
To place toolstrip under menustrip, follow the z-order mechanism. i.e., add the controls last as it will display it first(top). It takes reverse mechanism.so, add your controls in reverse order.
|
|
|
|
|
Hi all,
How to calculate the difference between two dates Ignoring Weekends ?
I have used TimeSpan to calculate difference between two dates, But I
need to know how I can ignore Weekends by using C#.
Thanks in advance.
|
|
|
|
|
KhaledK wrote: I
need to know how I can ignore Weekends by using C#
You'll need to define what days are weekend days in your code and check if the weekend days land in between your two dates...
If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa
|
|
|
|
|
hi
my table in sql2005 have a nvarchar DataType that save string values, but when i insert values in my code it is show "???????" symbols.
now i want to convert my textBox.text to utf-8 Encoding and save to SqlServer, but how to do this ??(convert to utf-8 Encoding string)
thanks
|
|
|
|
|
You can use the Encoding.UTF8.GetBytes method to convert a string into an UTF-8 encoded byte array, that you can store in a binary field in the database.
I'm not sure that's what you are looking for, though. It sounds like you want to store the string in the nvarchar field that you already have, but an nvarchar field does not use UTF-8 encoding.
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|