Search:

Type: Posts; User: stavris

Page 1 of 5 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    124
    Views
    131,811

    Re: Populate TreeView with Active Directory objects

    Hi Chris,

    First of all I'd like to thank you for the code.
    Further I have written a small recursive routine to populate the tree and since I have seen in one of the threads that you intended to...
  2. Replies
    7
    Views
    1,190

    VS 2008 Re: My.settings arraylist Error

    I now have a bit more information on the problem.

    Last time I was missing the last part of the error message that deemed crucial after all.
    It says that:

    "An attempt was make to load a program...
  3. Replies
    5
    Views
    850

    VS 2008 Re: My.settings and Mandatory profiles

    Some more info on the Mandatory Profiles from http://msdn.microsoft.com/en-us/library/windows/desktop/bb776895(v=vs.85).aspx

    Database is not an option in my case unfortunately , even though it...
  4. Replies
    5
    Views
    850

    VS 2008 Re: My.settings and Mandatory profiles

    It's the whole folder ...
    So every time they log off C:\users\<userName> is gone ...

    Regarding the Mandatory profiles ... the first time I heard of them was on an installation ... that needless...
  5. Replies
    1
    Views
    762

    VS 2010 Re: Application for Tracking Program Usage

    Hi,

    You can use the office interop dll's (e.g. Microsoft.Office.Interop.Word) to "connect" to existing office instances that are running on your PC.
    Once you do that you can use the API of the...
  6. Replies
    14
    Views
    2,040

    Re: Loop doesnt work..

    Your chk_prac_no will have exactly one value when you are doing the For loop.
    Since you have the if statement that says only execute the INSERT when the row value is the same with your chk_prac_no...
  7. Replies
    5
    Views
    850

    VS 2008 My.settings and Mandatory profiles

    Hi all,

    This is more of a general question on how you guys deal with the following scenario.

    So here we go:

    Some of our customers use Windows Mandatory Profiles on their machines. Every time...
  8. Replies
    7
    Views
    1,190

    VS 2008 Re: My.settings arraylist Error

    Thanks.

    Much appreciate it.
  9. Replies
    7
    Views
    1,190

    VS 2008 Re: My.settings arraylist Error

    Hi Shaggy,

    Yes I'll be interested in having a look at your code thanks.
    The customer PC is a 32 bit XP machine (that's the initial info anyway). I'll need to get in touch with them and see if I...
  10. Replies
    7
    Views
    1,190

    VS 2008 My.settings arraylist Error

    Hi all,

    I have an application that has several user settings one of which is an arrayList (System.Collections.ArrayList). The value in the settings for the ArrayList is set to System.Object which...
  11. Thread: Format Text

    by stavris
    Replies
    2
    Views
    2,766

    Re: Format Text

    Hi this could be one solution:

    When you create your dialog "Notes" in the constructor you can pass an instance of your main form

    Dim notesForm as new Notes(me)


    You then add teh text to...
  12. Replies
    1
    Views
    479

    Re: Error in Code

    label.text should be a string... You are missing your "" from them two lines of code...


    Label1.Text = "F:\Folder (3)\Testzippingutility\Testzippingutility1"
    Label2.Text = "H:\Test"
  13. Replies
    2
    Views
    620

    VS 2008 Re: Windows updates being installed

    Thanks for the reply.
    I will try that.
  14. VS 2005 Re: Tutorials for Serial ports / threading???

    Have you tried using the "DataReceived" event of your serial port?
    Read existing will happen once there in your code but if there is nothing there then it will read nothing...

    Have a look here...
  15. Replies
    2
    Views
    620

    VS 2008 Windows updates being installed

    Hi all,

    I was wondering if there is a way to detect if Windows Updates are currently being installed.
    The reason is that I have written some software that sends my PC to hibernation if is idle...
  16. Re: Getting speech promt to wait for textbox enter

    You can use a simple delay routine when entering the event as seen below:


    Sub Delay(ByVal dblSecs As Double)

    Const OneSec As Double = 1.0# / (1440.0# * 60.0#)
    Dim dblWaitTil As Date
    ...
  17. Re: Getting speech promt to wait for textbox enter

    What I suggest you do next is to add a break point at the enter event of your text box and run your program. See how many times is being hit and when.

    Also do you have any other events on your...
  18. Re: Getting speech promt to wait for textbox enter

    Are you using the text box events to do this?
    The simplest way will be to use say the "Enter" event of your textbox and then do your voice prompt.

    How do you "execute" your prompts now? And also...
  19. Replies
    13
    Views
    1,712

    VS 2010 Re: Storing data in txt file for program use

    Have a look at this link.
    If you need more help after reading this post here again and we'll try to assist you more.
  20. Replies
    5
    Views
    956

    VS 2008 Re: vb.net wid sql server

    What Shaggy said really ...
    The ony thing I have to add is that you should use cb_vtype.text if you want the contents of your cb...
  21. Replies
    3
    Views
    584

    VS 2008 Re: Declared Varible? Where?

    The error your are getting is a couple of lines below (RKey.GetSubKeyNames()) where you are meant to set your RKEY because most probably RKEY is nothing (you can check this by setting a break point...
  22. Replies
    5
    Views
    956

    VS 2008 Re: vb.net wid sql server

    Is cb_vtype a combo box? If so selected item returns an Object that you treat as a string.
    I think if you fix that your problem will go away.

    Also and this is an aesthetics comment I would...
  23. Replies
    12
    Views
    1,413

    Re: A blonde walks into a bar...

    Artificial Intelligence :)
  24. Replies
    13
    Views
    1,712

    VS 2010 Re: Storing data in txt file for program use

    To add to what the others have said if you are going to use a text file and have your program write to it you need to take into account UAC. Since Vista have been released you cannot freeley write to...
  25. Re: An Excel application is still running in the backround.

    Try this:


    'post message function used to get rid of the excel process
    Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Int32, ByVal wMsg As Int32, _
    ...
  26. Re: An Excel application is still running in the backround.

    I am afraid that is how excel operates ... I have come across this in the past and found two ways to get rid of the excel process...
    1. Kill it :) (not the best way of doing things I know)
    2. Send...
  27. VS 2010 Re: Conversion from string "" to type 'Integer' is not valid.

    The reason you are getting that error is because you are trying to do a convert to Integer of an empty string ...
    When you hit your backspace the contents of your textbox change which fires the...
  28. VS 2010 Re: Creating Directories While UAC Is Enabled

    You can change the UAC settinga of your application and grand it admin rights which will sub-sequently allow it to do actions that are not permitted by UAC.
    Have a look at this link for more...
  29. Re: my.settings not working when application is opened from startup shortcut

    Hi two things to try:

    First is try to exclusively save your settings after you change them: My.settings.save

    Ans second you say when you run it normally it works but if you run it from start-up...
  30. Replies
    5
    Views
    1,400

    VS 2008 Re: Month's Between 2 dates

    Picking up from jmc left it something along these lines should do it :



    Dim d1 As DateTime
    d1 = New DateTime(2006, 1, 1)

    Dim d2 As DateTime
    ...
  31. Replies
    1
    Views
    1,315

    Re: Trying to create my first addin

    I don't think you'll get much help here when it comes to SolidWorks addins...
    I suggest you use either the SolidWorks forums or AngelSix which is another good SolidWorks API forum
  32. Thread: run at startup

    by stavris
    Replies
    5
    Views
    1,008

    Re: run at startup

    What do you use to deploy your application? Are you using a setup project from visual studio?

    The reason I am asking is because setup projects have a "registry" section where you can add keys. I...
  33. Replies
    8
    Views
    1,053

    VS 2008 Re: Reload modal form

    No problem
  34. Replies
    8
    Views
    1,053

    VS 2008 Re: Reload modal form

    I have tried this and it works fine on mine i.e. I only get the OK once after my url has been loaded without having to change the visible property...
    Have you tried to add a breakpoint in the...
  35. VS 2008 Re: view images loacted in the main app folder.

    Try this:
    Application.startupPath
  36. Replies
    8
    Views
    1,053

    VS 2008 Re: Reload modal form

    What do you mean the browser does not refresh?
    Also where exactly do you set the .navigate property?
    I have tried this now and I set the .navigate in the form load event and it seems to work fine.
  37. VS 2008 Re: I need a special type of project

    Have a look at creating a background formless application then.
    Create your module, add a main method to it like you have done anyway and then in the project properties in the "Startup object" you...
  38. Replies
    7
    Views
    1,803

    VS 2008 Re: Getting Startup Folder (Vista/7)

    I get the same location as you too. I haven't tried running a program yet but I have been reading that UAC might be an issue with start-up programs especially if they require elevated access. Also...
  39. Replies
    7
    Views
    1,803

    VS 2008 Re: Getting Startup Folder (Vista/7)

    What do you mean it is not working?
    What does this return on your machine?
    Environment.GetFolderPath(Environment.SpecialFolder.Startup)
  40. VS 2008 Re: Deployment Installer - Change default installation path

    Change your application folder default location property to:
    C:\[Manufacturer]\[ProductName]
Results 1 to 40 of 166
Page 1 of 5 1 2 3 4



Click Here to Expand Forum to Full Width