Software Development Network Logo
  • SQL Server
  • Smart Device
  • Visual Studio
  • Visual J#
  • Windows Vista
  • VS Express Editions
  • VS Team System
  • Visual C#
  • Game Technologies
  • .NET Development
  • Architecture
  • Windows Forms
  • Windows Live
  • Microsoft ISV
  • Visual C++

Software Development Network >> david Laub's Q&A profile

david Laub

Member List

RichardGreenwell
Jakobdo
James Gordon
TheBenZ
Zoner21
Tom_HDi
Jaygboy
sam_jeba
JonOfAllTrades
Ghauri
zacarias2006
sunwei2004
ShriShri
Luuk
itisapple
J Meyers
Randy Hoogerhyde
senthilssk
KlausWiesel
PrashantUtekar
Only Title

david Laub's Q&A profile

  • Visual Basic How would you create an executable without using a form?

    I am not new to programming, but am about minutes old with VS2005.  I love VBScript and want to move forward.... The basics are a complete mystery, NameSpace, etc.... What would the code be to popup a message box (Again, just an exe, no forms) Next, what would be the code to run a file   (i.e. \\Server\share\folder\file.vbs) I have tried various "quick starts" for VS2005, but am not making headway fast enough.  One of these days ...Show All

  • Visual Studio 2008 (Pre-release) Binding hierarchical data to TreeView with two ItemSources

    I'm trying to implement a simple TreeView that displays hierarchical data. Here's a psueodocode version of my classes: class TopLevel (singleton) List<Category> Categories class Category string Name List<Category> Categories List<Channel> Channels class Channel string Name So, there's a top level class, which is the one I want to bind to, which contains a list of Category instances. Each of those instances can contain more ...Show All

  • Windows Forms ComboBox1.SelectedValue = 64 causes crash

    If I try to programatically assign a value of 64 to a combobox through the SelectedValue property I get an error (shown below).  I can set it to any value I want except 64.  Do you have any insight on this Thanks, - Dan --error message-- "System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: '-2147483648' is not a valid value for 'index'. at System.Windows.Forms.ComboBox.set_Sele ...Show All

  • Windows Forms how to usercontrol with a dock property ?

    how do i make a user control with a dock property so that when i add it to my form when i set it to DockStyle.Top it goes to the top i did a public DockStyle Dock then in the  { set } i did position it to the top but what i want it something like panel.dock how i reserve the top x height so that when i dock another control it doesnt overlape the other controls when geting parent.clientrectangle should  have clientrectangle.Y-controld ...Show All

  • .NET Development How to Export/Import X509Certificate2 ?

    I load a certificate from a PFX file, such as SSLCertificate = New X509Certificate2( "D:\TEMP\Myfile.pfx" , "pFxPaSsWoRd" )   I then export from this, and save the resulting byte arrray Dim ByteArrayToSave() As Byte ByteArrayToSave = SSLCertificate.Export(System.Security.Cryptography.X509Certificates.X509ContentType.SerializedCert)   Later, in a SERVICE running under a DOMAIN USER NAME with ADMIN I attempt to rehydrate ...Show All

  • Windows Forms Invoke blocking details - avoiding deadlock?

      What calls allow pending Invoke calls to execute on the UI thread I assume that DoEvents() will unblock waiting threads are there any other calls with finer granularity The problem I'm running into is that I have a background thread calling delegates to process data. These threads may call Control.Invoke() in order to update UI. A second thread needs to be able to stop the background processing. This thread may or may not be the ...Show All

  • Visual Basic Passing an Array of Strings to a C++ DLL using SAFEARRAY - HELP!!!

    Hi I am upgrading some VB 6 programs to VB 2005. These programs pass data to a C++ DLL and I am having trouble passing an array of strings. The DLL looks basically like: int _stdcall PassInStrings(short idx, LPSAFEARRAY FAR *strArrayPtr) { BSTR *tmpStrArray; tmpStrArray = (BSTR*)(*tagArrayPtr)->pvData; for (i=0; i<idx; i++) { MyDebugPrint("PassInStrings", LPSTR(tmpStrArray[i+1])); } //other stuf ...Show All

  • .NET Development Fill database from XML

    Hello guys, I have a database stored in an XML file (Dataset.WriteXml()). Now i want to recreate the database file from the XML file. I already know how to create a database file using ADOX I also fill a dataset with ReadXML from the XML file i have. What i dont know is: How am i going to fill the database created with ADOX from the XML file. I also know how to create tables in ADOX what i dont know is how to fill the tables with data from the X ...Show All

  • Windows Forms Problem Setting up Prerequisite batch file

    I have a batch file that I would like to run as a prerequisite.  This batch file references several other files.  I have created the bootstrapper xml files to call this batch file, and included the other files as additional files needed by the install file.  This all works fine.  The files are all published together, and I have verified that they are all downloaded to the client machine during the prerequisite installation.&n ...Show All

  • Visual Basic "object instance not set to an instance of an object vb.net" happens when switch form

    i have these 2 lines of code causing problem "object instance not set to an instance of an object vb.net" :                                dim frm2 as new frm2                 frm2.DsGetAllQs.Clear()     &nbs ...Show All

  • Visual C++ Problem compiling a program

    How do I compile my code   When I open a file, it won't let me debug or run the file.  And if I manage to get that, as soon as it runs, it just says: Press any key to continue... then it quits.  windows.h is part of the PSDK headers which is not installed with the VC 2005 Express SKU, you will need to install it separately. Check the below link for more details on how to proceed: http://lab.m ...Show All

  • Windows Search Technologies are there any commands that can be given to the indexer?

    Hi All, Suppose I want to give a command to the indexer to start indexing from my program and not from the WDS. How do I do it How can I give a command to the indexer to index locations that I specify from my program and not from the WDS Is it possible to control the indexer from outside at all Thanks Unfortunately that is not supported in the current release. The only commands you can give to the indexer, other th ...Show All

  • .NET Development .NET UI Application Crash

    Hi, We have a vb.NET client UI application which calls a number of web services. The application is intermittantly crashing completely without any evidence of an exception etc. The application is single threaded for the most part, the only area that deviates is a class managing serial port comms via win32 calls. (we do not use p invoke..) I understand the most likely cause for an unexpected termination of this nature is threading - more specific ...Show All

  • Visual Basic File Handling (read and writing data sequentially)

    Hi everyone i am in a fix i need to make a program that would read a data file seqentailly and display the selected information on the screen this program consists of 2 forms on the main form there is a list box and 4 buttons and labels for displaying appropiate fields now when the file open button is clicked the program should read the file and display the names in the list box and when a selection is made in the list box then ...Show All

  • Visual C++ RC2147 : SUBLANGUAGE ID not a number error in VS 2005 Pro

    I have found a serious problem with the Visual Studio 2005 Professional resource editor. I am based in the UK (this is crucial), and when I add a new resource to an MFC project, it is assigned the English (United Kingdom) language by default. Unfortunately, the following line is added to the .rc file, which will not compile: LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_NEUTRAL The resource compiler will produce the following: error RC2147 : SUBLANG ...Show All

©2008 Software Development Network

powered by phorum