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.
I have a project done in c# VS2003. And i need to change the layout, but i have a problem, i don't know how to solve it!
I have a form (the parent) with the FormBorderStyle property set to FormBorderStyle.None. When i try to open the MDI Child forms with the same property set to FormBorderStyle.None the behavior is different. The border and the title bar appear briefly (like a flash)and then the form is correctly displayed.
I have a Socket Class which connects, accepts the multiple clients and receive data from each client. I'm using a thread to accept the connection. I have to pass the IpAddresses and status to the GUI for display. How do I pass the value from thread to GUI? How do I user SendMessage/PostMessage method? Can I use the Invoke method. Please explain.
The problem is My thread which updates the value is in a different class and I need to update the value in another from. The thread will accept clients and I need to update the status ( ture or false ) in the main form.So where should I call the delegate. I'm not able to get that. Please help
My new project is to go through a list of tasks against each sql server 2005 machines. Each task has a different sql query which gets executed and the data is returned for each task.
I am thinking of having each task with the relevant sql inside an xml file.
<name>get the version of sql server</name>
<sql>sql code here</sql>
<name>get domain name</name>
<sql>sql code here</sql>
Then a winform application goes through this list in the xml file and for each task it's sql gets executed against the master database.
Is what I am doing correct?
Can the .net front end pickup the sql as a string and execute it against the sql server 2005?
I am developing an windows application in which i need to connect to MySQL Server through my application mean user enter the User Name and Password after that in a list box all the database of MySQL comes in Listbox.
So my problem is how to connect to MySQL database through my application
Sir as you give me the link of connection string that is used to connect to MySQL server that's great but as i want to connect to like this user will enter Server Name, UserID and Password in the available textboxes and after that it will click on connect button that it should connect with all the available databases and shows them in Listbox
I'm not sure if you can connect to the server without specifying a valid database. Maybe you should once connect to a database and then issue the SHOW DATABASES SQL command to get a list of the databases available to use for the next DB login from the listbox.