Search results for query: *

  • Users: Cheetah
  • Content: Threads
  • Order by date
  1. C

    Question How do I disconnect a bluetooth device?

    Hi there, I have a Bluetooth device which is connected actively to a PC which uses the integrated Microsoft Bluetooth stack. What I am looking to do is programmatically server that connection using VB.NET. Is that possible todo? If so, how? Thanks.
  2. C

    Question Disable a system device?

    Hi there, Is there any way to disable a system device from VB.NET. Basically emulating when you go to Device Manager and disable a device that way? I am assuming there is a WinAPI function that I can invoke, but I don't know which one it is? The reason I need to do this is that I need to...
  3. C

    Question Try-Catch Statement advice

    I am just wondering what the general consensus is for a situation like this: Dim CodeSuccess As Boolean = True Try If (System.IO.File.Exists("Path_To_File")) Then 'Do something with the file that file. Else...
  4. C

    Question Could someone with VS2005 compile this for me

    Hi there, I only have 2008 installed on this machine and I have a feeling that it might be that breaking the library file that i am trying to build. So can someone with VS2005, preferably on a 32-bit version of Windows, compile this for me so I can see if my suspicions are correct. Thanks for...
  5. C

    Referenced assembly does not have a strong name

    I know it probably isn't totally on topic, but I am creating a plugin for vista media center using their software development pack and i have a referenced .dll but I am unable to build the project as the .dll doesn't have a public key (i think thats the reason). This is the error it gives me...
  6. C

    Question How do I use the SendInput API from a Windows service?

    Hi there, I am creating a windows service which uses the SendInput API to send keypresses to an application (must be SendInput, SendKeys doesn't work). For some reason it does not work in a windows service, but the exact same code works flawlessly in a windows form. I'm guessing there is some...
  7. C

    Question HttpWebRequest - can you notice what I am doing wrong?

    Hi there, I am following this guide here to download a video via a web request: linky! But I get an error in the headers instead of a redirect and I'm assuming i am doing something wrong. What I should be getting is a message box of a header which has a redirect in it. I have checked and the...
  8. C

    Question How do import .NET libraries at runtime?

    Hi there, I am developing a plugin for an application which means I have to import a library into my library at runtime. The library is a .NET dynamic link library and I need to be able to use the structures/methods it houses within my application (plugin library). How would I go about doing...
  9. C

    Question Best way to analyse bytes?

    Hi there, I have an array of bytes which its length in 12. I need to analyse these bytes and have some logic run if a certain byte sequence occurs. I only need to analyse bytes with indicies: 1,2 & 3 where byte(11) = 1 as the rest of the bytes are the same. ====== So how would you analyse...
  10. C

    Anyone know of a HID Library?

    Hi there, Anyone know of a decent HID Library for receiving messages from HID devices into my program? There is this one that works: http://www.lvr.com/hidpage.htm, but it looks very complicated and was hoping for something a little more "managed", something where i could just enter the VID...
  11. C

    Question Intepret Bytes Recieved over network.

    Not sure which section this should go in, so move in required. Basically, I want to be able to type the name of a network connection (one already established by windows) and capture the bytes it receives in my program. How would i do this? Thanks.
  12. C

    Question What data type for decimals?

    Hi there, I am trying to work out ( 6 / 7) but it always comes to 0.0 when i use double as the datatype. So what datatype should i use? Thanks.
  13. C

    Question GUI Thread slow to update - background worker related

    Hi there, I have a progress bar which shows the progress from a background worker. On backgroundworker.progresschanged event I have it update the progress bar (adding 1 to the value), and change the text of a label (in that order). But it seems that the progress bar is lagging, as the text...
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. 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.
  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

    Little animations

    Hi there, I was wondering whether anyone has some tutorials for integrating animations into my application. Things like page transitions, menu animations, etc.... Thanks.
Back
Top