|
you need to add more qualification.
ie.
ComboBox1.DataSource = DataSet1.Table
or
ComboBox1.DataSource = DataSet1;
ComboBox1.DisplayMember = "Table.StudentName";
ComboBox1.ValueMember = "Table.StudentID";
Cheers
|
|
|
|
|
G'day folks,
I am stuck on a form design problem which I just cant seem to find any solution. I have an application (Parent Form) which requires another window (child form) to be open in a modeless mode (using Show()) and whose TopMost property is set to true. My problem becomes that if I switch applications in the taskbar, say from my application to Outlook (running in maximized mode), the child form still stays on top of Outlook. This is because the child form is set to TOPMOST being true.
One solution I had was to use the Deactivate and Activated event handlers for the parent form. In the Deactivate event handler I setup so that the child form would become invisible and in Activate Handler the child form would become visible. I didnt realise that once the parent form become active it will then make the child form visible thereby the child form become the active form thus firing the Deactivate handler for the parent form. Therefore getting stuck in an infinite loop of child form appearing and disappearing.
There has to be a solution since when the find window is open in notepad and another application is active the find window from notepad doesnt dominate.
Can anyone point out what mistake I am making, I realise this has to be a very elementary mistake.
I would really appreciate any feedback.
thanks
Vee
|
|
|
|
|
Don't use the TopMost property which is 'absolute', but the Owner property which describes a 'local order' in your application's forms set.
Tchimbaw
|
|
|
|
|
thanks for the tip. You have just saved me from having a sleepless night .
|
|
|
|
|
hi
how to add module in c#.net? There is no option in the menu project-> add module in c#.net which we have in vb.net.
sarayu
|
|
|
|
|
why do you need this, a class with static methods has equivalent functionality
|
|
|
|
|
I am trying to programatically remove cookies and temp internet files. I have found examples of how to change the Expire of cookies via Web Dev. But the Request.Cookies() doesn't work in Windows Dev.
My program is simple,
<br />
static void Main(string[] args)<br />
{<br />
LaunchWindows();<br />
}<br />
private static void LaunchWindows()<br />
{<br />
System.Diagnostics.Process.Start("IExplore.exe","http://lbprdapps:88/autosys/login"); <br />
}<br />
private static void ClearCache()<br />
{<br />
}<br />
Here is the VB equivalency in Web Dev. that I want to accomplish.
<br />
Dim i As Integer<br />
Dim cookieName As String<br />
Dim limit As Integer = Request.Cookies.Count - 1<br />
For i = 0 To limit<br />
aCookie = Request.Cookies(i)<br />
aCookie.Expires = DateTime.Now.AddDays(-1)<br />
Response.Cookies.Add(aCookie)<br />
Next<br />
Any help would be appreciated.
TIA,
Scott
|
|
|
|
|
Hi all,
i'm woking on a project which uses .Net remoting architecture.
Previously i wasn't gettin this error, but now sometimes i get his error, and i cant figure out why it comes..and how to fix it.
Please if any one knows about it, do tell what to do..
Error: Timedout expired. The timeout period elapsd prior to obtaining a connection from the pool. This may have occured because all the pooled connections weer in use and max pool size was reached..
Thanx
|
|
|
|
|
Hi all,
Can someone please tell me how can I build a C# COM Object from VC++ 6.0?
Best Regards,
E.A.
|
|
|
|
|
E6AD wrote: how can I build a C# COM Object from VC++ 6.0?
You can't. Do you mean to call one ? The same as you call any COM component, COM is language neutral.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanks a lot Christian. You are right,I meant to call.
Thanks,
E.A.
|
|
|
|
|
How do I create a shorcut (in the esktop)for an existing exe file?
|
|
|
|
|
You need to pinvoke some shell stuff to do that, from memory.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi everyone,
Can someone please tell me how can I build a DLL in C#?
Best Regards,
E.A.
|
|
|
|
|
Is there not an option to make a Class Library? In VS.net Standard, the option is not there, but you can always use SharpDevelop[^]. It is a free development environment.
Pumk1nh3ad illustrates that Intelligent Design oft goes awry. - Ed Gadziemski
|
|
|
|
|
The "Class Library" project type always compiles into a .dll. Keep in mind, though, that this is a .NET assembly, not your common Win32 .dll that can be linked into an MFC app. If you need a .dll that can interop with a normal windows or MFC app, you will want to go into the projects properties, and enable exposing the project through COM.
|
|
|
|
|
Thanks Jon.
But is that the only step required to expose the project through COM?
Do you have any detailed link that can help me out with that?
Thanks again,
E.A.
|
|
|
|
|
Hi all - if I have a user control, is there a way I can write code that will only execute at runtime, not when the control is rendered in the forms designer ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Control.DesignMode does the trick !!!
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I like how you always answer your own questions, Christian. Its very entertaining, not to forget helpful to the community.
|
|
|
|
|
*grin* I find that asking someone else is really helpful in my finding a solution. It worked when I was starting out and had to ask a senior programmer, and it still works today.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
hi every body
i need help
i want to know steps to build my own chat room
iam beginer . my dream is building chat room .
pls tell me
engriri2006
|
|
|
|
|
engriri2006 wrote: my dream is building chat room .
You need to be a bit more specific than this. For starters, what have you built already ? How long have you been using C# ? The web is full of people who install an Express Edition and set about creating their dream, but life does not work like this. You should have done a few smaller projects before you start this one, all of them designed to help you build knowledge of the language, and also the libraries that you will need to use to make this program happen.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
You hit the nail on the head. I started out the same way a couple years ago, and was in for a lesson in reality.
Rome was not built in a day.
Pumk1nh3ad illustrates that Intelligent Design oft goes awry. - Ed Gadziemski
|
|
|
|
|
I have an application that can be used via a GUI interface or command line arguments. If arguments are passed the GUI isnt displayed.
Now this all works fine, but I have one small problem that I cant fathom.
When running in "command line" mode I use Console.Writeline to output messages (e.g. errors). If I run the application via a command window with command line parameters the Writeline doesnt output anything at all. Although the code does execute successfully. I can only assume that the Writeline data is being directed somewhere else, not exactly sure where though.
Interestingly if I run it in debug through Visual Studio, the VS output window does show the messages.
Does anybody know whats going on here?
p.s. The project is compiled as a Windows Form, and the form has the Main function in it. Within Main I check for command line arguments if they exist the form is not initialised and the code diverts off into a command line process class.
post.mode = postmodes.signature;
SELECT everything FROM everywhere WHERE something = something_else;
> 1 Row Returned
> 42
|
|
|
|