Search:

Type: Posts; User: JohnDorian

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    467

    Re: ADO Parameters

    OLEDB isn't going to work, I think. I just tried it with no luck.

    The driver requires the connection string to be in the following format.


    DSN=ODBC_ConnectionName;UID=UserID;PWD=Password
    ...
  2. Replies
    5
    Views
    467

    Re: ADO Parameters

    Yes. I'm using VB.NET. It's using an ODBC driver. I'll try OLEDB.
  3. Replies
    5
    Views
    467

    Re: ADO Parameters

    It's not a SQLCommand though. It uses the ADODB namespace. I'm not sure it will work with my connection string. I'll try it out though.

    The reason I don't think it will work, is because it's some...
  4. Replies
    5
    Views
    467

    ADO Parameters

    I'm interacting with some weird, out of date database. So I can't use parameters like I would with ADO.NET and SQL.

    This is how I would normally do it:

    command = New SqlCommand("UPDATE table...
  5. Replies
    0
    Views
    427

    VS 2010 SQLDataSource Control Missing

    Is the SQLDataSource not available in Windows Forms apps? I've used it in ASP.NET apps and it works great. I was hoping to use it in Windows Forms, but I don't see it in the ToolBox.
  6. Replies
    4
    Views
    1,165

    VS 2010 Re: Mute Speakers But Not Line Out

    I'm not sure if I'm doing something wrong, but I can't seem to get any of that code to work. If I just attempt to mute the volume, nothing occurs.

    That and I can't find any methods in his class...
  7. Replies
    4
    Views
    1,165

    VS 2010 Mute Speakers But Not Line Out

    I need to be able to mute the speakers in a computer, but not the line out because I need the headphones to still work.

    I've been researching this, but I've only been able to find information on...
  8. VS 2010 Re: Using 'Contains' In a Select Statement

    For Each _line In lineList
    Select Case True
    Case _line.ToLower.Contains("test")
  9. VS 2010 [RESOLVED] Using 'Contains' In a Select Statement

    I was using an If block to see if a line in a file contained a specific string. But I need to look for many different string and do different things based on each. So I don't want a million nested If...
  10. Replies
    0
    Views
    366

    VS 2010 How to Determine if the Monitor is Off

    I need to be able to determine if the "monitor" on a notebook is off. Through some research, I found that the Win32_DesktopMonitor class of WMI allows us to check that through the Availability...
  11. Replies
    5
    Views
    1,474

    VS 2010 Re: Detecting Laptop Lid Close

    Or if someone could help me figure out which constant I could use besides WM_POWERBROADCAST, I'd be very grateful.
  12. Replies
    5
    Views
    1,474

    VS 2010 Re: Detecting Laptop Lid Close

    Does anyone have any ideas? I've been going crazy trying to figure this out and I'm having no luck.
  13. Replies
    5
    Views
    1,474

    VS 2010 Re: Detecting Laptop Lid Close

    So I used to following code snippit earlier and it worked, but just not in the context that I need it.

    Private Const WM_POWERBROADCAST As Integer = &H218
    Protected Overrides Sub WndProc(ByRef...
  14. Replies
    5
    Views
    1,474

    VS 2010 Re: Detecting Laptop Lid Close

    Yeah. I've been playing with those messages for hours now. I've tried everything I could think of an even used different examples people have shown, but I can't get anything to work. Which is why I'm...
  15. Replies
    5
    Views
    1,474

    VS 2010 Detecting Laptop Lid Close

    I've been searching this for quite a while now, but I've come up with very little so far.

    I need to figure out how to determine when a laptop lid has been closed so an execute an action when this...
  16. Replies
    25
    Views
    1,640

    VS 2010 Re: using webcam in program

    Daniel... can you save an image with your project?
  17. VS 2010 Re: Microphone w/SpeechRecognitionEngine

    It took forever, but I was finally able to get this figured out. I found an example on MSDN, which uses the RecognizeCompletedEventArgs.Result Property.
  18. VS 2010 Re: Microphone w/SpeechRecognitionEngine

    Oh, wait. I just found some events that might come in handy. I hadn't thought about using events until just events until just now.
  19. VS 2010 [RESOLVED] Microphone w/SpeechRecognitionEngine

    I'm trying to see if the microphone on a PC is working correctly by utilizing the SpeechRecognitionEngine class.

    I'm using the following code:

    Dim RecognitionEngine As New...
  20. VS 2010 Copy Local Libraries In Specified Folder

    I'm working on a large project that requires many libraries to be included with the project.

    The application won't be installed and will run off a USB. I was wondering if I could include those...
  21. VS 2010 Re: DirectX - Could Not Load File or Assembly

    That worked perfectly, Grimfort.

    Thanks a lot.
  22. VS 2010 Re: DirectX - Could Not Load File or Assembly

    Oh, I see. I had that library within my project, but VS said it was unused. So I removed it. I'll try that.
  23. VS 2010 [RESOLVED] DirectX - Could Not Load File or Assembly

    When I try to play an audio file through DirectX, that isn't my development machine, I receive this error.

    The DirectX library I'm using is Microsoft.DirectX.AudioVideoPlayback.dll.

    I include...
  24. Replies
    1,154
    Views
    208,318

    Re: artificial intelligence

    What is this?
  25. Replies
    1
    Views
    435

    Re: iTunes Question...Your thoughts?

    This section of the forum is for VB, the programming language. Not the scripting language.

    I've informed the mods, and if appropriate, they'll move this to the correct forum.
  26. VS 2010 Detect Headphones Or Only Play Sound Through Headphones

    I need to be able to play sounds through the headphones only. So I figured I could do two things. I could either detect if there's a pair of headphones connected to the PC, constantly. Or I could...
  27. VS 2010 Re: Cannot Dispose DirectX Audio Object After Playing

    Ah, gotcha. I slept the thread for the method that the code is in, for one second. It works perfectly now. Thanks
  28. VS 2010 Cannot Dispose DirectX Audio Object After Playing

    I'm playing an audio file like so:

    Dim audio As New Audio(Application.StartupPath & "\test.wav", True)
    audio.Balance = 10000
    audio.Play()

    Which works great. But if I need to...
  29. Replies
    6
    Views
    2,178

    VS 2010 Re: Play Audio In One Channel

    After looking through the MSDN documentation, I found out that the SpeechSynthesizer class has a method called SetOutputToWaveFile. In conjunction with the Audio class from the DirectX library, I...
  30. Replies
    6
    Views
    2,178

    VS 2010 Re: Play Audio In One Channel

    Right. But I need to play the synthesized sound in specific channels at specific times.

    Do you know what I can do do accomplish this? All I need is an idea and I can begin researching it.

    I'm...
  31. Replies
    6
    Views
    2,178

    VS 2010 Re: Play Audio In One Channel

    Thanks for the information, Paul. I was wondering though. Could I play the sound from the SpeechSynthesizer?

    Dim test As New Synthesis.SpeechSynthesizer
    synth.SpeakAsync("test")

    Or...
  32. Replies
    6
    Views
    2,178

    VS 2010 [RESOLVED] Play Audio In One Channel

    I want to play a sound in the left speaker only and then again in the right speaker. I know it's possible because I've seen it before, but I'm not sure how to do it.

    I'll probably have to use an...
  33. Replies
    1
    Views
    338

    VS 2010 Detecting USB

    I'm having a hard time figuring this out. I need to determine if the USB devices plugged in are USB drives.

    I can detect removable storage, but I need to differentiate between flash drives and...
  34. Replies
    7
    Views
    6,636

    Re: Form.Show() wont work after closed

    To elaborate on BB's answer...

    Yes, you can hide it instead of closing it. However, I would still close it, but instead of using the default instance, I'd create a new instance of the form each...
  35. Re: [Extension] Set control properties across threads

    Nick,

    Do you know why I can't use SetThreadSafeProperty with a ToolStripTextBox? It says that property isn't a member of 'System.Windows.Forms.ToolStripTextBox.'

    I tried changing all of the...
  36. Replies
    14
    Views
    7,336

    VS 2010 Re: CopyFromScreen My Form

    That's perfect. Thanks a lot, Paul.
  37. Replies
    14
    Views
    7,336

    VS 2010 CopyFromScreen My Form

    I'm using the code below to get a screenshot of the entire screen.

    Dim b As New Bitmap(Me.Width, _
    Me.Height, _
    Imaging.PixelFormat.Format32bppArgb)

    ...
  38. Re: [Extension] Set control properties across threads

    Is there any way I can use this targeting the 2.0 framework?
  39. Replies
    70
    Views
    22,359

    Re: Asynchronous File Downloading Queue System

    But what about the progressbar?

    i did what you said and i had no problem with downloading, but i dont know how to get progress. i look into the class comments like you suggested.
  40. Replies
    70
    Views
    22,359

    Re: Asynchronous File Downloading Queue System

    i think i'm using the multiple downloading version. at least i want to.

    what i'm asking i thought should be too hard to make. i just need to add urls to queue and then download w/ progressbar.
Results 1 to 40 of 42
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width