|
I'm not very familliar to thrads, so I would really appreciate if someone could help me.
My problem is this: I want to connect to an SQL database (using System.Data.SqlClient.SqlConnection.Open()) and, while this method is working, start a ToolStripProgressBar (by setting its propery Visible to true, it is a Marquee-style progress bar). If I start the progress bar before I connect to the database, nothing seems happens with the progress bar until the connection is already open. I also want the progress bar to stop (by setting Visible to false) when the connection is open.
How would you recomend to do? Thanks /Viktor
|
|
|
|
|
Is it taking that long to open the connection?
|
|
|
|
|
Good question
It does take a few seconds, so it's not a very important thing to do. But still, I think, it would be a nice thing to do, and don't really think it's a very hard thing to do.
Thanks though
|
|
|
|
|
When I embed an HTML file as ressource in a winforms exe or dll, can I access it through an URL?
|
|
|
|
|
IE does this for stuff like DNS failures. Try this:
res:
or
res:
Open up the .DLL in any Resource Viewer and you should get the idea.
|
|
|
|
|
Hello!
I'm trying to create a secure login dialog. The dialog should be displayed on a different desktop (like Windows Vista's UAC prompts). Showing the dialog works very fine. However, the dialog has the ability to open a file browsing dialog (OpenFileDialog ), which does not show up. My guess is that the OpenFileDialog is displayed on the previous / default desktop, however I'm not sure about this. It simply does not show up on the new desktop, and the calling thread is blocked (application unresponsive).
How can I show an OpenFileDialog on a different desktop? Is there any way to tell the dialog on which desktop it should show up?
Best regards
Dominik
|
|
|
|
|
Hey Guys,
I am working on creating a App for WM to Sync some data over http to a server.
The data will be synced every 5 seconds.
I also have an App that runs a program which will produce the data that will be synced.
The question that I have is:
Should I create a separate App for Syncing or Should i use the same App to Sync?
How can I accomplish using the same App?
If you guys recommended using a different App, can I create a service App that just runs in the back ground?
Thanks
|
|
|
|
|
Not exactly an answer to your question, but this could well be a big timesaver for you (and save you reinventing a wheel that Microsoft has spent a lot of time and money inventing for you). Have you looked at the Sync Framework from Microsoft. It's currently at CTP, but it is potentially the jobby for you.
|
|
|
|
|
"Developers can build sync ecosystems that integrate any application, any type of data, using any protocol over any network."
Damn those Microsoft guys for making innovation possible.
Thanks, I was just considering how to add sync capabilities to one of my mobile apps.
only two letters away from being an asset
|
|
|
|
|
I create in my application ( simple C# winForm Application ) some form and i try to re-size the Form by drag the edge of the Form - and the Form size is not changing.
The form is re-size when i left click and choose "size" but i want to change it in the other way.
Can someone help me ?
Thanks.
|
|
|
|
|
Make sure the resizeable property is true in your designer.
|
|
|
|
|
Sorry - but i dont have this property in my designer - i try to add it in the designer - but the object does not have property with name "resizeable".
|
|
|
|
|
Ok try FormBorderStyle property
|
|
|
|
|
OK, I found the FormBorderStyle property and i changed it to any possible option that i have there - but still i can't change the Form size by drag the edge of the Form.
|
|
|
|
|
If I wanted a way to get the content of a textbox in an open application from my application, where would I start looking.
Basically, I want to loop all open windows, loop the components in that window and look for text/password-boxes.
I'm guessing it has something to do with EnumWindows, EnumChildWindows, GetClassName and so on but could someone give me a small example to get started.
|
|
|
|
|
Johan Martensson wrote: look for text/password-boxes.
so you want to steal passwords eh? Well hopefully no one on this site will help you, black hats are generally not supported here at CodeProject
Happy New Year anyway
|
|
|
|
|
led mike wrote: so you want to steal passwords eh?
Oh, no, that was just for debugging purposes: He wants to know if the textbox effectively contains the given password.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
|
well, if I wanted to steal passwords there are plenty of free and commercial software I could use to do that, I'm merely interested in the concept of the matter.
|
|
|
|
|
|
Thanks, I will check it out
|
|
|
|
|
Hi at all,
i want to use the following code:
http://codeproject.com/KB/miscctrl/DockExtender.aspx
Have anybody an idee how can i save the dockingposition and size of the floatingpanel?
Thanks in advance
Bounty
|
|
|
|
|
Hi guys,
Please help, i managed to get a combo box to appear in a C# datagrid, now here is what I am trying to do: the grid has a couple of text boxes, what I am trying is to force the combobox to show values if the textbox has a certain value, i.e. if textbox populated from dataset value =CREDIT then populate combo box from datatable otherwise don't.
I hope I am making sense. Please help!!
Thanks
Sameer
|
|
|
|
|
|
hi guys.
visual studio 2005 C#
i was trying to create a setup for my add-in for live messenger. without installing it manually i want it done by installer itself.
i created a setup installer and successfully creates key and set AddinFeatureEnabled values to 1 and messenger already got now add-ins,. but i couldn't install my class library add-in into live messenger .
how can i do that plzz help me!!
so much of happy ending...
|
|
|
|