guy kolbis's Q&A profile
Windows Forms Process + Progress Bar
Hello, everybody I have an application that installs a program, example is Winzip using window installer. It install just fine, but the problem is I don't when it is done installing. So I want to put a progress bar into the form that will let the user know that the window installer have finished. Is this possible. Here is my code so far: I am using VS 2005 StartInfo.FileName = "MsiExec.exe"; StartInfo.Arguments = params1; ProcStart = Process .Start(StartInfo); ProcStart.WaitForExit(1000); Use Exited event: // Start process priv ...Show All
.NET Development Binding Business Object Properties to RDBMS Tables
(I'm asking this from a newbie knowledge base --- here goes:) What is the general solution in .NET for binding business object properties (and perhaps complicated structures, like a collection of collections) to RDBMS tables 1) I see the value of ObjectDataSource for automagically binding buisness object properties to databound controls...is there something analogous to binding business object properties to DB tables 2) Or must this be done "manually": first bind the DB table to a dataset, then move the dataset into the business object data structure, using custom code par ...Show All
Visual Basic Add text to a text box from a module
I'm upgrading a program I wrote in VB6 to VB2005 and am having a problem with updating a text box. I have a module that manages serial port communications. When data is received in the serial port buffer, it should update a text box (txtSerialIn) on a form (frmSerialInOut). Here's the code: Public Sub Handler( ByVal strInMessage As String ) frmSerialInOut.txtSerialIn.Text = strRXData & vbCrLf & frmSerialInOut.txtSerialIn.Text End Sub The text box is not updating with the text that the variable strRXData contains (checked!). This worked fine in VB6. Any help would be appreciated. Thanks. ...Show All
Visual Studio i have the some problem on win 2000 platform
At first time my computer opened, i can open web forms in design mode. But when i attempt to close and open another web project (by closing VS developer environment editor), i get this message : "Package 'Visual Studio Common IDE Package' has failed to load properly ( GUID = {6e87cfad-6c05-4adf-9cd7-3b7943875b7c})." i tried to: uninstall and reinstall vs.net 2005 remove Visual Studio Common IDE Package and reinstall it only al last reinstall my OS(win2000 sp4) None of these solve this problem Hi Mustafa, This failure sounds really strange. Just to confirm that this behavior reappeared after you reinstalled OS (W ...Show All
Windows Forms How to update a Form from a worker thread?
Hi, how can I update an UI form from a running worker thread This is done to keep the user up to date, for example how many files left to proceed, display some statistics and so on. In C++ I would post a message, but in C# .NET I think I need another way. Any help appreciated. Bert You will need to use the Control.Invoke me ...Show All
SQL Server book
It seems that there are only two books on SSIS The Rational Guide to Scripting SQL Server 2005 - BETA preview Professional SQL Server 2005 Integration Services by wrox Has anyone read these or any other ones out there Any thoughts on which to get I am very new to SSIS. Thanks I refer you to your previous post in which you asked the same question: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=425223&SiteID=1 -Jamie ...Show All
SQL Server SqlAssembly.Create is a poor implementation
SqlAssembly.Create will receive a path at the server, that as the documentation states: can be a network share. Now in a real-world scenario, I am creating a database on a separate server using SMO. When I try to register my managed code what am I supposed to do Get the user to call an administrator to copy the path into the server Somehow, find out the Identity for SQL Server and create a temporary share so that the SQL service can access the assembly Why isn't there a function that receives the Binary assembly data and persists the assembly on a Temporary location so that you can upload it into SQL. You can call asm.Create(new stri ...Show All
Windows Forms VS 2005 (no beta). DataGridView. Problems with RowHeadersWidth and .ErrorText
Hi ! I use VS 2005 (no beta). I think I found a Bug in the DataGridView class. I set the ErrorText property and could not see the red icon because I altered the RowHeadersWidth property. Then I comment this command and I could see the error icon and the error text on the row header again. It's amazing ! best regards, Joao Araujo this .dgrView.BorderStyle = BorderStyle .Fixed3D; // dgrView.RowHeadersWidth = 32; dgrView.MultiSelect = false ; dgrView.AllowUserToResizeRows = true ; dgrView.AllowUserToResizeColumns = true ; dgrView.AllowUserToAddRows = false ; dgrView.SelectionMode = Dat ...Show All
Visual Basic The type initializer threw an exception. - For no reason
Hi, Im developing a timetable like program which was all working fine until i installed some security updates for windows xp. This might be p urely coincidental but i keep getting the exception, pasted below, when i try to call ModPublic.GetSett(). I even removed all code from inside the public modpublic.getSett() sub but i still get this error on each debug/F5 run. System.TypeInitializationException was unhandled Message="The type initializer for 'TimeTable.ModPublic' threw an exception." Source="TimeTable" TypeName="TimeTable.ModPublic" StackTrace: at TimeTable.Mod ...Show All
SQL Server dynamic query
hi, i'm using dynamic query in the dataset because i wanted the result to group by the particular parameter selected. however, another parameter requires the data to be taken from another table. is the following syntax acceptable =if (Parameters!rev_data = 'A') begin "select a,b,c.... from tableA" end else begin "select d,e,f.... from tableB" end i encounter this error : 'Expression expected'... is the syntax wrong or this way is not possible thanks! I use Stored Procedures to generate dynamic SQL used for reports. The conditional logic is handled in ...Show All
SQL Server Will a SQL Server embedded be developed?
Replace Access Jet. by embedded, I meant a sql engine that runs in the client program's memory space. Jet is an example. Has nothing to do with embedded OS. MSDE is not an embedded sql engine as it runs in its own process. ...Show All
Windows Forms PocketVision Errors
Just tried to install and run PocketVision sample and got following errors: C:\Programme\.NET Compact Framework Samples\Pocket TaskVision Sample\Source\CS\PocketClient\Web References\DataAccess\Reference.cs(172): The type or namespace name 'ToolboxItem' does not exist in the class or namespace 'System.ComponentModel' (are you missing an assembly reference ) C:\Programme\.NET Compact Framework Samples\Pocket TaskVision Sample\Source\CS\ ...Show All
Visual Studio Express Editions Where is CWnd::CreateControl?
Hi I'm evaluating MSVC 8 to see if it provides a viable upgrade path from MSVC 8. Thus I have tried to build my current suite of applications. However every application that uses Active-X controls gets a linker error for CWnd::CreateControl. The other MFC apps link without error and appear to run correctly. How do I get my Active-X using applications to link PS Excuse me if this is a duplicate. I posted the same question yesterday but I cannot find my post in the list cheers Your post was moved to the Express C++ Group as it does not releate to an install problem. To find your thread ...Show All
Visual C++ strings allocate in stack or heap?
Hi When we define a string and then get user his/her name , what is happening in memory.I mean: Code: string s; cout << "Enter name"; cin >>s; f allocation always in heap: Here s is a ponter and it is in the stack and points to name data which user enter is in the heap. If allocation in stack: here s's size is unknown so how can it be How can string class allocate memory in stack that unknown size If this is not possible it seems that string data must be allocated always in heap. Are these true I aml ooking for your answers. Thanks The string class object is st ...Show All
Windows Forms Datamember property 'tablename' cannot be found on the DataSource.
Hello~~ I use the TypedDataSet and design the DataGridView appearance using DataSource and DataMember property. That is, I set the DataSource is TypedDataSet name and the DataMember is the table name of the typedDataSet. After setting, I can design the columns of DataGridView. At first, there is no problem even if I use this method. But, one day I've got as below error. Of course, after I delete the datamember property of datagridview, I can execute my program. But, if I use this method, I can't design the column of datagridview in design time. ========================================== Message : Datamember property 'tablename' cannot b ...Show All
