Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by softwarescience

  1. softwarescience

    GetOpenFileName Directory Locking

    Thanks for the link, it was just what I wanted. Basically, someone else having the same problem and getting the same solution of re-setting the current directory. Seems daft though that there is no definate way of releasing the directory lock.
  2. softwarescience

    GetOpenFileName Directory Locking

    We have a C++ dll that is uploaded to intranet users to allow them to select file names. This uses the GetOpenFileName function with the OPENFILENAME structure. The basic concept works, however there is an unwanted side affect that we cannot find any reference to. For windows 98 SE and prior...
  3. softwarescience

    Read ListBox and Loop

    Hello Sorry, forgot that the listbox has a base object collection rather then a strongly typed one. The following should do it; 'to iterate through choose one of the following For I As Int32 = 0 To ListBox1.Items.Count - 1 Select Case True Case...
  4. softwarescience

    Read ListBox and Loop

    Hello Something along the following lines would be more suitable for list iteration; For Each itm as ListItem In lblList.Items 'itm is the actual listItem and provides you with 'all accessible properties/methods Next
  5. softwarescience

    Printing Crystal Reports in VB Net

    Hello I had the same problem a while ago. My solution was related to the printer not having PCL support. I believe most HPs use postscript (PS) drivers by default, which will cause Crystal to render incorrectly. If you install the latest PCL drivers for this printer and try again it should...
  6. softwarescience

    Check Radio button from parameter

    After a bit more toing and froing I eventually found the problem. The 'getElementById' method does work using 'uscQryColz5_rblBoolean_0', the problem was that for some reason I'd started appending 'Form1.' to it. Apparently 'getElementById' has no regard for the form level. Thanks for all your...
  7. softwarescience

    Check Radio button from parameter

    Re: BillyRayPreachersSon That's what I thought! However, this is asp.net rendering controls derived from the RedioButtonList (within a usercontrol). I have found no simple way of controlling the name. I specified the id (which is rendering as expected) but the name is auto generated. Re: tsuji...
  8. softwarescience

    Check Radio button from parameter

    Re: my last post the code part seems to be missing the radio buttons closing tags, but I can assure you they are there!
  9. softwarescience

    Check Radio button from parameter

    Hello I'm passing in two strings, the element name/id (i've tried both) to 'sArgs' and the element type to 'sType'. So both parameters are simple strings. My radio buttons have the following structure (in form1); <input id="uscQryColz5_rblBoolean_0" type="radio" name="uscQryColz5:rblBoolean"...
  10. softwarescience

    Check Radio button from parameter

    Hello I seem to have hit a mind-bendingly awkward problem using GetElementsByName to get a radio button group and select a particular item. Following is a portion of the code I am trying to make work. function doDataPopup(sArgs, sType) { var RetVal; var oObj; RetVal =...
  11. softwarescience

    Retrieve path and account info for services

    Using the 'ServiceProcess.ServiceController' namespace and class I can get almost all the information I want regarding services and devices, and manipulate them. However, (as usual with .Net) the last bit of information I need is the actual path of the service and the account it runs under...
  12. softwarescience

    Opening ADODB connection with CurDir = &quot;A:&quot;

    I ask a user to select a file from the &quot;A:&quot; drive. Then they exit the application. When they restart the application there is no floppy in the &quot;A:&quot; drive and when I call &quot;Connection.Open&quot; (ADO 2.6) VB6 always checks the A drive (and displays the 'cannot read drive...
  13. softwarescience

    connection.Execute command

    I would say if you can use a command to complete an update then that is prefferable, mainly because you are allowing the server to do the work and all you are passing across the network is the update query, rather then trying to maintain an updatable recordset. There are some quite resonable...
  14. softwarescience

    Ressize/size MDI with picture box

    Hello Try the following Private Sub loadChild(ByVal FileName As String) Dim nForm As New frmChild With nForm .picMain.Picture = LoadPicture(FileName) .picMain.Align = vbAlignTop .picMain.Align = .height .Caption = FileName .Show End With...
  15. softwarescience

    Automatic shutdown of application when windows is shutdown

    Hello Try it in the QueryUnload event Hope this helps

Part and Inventory Search

Back
Top