Grigory's Q&A profile
Windows Forms Set SelectedValue ComboBox
Hi, My combox box has display member = name value member = ID name = Active value = 0, name = Suppended value = 1, when i search the value from the database .. when i run this code combobox.selectedvalue = 1 the code can retrieve selected value = 1 but they shown display member (name) = empty how can i set when i get the member value of 1 - ...Show All
.NET Development Error: SQL Server does not exist or access denied
I am a newbie so any help appreciated. the ASP.NET web application is on a seperate machine than the machine that runs the SQL Server. There are 3 SQL Servers running on machine that has my database. The 3 SQL Servers are: SQLM1\DevSQL SQLM1\DemoSQL SQLM1\QASQL where SQLM1 is the machine name & QASQL is the name of the SQL Server. The database that this application connects to is in SQLM1\QASQL. In the default.apx.vb, I have a connection string as follows: Me.SqlConnection1.ConnectionString = "data source=SQLM1\QASQL;inital catalog = MyDB; password=somepass;persist sec urity info=True;user id=sa;packet size=4096" But get t ...Show All
Windows Forms TableLayoutPanel
Within a user control, I am dynamically creating a TableLayoutPanel at runtime and then adding controls to it. Basically, I want it to have 4 columns of equal width (25% each). I have no problems other than when the table is created, the first column is certainly much wider than 25% (more like 60%) and the remaining columns are of equal width. My code for creating the table is as follows: TableLayoutPanel tab = new TableLayoutPanel (); tab.SuspendLayout(); tab.Dock = DockStyle .Top; ColumnStyle defaultColumn = new ColumnStyle ( SizeType .Percent, 25); tab.ColumnStyles.Add(defaultColumn); tab.Aut ...Show All
SQL Server UpdateText() not working
I'm trying to run the following SQL against my column, Testtbl.Task I want to replace where the ampersand sign got HTML encoded to "&", and I want to strip it down to only the ampersand sign and delete the "amp" and the ";", that's why my parameters for the UpdateText are 0 and 8 with no update text value. It executes, but I still have the HTML encoding for the ampersand sign. USE WI GO EXEC sp_dboption 'WI', 'select into/bulkcopy', 'true' GO DECLARE @ptrval binary (16) SELECT @ptrval = TEXTPTR(Task) FROM Testtbl WHERE Task like '%amp;%' UPDATETEXT Testtbl.Task @ptrval 0 8 GO EXEC sp_dboption ...Show All
Visual Studio Team System Team Build Failure (test execution) with IBM.Data.DB2
I am in the process of testing the Team Build feature of Team Foundation Server w/Visual Studio 2005 and am continuing to run into an error that cannot be replicated when running a build/test manually (on either the server or any client). The error I get when executing the MSBuild process is: One of the background threads threw exception: System.TypeInitializationException: The type initializer for 'IBM.Data.DB2.DB2Connection' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'db2app.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) warning : at IBM.Data.DB2.v.nmpTraceOn() warning : ...Show All
Visual Studio Problems opening an MSBuild Project file in VS Beta 2
Hello I am finding that the beta 2 is unable to open an existing msbuild project file in the editor. Previously it would just open and be recognised as a form of XML file in the text editor. Now when I double click on the file in the solution list it draws the tab on the editing pane, with the correct name on it, but does not display the file. The redraw process for the screen area for the file stops. I can still switch to other files and carry on editing, but when I switch back to this file the display has still not been updated. Is it that VS is trying to be clever and edit the file in some special editor Is there ...Show All
Visual Studio SourceSafe Internet Plugin and IIS on W2K Server
I have setup a VSS database on a file server and installed VSS 2005 on our web server. I followed the directions in the MSDN "How to: Set Up Database Access via Visual SourceSafe (Internet) Plug-In" (http://msdn2.microsoft.com/en-us/library/ms230206.aspx) When I reached "To enable Internet Access for an Existing database on a different computer than the web service" step #7 things got weird. First the VSS Web Service is running on a Domain Controller so it did not appear in the "Computers" list (sub-step 2) rather it appeared inthe "Domain Controllers" list. So I opened it's properties (sub-step 3). Th ...Show All
Visual Basic Richtextbox scrolling
I use a rtb to provide a running status of my application. I use the appendtext method to add lines to my status has things happen. How can I setup my rtb to automatically scroll to display the latest information vice having to manually use the vertical scroll bars. I have tried using the .scrolltocarret feature but I cannot make it work. Thanks, Fred Herring ...Show All
Visual Basic shared member and inheritance : how to ?
Hi I have 3 classes : Base, Child1, Child2 Class MustInherit Base Shared Stuff As ... Sub DoStuff for each x in stuff ... next End Sub End Class Class Child1 Inherits Base End Class Class Child2 Inherits Base End Class For now the Child1 and Child2 instances share the same "stuff" parameter. But i want only the C ...Show All
Smart Device Development Device Unique ID
Hello, i'm trying to get the unique DEVICEID from some PocketPC with the function: KernelIoControl(IOCTL_HAL_GET_DEVICEID, IntPtr.Zero, 0, OutputBuffer, OutputBufferSize, ref BytesReturned); ...this works fine. ...But for some OEM device this function returns always the same code... How can i get a unique identifier for that device thanks for suggestions Andrea C. You can not since OEM failed to include unique ID. Please consider using something else for identification purposes. ...Show All
SQL Server Debugging acting weird
Hi! I have VS2005 RC1 and SQL Server 2005 September CTP installed on the same machine. I'm writing some pretty simple C# stored procedures and I'd like to be able to debug them with with the VS2005 IDE. However, something's not working. When I set a breakpoint and I run the code (F5), it turns white with a red border informing me that "the breakpoint will not currently be hit. No symbols have been loaded for this document". Obviously, those breakpoints are not hit and I cannot debug exceptions either. I made sure the connection the project is linked to has "ApplicationDebugging" and "Allow SQL/CLR Debuggin ...Show All
Windows Forms launch winform apps from winform apps.
This is probably a simple matter, But I can't find a reference to it. I have a VS.Net solution that contains two forms applications. I need to be able to launch them independently so they are set up as two seperate applications. I also want to be able to launch app2 from app1. Does anyone have a link to some info or sample code Thank You ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Matrices
I've been puzzling over the matrix theory stuff and I think I understand matrices pretty well now. Here are some of the comments I wrote down as I understood them. I know, its easy if you know it, but I'm happy because I feel like I made a breakthrough. The matrix is merely something you pass the device to tell it what to do with all subsequent vertices sent to it. You send it any vertex data to the device and it goes through one end and pops out the other and all transformed. &n ...Show All
Visual Studio Tools for Office XML and Word 2002
Can you attach XML Schema's with word 2002 documents so can incorporate smart tags Our Smart Tag support works only with Office 2003 Professional Word documents or Word 2003 Standalone documents. Thanks! Mike Hernandez Community Program Manager VSTO Team ...Show All
Windows Forms FIX: MaskedTextBox and Databinding Date fails with inital digit of 0
Problem : If I bind a DateTime field to a masked text box with the default short date mask, the value fails to recognize a leading 0 and shifts all other digits one place to the left. Solution : Select the MaskedTextBox. Expand Databindings in Properties. Click on the ellipses for “(Advanced)” A dialog box appears where you can set a custom format. Choose custom and select MM/dd/yyyy as the custom format. I posted this because I looked everywhere trying to find an answer without success. The Ladybug site (Bug ID FDBK21883) does not give an adequate answer. Hope it helps someone. Bryan ...Show All
