Vlad Dogaru's Q&A profile
Windows Forms How to "select all" all items in listview control
I have a listview control in detail view. The items in the control are dynamically generated with the following code: For Each adObject In colAdChild str(0) = adObject.Name.Remove(0, 3) ...Show All
Visual Basic ODBC Error in VB.NET after upgrade from VB6
I have recently converted my VB6 app to VB.NET. When i try to open one of my form,i'm getting the following error [Microsoft] [ODBC Driver Manager] Data source name not found and no default driver specified" I'm using ADODC control and sheridian datagrid control in this form. The error happens in the following routines, Public Sub VB6_AddADODataBinding() dbgrid1.DataSource = CType(datacontrol1, msdatasrc.DataSource) End Sub When i try to close this form, Public Sub VB6_RemoveADODataBinding() dbgrid1.DataSource = Nothing End Sub I tried all the options by re-installing ...Show All
Windows Forms Easy way to format textbox without negative numbers
It is nice in 2005 to use Bindings, Advanced for a textbox and select a numeric format. One problem I am having, however, is that I see no way to tell VS that I want numeric formatting, but I do not want the textbox to accept numbers that are less than zero. Is there an easy way to do this What I think would be the smartest option is what I would hope MS would provide, which is a text box class that can have filters on it based on certain logical rules. So for example, if you want the textbox to check the inputted value for only positive numbers, the control would be used something like th ...Show All
Windows Forms Datagrid filter row selected.
Hi, I have a datagrid which displays 100 rows. User can apply filter on datagrid. It works fine but it doesnt remember the selected row. If user has selected one or multiple row and applies filter then all the rows which were selected before filter and are now present in new result set (after applying filter) then those rows should be selected. B ...Show All
Visual Basic Microsoft Visual Basic 2005 Express - New Project dialog is empty!?
Look at this screenshot: http://hjem.get2net.dk/dondata/Empty.gif I have allready tried to Repair the installation, and allso completely uninstalled VB and the installed it again, but the dialog is still empty. What is happening here Comon! Am i really the first person i the world to experience this I still haven't solved the problem and I'm still standing here with an ampty dialog. ...Show All
Software Development for Windows Vista How to draw text on video
hi, i have seen the RGBFilter sample but i want draw a changing string on the video, and the string is changed according the time. For example, when i click a button on my software, it triggers the function to show the string on the video, after ten second, i want to draw another string on the video, how to do that any suggestion is appreciated! I have seen this done a number of ways. Which way is easiest will probably depend on the type of data you are playing with (AM_MEDIA_TYPE). One (relatively) simple was is adding the SampleGrabber filter. It will call you with a pointer to the raw data. You can draw on the buffer to you ...Show All
Windows Forms LIB's in a Windows Form?
Hi folks, I'm just wondering if it's possible to add a LIB to a Windows Form project I want to add Shlwapi.h, shlwapi.lib so that I can access the useful functions: PathAddBackslash PathIsDirectory PathRemoveFileSpec PathRemoveBackslash PathFileExists PathFindFileName etc.... Is it possible I can't seem to figure out how to add a LIB and just adding the .h causes a whole mess of problems. Any ideas Hi Blair. I would use the System.IO.Path class, but it just doesn't have the functionality I'm looking for - specifically the functions that I mentioned above. So, does anyone know how I could add a L ...Show All
SQL Server Connecting to SQL Server database via windows form app
Hi, I have developed a windows form application which connects to a sql server 2k database via the following conneciton string: Private con As New SqlConnection("Data Source=(local);trusted_connection=true;Initial Catalog=Database1") This works fine for running locally but I need to give my Windows form application to other users on the lan and have them reach my database server. So next I tried: Private con As New SqlConnection("WorkStation ID= E134017.nw.nos.Boeing.com;Data Source=(local);trusted_connection=true;Initial Catalog=Database1") where E134017.nw.nos.boeing.com is the full network path to my computer It does not work a ...Show All
.NET Development Policy settings
Hi, Is it possible to apply policy settings(through policy file) in the DLL project. The DLL will be used by Windows form (client) application. I am having trouble doing this. I don't know how WSE runtime will find the policy file. Even if I set the file path in the app settings of DLL project then those settings cannot be recognized by the Main application. Is it true So DLL can access Web service but WSE settings can be applied on the calling application of DLL, or I have to do policy settings through code not from the file. Just want to know if this correct or if there is a trick available to apply policy settings through policy ...Show All
Visual Studio Team System TFS backup
Hi there I have read http://blogs.msdn.com/vstsue/articles/500334.aspx But how to make a backup from TFS server(SQL server) to a path on a server that needs an account-password to allow writting ...Show All
Visual Studio Team System Web tests resulting in Internal Server error due to Invalid ViewState
I am seeing an odd problem when testing our web site. I have no problems navigating through our website manually from a web browser and experience no problems when creating a web test that navigates through our web site. But, when I run the web test I created, then I keep getting an "Internal Server Error" on the first server page transfer. When I look at our server logs it indicates that the problem is caused by an invalid ViewState. But, this problem only occurs when playing back (running) one of my web tests. The ViewState appears to be formatted correctly (it can be parsed) but the error message gives no further indic ...Show All
Visual Studio Express Editions registration benefits c#
I registered by Visual c# express edition two days ago, Although the product is nregisterd, I read the registration key off the screen I have not yet received the confirmation email, So how do I access the benefits page for the said downloads and eBooks Be sure your passport e-mail address works to receive mails. If you have a spamfilter it might sort it out so that can also be a clue where it has gone. You can go to http://connect.microsoft.com for the benefits portal. Sign in with the same passport you registered with and choose "My participation" ...Show All
Smart Device Development Compact Framework 2.0 & Windows Mobile 5.0 NotSupportedException
I have recently starting developing with VS2005, Windows Mobile 5.0 and the CF 2.0. I have noticed that recently I am receiving a NotSupportedException whilst trying to change the text of a textbox from a background thread. I used to get a detailed exception telling me not to update the textbox from a background thread. The only difference these days is that I am developing for Windows Mobile. Is there something I am doing wrong My App seems to hang when debugging instead of giving me a proper exception. I hope I have explained this well enough. Thanks Yes, you have explained it well and thi ...Show All
Smart Device Development NotSupportedException in PInvoke for .NetCF C# project
I have a dll in C++ with a function called fun1: typedef void (WINAPI *fp)(); typedef struct info { DWORD size; RECT rc; fp funPtrcb; }*info; _declspec(dllexport)DWORD WINAPI _cdecl fun1(IN info pinfo); My C# application has this code: public delegate void CB(); public struct Init { public UInt32 size; public RECT rc; public CB funptr; } [DllImport("xxx.dll")] public static extern Int32 fun1([In,MarshalAs(UnmanagedType.LPStruct)] Init initstruct); Init in = new Init(); CB myCB = new CB(method1); init.funptr = myCB; int x = fun1(init); I f ...Show All
Visual Studio 2008 (Pre-release) How can I determing local path for pictures in XAML?
string like this: \Sportster\.. /Sportster/.. Sportster.. Didn't help :( * Sportster - directory with pictures at folder with executable file I used the following way and it works. ImageGallary is a directory in exe path. BitmapImage UriSource="\ImageGallary\image1.jpg" ...Show All
