Search results for query: *

  1. C

    Question Get directory of application exe

    That works! (System.Windows.Forms.Application.StartupPath). LOL - I see the issue now, I stupidly named one of my properties for the user control "Application", so intellisense used that :s Thanks for your help.
  2. C

    Question Get directory of application exe

    I can use Application.StartupPath to get what I want. But I am creating a Control Library and from the control library I want to be able to get the Application.StartupPath of the application the control library is used in as intellisense doesn't allow me to get Application.StartupPath from the...
  3. C

    Question Get directory of application exe

    Thanks - that gets what I wanted. I am creating a user control (from a control library) and i want the user control to have the string returned from Application.StartupPath. I'm guessing I will have to pass it the string somehow when it loads? Or is there anyway it can get it from the parent...
  4. C

    Question Get directory of application exe

    I always thought that System.IO.Directory.GetCurrentDirectory() got the directory that the main executable of your application was in, but it would appear that I am wrong and this gets the directory that the application was started from, so if it was started in the start menu, it would get the...
  5. C

    Emulate Form.Show

    Hi there, I am using a component to print the form, but I don't actually want the form to be show. In order to get it to actually print, I have to create the form, show the form and then hide it, but obviously, something popups and disappears quickly. Is there a method to emulate what the...
  6. C

    Processes - starting hidden and controlling them

    This is the code i am currently using to no avail: prc.StartInfo.CreateNoWindow = true; prc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; prc.StartInfo.UseShellExecute = true; prc.Start(); It still creates a window....I'm guessing i am using these methods incorrectly? prc is the...
  7. C

    Processes - starting hidden and controlling them

    Hi there, Is it possible without the use of commandline arguments (as i don't think there is a hidden argument for this application) to make an application to start hidden? Also is it possible, that if the application popups with any "message boxes" that it automatically presses the "ok...
  8. C

    VS.Net 2005 & VS.Net 2008, What's the difference ??

    Is it hard to do this - ie do you manually have to added and remove the relevant references (or is it automatically). It i choose the target as .NET 2.0 for an application (didn't use the .NET 3.0 or 3.5 stuff) - could i then develop that application in VS2005 if i wanted too? I am currently in...
  9. C

    DB included in source? Need SQL server?

    I take it that its the same if i use an Access Database? So if I try to run the application in a environment that doesn't have SQL installed, it take it that it would give me some sort of .NET exception? (Sorry about the title - noted for the future)
  10. C

    DB included in source? Need SQL server?

    Hi there, I am sure this a stupid question but if i create an application and use a sql database in it, i can save that whole project onto a usb drive and develop it on a different pc can't I? The database isn't in some way saved to the server or something? I don't know why, but i am under the...
  11. C

    Comparing FileInfo.FileAttributes

    Thanks very much - i understand now.
  12. C

    Comparing FileInfo.FileAttributes

    Ok i'm not really with you, but i will google "bitwise operations" and i'll post back if i still need help. Thanks.
  13. C

    Comparing FileInfo.FileAttributes

    Hi there, I am having some trouble comparing file attributes because there can sometimes be more than one attribute assigned to a specific file or directory. So how would i write in vb this: if (one of the file attributes is hidden) Then ...do something.... end if Thanks.
  14. C

    KeyPreview - How do I overcome this problem?

    EDIT: Sorted thanks.
  15. C

    Any way to redesign a button?

    Maybe too simplistic, but background image?
  16. C

    Audio Device Manager

    I have done some googling on this, and it appears that it is not possible (from what I found).... ...but if anyone knows differently, please say, as I would like to know how to do this aswell. Thanks.
  17. C

    KeyPreview - How do I overcome this problem?

    For some reason, after i integrated this into my application it doesn't seem to work. It only triggers when the focus is on the form, but when i tested it on a temporary application, it triggered when a button was focussed aswell Could it be due to the fact that the buttons are being added at...
  18. C

    Autoscroll - but without the scrollbars

    Thanks for your reply. The reason for wanted to do this is that it is a custom control and I don't want the scrollbars there as they ruin the aesthetics as it is a custom skinned application. I am not too clued up on the paint events and things like that, but is there anyway to override them...
  19. C

    Autoscroll - but without the scrollbars

    Hi there, Basically, I am creating a keyboard only application, so I want the effect of autoscroll on a flow planel layout control but i don't want the scroll bars to be visible. Is there a way of achieving this without adding complex logic to do it manually? Thanks. EDIT: Just incase you...
  20. C

    KeyPreview - How do I overcome this problem?

    lovely - understand fully now...thanks.
Back
Top