Click here to Skip to main content
15,889,116 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRe: Sql Value to buttons........ Pin
Paul Conrad13-Oct-15 5:54
professionalPaul Conrad13-Oct-15 5:54 
Questionvb.net 2010 determine what files each user has access to Pin
dcof12-Oct-15 11:36
dcof12-Oct-15 11:36 
AnswerRe: vb.net 2010 determine what files each user has access to Pin
CHill6012-Oct-15 12:06
mveCHill6012-Oct-15 12:06 
GeneralRe: vb.net 2010 determine what files each user has access to Pin
dcof13-Oct-15 4:52
dcof13-Oct-15 4:52 
GeneralRe: vb.net 2010 determine what files each user has access to Pin
CHill6013-Oct-15 10:26
mveCHill6013-Oct-15 10:26 
QuestionVB.NET Windows Application Pin
Ranganath Deshpande8-Oct-15 10:18
Ranganath Deshpande8-Oct-15 10:18 
AnswerRe: VB.NET Windows Application Pin
Richard Andrew x648-Oct-15 10:38
professionalRichard Andrew x648-Oct-15 10:38 
QuestionAccess tablet webcam Pin
Member 120415567-Oct-15 17:18
Member 120415567-Oct-15 17:18 
I have used this code to access the webcam of my laptop and it perfectly works, but once i try to open it in my tablet it just shows me a black screen, the same thing happen when i test the code with a PC that does not have a webcam!

ANY IDEAS?

Dim hCap As Long
Private Sub cmd4_Click()
Dim sFileName As String
    Call SendMessage(hCap, wm_cap_set_preview, CLng(False), 0&)
    With CDialog
        .CancelError = True
        .Flags = cdlOFNPathMustExist Or cdlOFNOverwritePrompt
        .Filter = "Bitmap Picture(*.bmp)|*.bmp|JPEG Picture(*.jpg)|*.jpg|All Files|*.*"
        .ShowSave
        sFileName = .FileName



    End With
    Call SendMessage(hCap, WM_CAP_FILE_SAVEDIB, 0&, ByVal CStr(sFileName))
DoFinally:
    Call SendMessage(hCap, wm_cap_set_preview, CLng(True), 0&)
End Sub





Private Sub Cmd3_Click()
Dim temp As Long
temp = SendMessage(hCap, WM_CAP_DRIVER_DISCONNECT, 0&, 0&)
End Sub



Dim hwdc As Long
Dim startcap As Boolean
Private Sub cmdCapture_Click()
Dim temp As Long

  hCap = capCreateCaptureWindow("Take a Camera Shot", ws_child Or ws_visible, 0, 0, PicWebCam.Width, PicWebCam.Height, PicWebCam.hWnd, 0)
  If (hwdc <> 0) Then
    temp = SendMessage(hwdc, wm_cap_driver_connect, 0, 0)
    temp = SendMessage(hwdc, wm_cap_set_preview, 1, 0)
    temp = SendMessage(hwdc, WM_CAP_SET_PREVIEWRATE, 30, 0)
    startcap = True
    
    Else
    MsgBox ("No Webcam found")
  End If
  End Sub







Private Sub Cmd2_Click()
Dim temp As Long
temp = SendMessage(hCap, WM_CAP_DLG_VIDEOFORMAT, 0&, 0&)
End Sub



Private Sub Form_Load()
cmd1.Caption = "Start &Cam"
cmd2.Caption = "&Format Cam"
cmd3.Caption = "&Close Cam"
cmd4.Caption = "&Save Image"
End Sub

QuestionProblems implementing MEF Pin
Kenneth Haugland7-Oct-15 8:43
mvaKenneth Haugland7-Oct-15 8:43 
AnswerRe: Problems implementing MEF Pin
Brisingr Aerowing7-Oct-15 9:15
professionalBrisingr Aerowing7-Oct-15 9:15 
GeneralRe: Problems implementing MEF Pin
Kenneth Haugland7-Oct-15 9:32
mvaKenneth Haugland7-Oct-15 9:32 
QuestionRe: Problems implementing MEF Pin
Kenneth Haugland7-Oct-15 18:57
mvaKenneth Haugland7-Oct-15 18:57 
AnswerRe: Problems implementing MEF Pin
Kenneth Haugland7-Oct-15 20:55
mvaKenneth Haugland7-Oct-15 20:55 
Questionmouse hover over button to show sliding label and don't hide it until mouse leaves the panel. Pin
Pravas Ranjan7-Oct-15 3:11
Pravas Ranjan7-Oct-15 3:11 
QuestionCompiled code cannot create Excel.Application, Interpreted is fine Pin
DAH_bham6-Oct-15 1:27
DAH_bham6-Oct-15 1:27 
AnswerRe: Compiled code cannot create Excel.Application, Interpreted is fine Pin
Richard Deeming6-Oct-15 1:49
mveRichard Deeming6-Oct-15 1:49 
GeneralRe: Compiled code cannot create Excel.Application, Interpreted is fine Pin
DAH_bham6-Oct-15 2:33
DAH_bham6-Oct-15 2:33 
GeneralRe: Compiled code cannot create Excel.Application, Interpreted is fine Pin
Richard Deeming6-Oct-15 2:37
mveRichard Deeming6-Oct-15 2:37 
GeneralRe: Compiled code cannot create Excel.Application, Interpreted is fine Pin
Richard Deeming6-Oct-15 2:38
mveRichard Deeming6-Oct-15 2:38 
GeneralRe: Compiled code cannot create Excel.Application, Interpreted is fine Pin
Dave Kreskowiak6-Oct-15 5:14
mveDave Kreskowiak6-Oct-15 5:14 
SuggestionRe: Compiled code cannot create Excel.Application, Interpreted is fine Pin
Richard Deeming6-Oct-15 5:20
mveRichard Deeming6-Oct-15 5:20 
GeneralRe: Compiled code cannot create Excel.Application, Interpreted is fine Pin
DAH_bham6-Oct-15 3:36
DAH_bham6-Oct-15 3:36 
AnswerRe: Compiled code cannot create Excel.Application, Interpreted is fine Pin
Dave Kreskowiak7-Oct-15 4:33
mveDave Kreskowiak7-Oct-15 4:33 
QuestionStandard VB 2013 progress bar animation weirdness Pin
Member 15839634-Oct-15 8:53
professionalMember 15839634-Oct-15 8:53 
QuestionRe: Standard VB 2013 progress bar animation weirdness Pin
Brisingr Aerowing4-Oct-15 13:09
professionalBrisingr Aerowing4-Oct-15 13:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.