spmoran's Q&A profile
.NET Development Howto: Setting DataSource Property of CheckedListBox?
Hi! Is thers anyway to set the datasource property of checked list box, because in its documentation this is public property but I can't find it in intellisense. Has it to do something with Express Edtion of Visual Studio or MS forgot it or is it by design. I want to able to set two properties namely DisplayMember and ValueMember, since I can't set datasource I don't know anyother way of doing this. If someone else knows how to do that, then please do come to my aid thanx Sohail Sohail, Even though it's not in Intellisense, it seems to work just fine. So go ahead and just type in the DataSource, DisplayMember and ValueMe ...Show All
Visual FoxPro How to view all code used in a form and its controls.
Hi I would like to be able to view all of the associated code used in a form and its controls contained within it. This is how VB shows your code. Now I have to select each object and then the event to see the code for each section. I did this by accident before and cannot seem to figure out how I did it again. Please advise me on how to do this. Thank You Rob Rob, Use the class browser to open the form, click the view code button. The code is not actually runnable if there is any containership of controls inside something other than the form itself. But it will give you a good look all the cod ...Show All
.NET Development NetworkStream.DataAvailable - what is the "timeout" period?
Hi all, in my application I am using this piece of code: while (MyStream.DataAvailable) { numberOfBytesRead = MyStream.Read(myReadBuffer, 0, myReadBuffer.Length); newData = Encoding.ASCII.GetString(myReadBuffer); UsePacket(DecodeNewPacket(newData)); } The server application is sending let's say 25 packets per 1000 bytes to this client. Since every packet is processed by the function DecodeNewPacket() I need to have in myReadBuffer only one packet each time the DecodeNewPacket() function is called. However, if the server sends data quickly, I can receive two such packets - which should be processed se ...Show All
Windows Forms Setting the index = -1 in Databound combo box
HI, I am having a problem in a databound combobox , whenever I set the selectedindex value = -1 an error is poping up " There is no row at position -1". What I am doing here I have a text box on my form which is bound to a table field whenever the Text changed in this box it do the following code Dim dr As DataRow &nb ...Show All
SQL Server SQLServer and SQL Browser fails to start with an Event ID 7000
I just finished installing SQL Server 2005 Express including the Toolkit. During installtaion I selected instance name as SQLExpress. I cannot start SQLServer nor SQL Browser services and reports Event ID 7000 with a message Path not found. Although, the entire installation ran error free. I am running Winodws XP Professional w/SP2 and up-to date patches. Please help! yaj Hi, could you please post the entire messages on the error log while SQL Server is starting That would be a great help. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
SQL Server File Permission
m using File system task and want to delete some files in a directory but.. its giving me an error "Access to the file is denied" Pls tell me what is the access that I have to give to the filefolder Start Menu, Help & Support. Search for "File and folder permissions". The Delete right comes with Full Controll and Modify ...Show All
Windows Forms Help
Hi, I sent this on an already established thread. I got a response telling me to check the FAQ and if that doesn't give me an answer to start a new thread. The FAQ didn't solve my issues so I have restated my questions here. I appreciate any help you can give, as I think this program is wonderfull and I would like to&n ...Show All
Visual Basic Problem updating database
I have a dataset with several tables that is based on a database (access 2003 file) The database is NOT being copied over when i debug the program . So you understand how it all works customers.mdb contains the following tables Customers CustTemp Transactions TransTemp My Dataset is linked to these tables I load data into each of the temp tables and then merge it with the non temp tables. When i check the results in a datagridview, all merging is happening ok and the non-temp tables have the data in them. Ie Me .CustomersBS.EndEdit() Me .CustomerDataSet.Customers.Merge( Me .CustomerDataSet.TempCust, True ...Show All
Visual C++ How to create a control with a gradient background
I would have figured that this sort of capability would be part of the standard VS 2005 controls, especially considering the extent to which MS uses gradients in their own apps for button backgrounds and such...it is not too much to ask, is it anyway... Since the standard controls in VS 2005 do not seem to support gradient backgrounds I have made a custom GradientButton class derived from the Button class. I'd like it to have a gradient background. How do I do this without redrawing the entire control I referenced a C# example on how to do this and the code showed an overridden OnPaint method that used the event argument's graphics object ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Xact in combination with MDX?
Hey, I'm trying to get Xact working with MDX in C#. creating the engine is no problem, but then I want to create the sound and wave banks Does anybody has an example for a simple use of Xact with MDX in C# Well XACT has a managed implementation in the MDX 2.0 beta. However I'm not sure how complete it is and since its beta there are no docs or samples. Nor have I come across any 3rd party samples. Given the announcements about MDX 2.0 and its future as the XNA framework though (see http://blogs.msdn.com/tmiller/archive/2006/04/12/575225.aspx and http://blogs.msdn.com/al_msft/archive/2006/03/20/555065.as ...Show All
Windows Forms Dreaded Failed to enable constraints!!
After wasting a few hours on this dang error, I thought I would post on here for some help! OK, here's the code in error: datagridBills.DataSource = Me .BillTableAdapter.GetDataByDateAs(e.Start.Date) This is a datagrid and NOT a datagridview. GetDataByDateAs: SELECT Bill_Name AS Name, Bill_Balance AS Balance,IsPaid, Bill_dueDate, Bill_ID FROM Bill WHERE Bill_dueDate = @date Now, I don't understand why this works perfectly when I take out the "AS" from the sql query. It seems any little change to the standard sql query will cause problems. I'm new to VB 2005, so go easy on me please :) ...Show All
Visual Basic VB calling C executable
I am totally new to VB, and now trying to do a project with it. I would like to know is it posible to pass in value to a C executable, execute it and receive the output from the executable How should I do it, or is there any guide on this Whoa... this becomes a whole different problem. Is your task a windows application (a form) or is a console task. Console tasks have what is called stndin and stndout which are actually pipes. Windows app do not and basic really doesn't support pipes. Have you considered communicating by file IO The newly detached process can have it's stndout assigned to a file. Y ...Show All
Visual Basic Enter key to act as 'Submit' or 'OK' button
Hi, I am developing a Windows (Not WEB) form to capture the Username and Password of the application's users. I would like the user to be able to press 'Enter' after entering the password and not have to get the mouse to click 'Ok'. How can one do this There must be some trick. I checked all the properties for the textbox field I use to capture the password. On MSDN, all I found was related to web form, and mostly, on how to prevent the 'Enter' key to act as a 'Submit' button. The few message I found about having 'Enter' work were explaining how adding a hidden texbox field would do the trick but it didn't work in ...Show All
Visual Studio Express Editions Checking: How ANSI-C++ compliant is this Express VC
Hi I need to do (practise) some ANSI-C++ programming. I suppose these new versions of Visual Studio nets are ANSI-C++ compliant, but are they I dont want learn after hard work that my work is not according to the standard. Second question: Is it console settings which are standard. I think there is no dos-mode anymore. Character-based anyway. Regards L The VC team tries to be more conformant to the standard from one version of VC to another. For practicing, VC2005 should be applicable. Yes, console settings is the way to go. Thanks, Ayman Shoukry VC++ Team ...Show All
.NET Development Convert MSXML2.DomDocument to XMLNode
Hi all, I have been trying to convert an MSXML doc to .NET system.xml.xmldocument in order to eventually get the document to a node. However I am not having any luck loading the MSXML doc to system.xml. Example: Dim xDoc As New MSXML2.DOMDocument() xDoc.loadXML("<Root><Element>Text</Element></Root>") Dim xDocNew As XmlDocument xDocNew.LoadXml(xDoc.xml) 'ERROR xDocNew.Save("C:\SAVED.xml") Dim xNode As XmlNode xNode = xDocNew.Clone Sorry ppl, monday I quess not quite with it yet Change: Dim xDocNew As XmlDocument To: Dim xDocNew As New XmlDocument ...Show All
