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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  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
  16. softwarescience

    connection.Execute command

    Hello Yes there are issues if you use the connection object to execute. It is best to use the command object i.e. Dim comA As New ADODB.Command comA.ActiveConnection = ConnectionObject comA.CommandText = &quot;Update table1 set field1 = 'text1'&quot; comA.CommandType = adCmdText comA.Execute...
  17. softwarescience

    Move to a record using an InpuBox

    Hello You're nearly there, try the following. sName = Trim(InputBox(&quot;Please Enter Doc# Below..&quot;)) strRS = &quot;SELECT * FROM table1 WHERE doc# = &quot; & Left(sName, Len(sName) - 3) Check that the condition field 'doc#' is called exactly that. Hope this helps
  18. softwarescience

    Import RTF docs from SQL to Notes via VB

    Hello Yes, once you reference the Domino objects in VB you have the same functionality as Lotus Script. When you say the docs are stored as text do you mean; a) The document is stored as a streaming blob object b) As the Rtfs contents in a large char field If a then you will need to extract...
  19. softwarescience

    Menu Editor

    You can get it at 'http://msdn.microsoft.com'
  20. softwarescience

    Search/Read a MS-Word Document

    A couple of things. You must have error trapping set to 'Break on unhandled errors' (this because it's trying to use an open instance before creating a new instance and the only way to trap it is to trap the error) Also if you are using Word 2000 you need 'Word.Application.9'

Part and Inventory Search

Back
Top