Answer Questions
jaybs export the data from text file to the table in the Database
Can someone please let me know how to export the data from text file to the table in the database Thanks I have assetx.dat file. I want to write it's data to database table I am using following code just to create the database I ...Show All
Brian Schoenbeck Splash Screen
Hi guys, I created a simple Splash Screen like below. The problem is that the main form has no focus. You will need to click on the taskbar to give it focus. this.activate() does not work. Any suggestions Thanks a lot Chris public Form1() { InitializeComponent(); Thread th = new Thread( new ThreadStart(DoSplash)); th.Start(); Thread.Sleep(100); th.Abort(); Thread.Sleep(1000); this .Activate(); } ...Show All
CodeBash Application::Exit() does nothing !
can somebody please explain why the following C++ .net code popus up a message box Application::Exit(); Application::ExitThread(); MessageBox::Show(S"exiting"); surely the first line should terminate the program instantly the second line should do the same thing to the current t ...Show All
jhance_MS VS 2005 RTM WINFORM DESIGNER BUG IS DRIVING ME CRAZY
I have a project with various forms but when I try to view the designer for one of the forms I get the following error messages -even though the project atually compiles : I Have looked around and if you type "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. " IN GOOGLE you gets loads + a notification by Microsoft that says that they could not fix it before release http://lab.msdn.mi ...Show All
Lei Zhou Intellisense, tooltip description.
I don't know if it has a specific technical name. Let's take an extremely simple example. When I have a button click event handler, it passes the 'sender' as an object. Later in the handler, if I type sender then a '.' intellisense pops up that ...Show All
Amit kr mishra .ini file form input
Hi, I have a form with certain text boxes (read only) which are populated from an .INI file I dont know the path that the application will be installed before hand so cannot hard code the path In the following code about file open (in VC++ .Net) FileStream *fsSetting = new FileStream ("Settings.ini", FileMode::Open, FileAccess::Read); StreamReader* srSetting = new StreamReader (fsSetting); I want to know how to make sure that it lo ...Show All
tyrus Missing toolbar icons in print preview dialog
Hello, I'm developing a C# application. Initially I had a Windows.Form object with (among other members) a PrintPreviewDialog data member, and this dialog worked just fine: all the toolbar buttons in the print preview dialog displayed the icons correctly.&n ...Show All
Mariano Szklanny DefaultCellStyle.Format for an unbound row doesn't work.
I add a DataGridView to a form and use the IDE to set the DefaultCellStyle.Format for one of the columns to "C2". When I run the form, I can enter any value of any type and nothing gets formatted or validated. I tried setting the value in the form's constructor as well, but the results are the same. Why doesn't this work Iˇm getting this error with data bound columns which a ...Show All
Robert Johnson How to: Webbrowser NewWindow and Navigating equivalent to axWebbrowser
At first, I enjoyed the new webbrowser control but then I noticed that the args provided by the events NewWindow3 and BeforeNavigate of the axWebBrowser had not been implemented in the new control. Arg. Good news, the guys from Microsoft gave us the a workaround recently in C# and said they will publish a sample soon on MSDN. In the mean time, here is some VB.net code inspired from Microsoft's C# that will give you 2 new events an ...Show All
Cameron Gocke Automatic Cells in Datagrid
Hi! I'm using a datagrid to save same information about materials and its quantity, price, etc and i need to know how to create an automatic cell that calculates quantity * prince right after the user have filled quantity and price field in the datagrid. I need that this 'automatic' cells belongs to the datagrid and also its value be saved into my db. Any idea Thanks Assuming you are binding to a datatable... ...Show All
NeoBugs want to connect to dB using connectionString saved in app.config file
Dear all, Me and my friend are new to visual studio 2005 express edition. We are trying to build a simple desktop database application. Now both of us have different connectionString to the database in our computers (which is quite obvious).At first, we used hardcoded connection strings in our apps. So it was a huge task to replace all those lines as we shifted our computers to share our works. For compatibality, we w ...Show All
Tony Camacho Visual Studio 2005 Service Pack 1
What I want to know is when can we expect the desperatly needed service pack 1 for Visual Studio 2005 I've had so many errors so far when working with the Windows Forms designer, it is not only VERY frustrating and wasting my valuable time, but, it is also embarrsing when my projects and clients are being delayed because of a low quality tool. I expected higher quality standards from Microsoft! Don't get me wrong, I love .Net and especiall ...Show All
Plod ClickOnce and Certificates on Client PC ?
Good morning, Can anyone give me some points on this I have the app made and the webpage to deploy it works. On the test client PC I have .net 2.0 installed. I coulld not get it to work without copying the certmgr.exe and the .cer files onto the client PC box and then running the exe for both the root and the publishers. But this is linked to the user, so it needs to be done for each user who uses the PC. Is there anyway to i ...Show All
paolo_cc how to lock a drive and detect when CD is ejected?
I found WM_DEVICECHANGE message and it has the parameters I need. But does anyone have a sample code on how to get it to work Can't say I've used it so I have no experience to tell you this is definitely the way t ...Show All
Prakash Srinivasan binding datagridview with two tables
Hi all. Im trying to do a dgv with fields coming from two tables as this: Table1(Customers) CostumerID (Int, Primary) CostumerName (String) Table2(Orders) OrderID(int, Primary) CustomerID (int) OrderDate (Date) I want my datagridview to display the fields as follows, mixing the fields from those tables. OrderID, OrderDate, CustomerID(table2), CustomerName i can do this by generating an access view, add to my dataset&n ...Show All
