Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

tatchung

@tatchung
About
Posts
184
Topics
53
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Climbing gyms NC
    T tatchung

    Hi! Anyone from NC? Its my first time here at Wake Forest, NC and I was wondering where the nearest indoor climbing gyms and outdoor climbing sites is from my place. Dont want to slack up on my training specially when I get buy at work. Thanks in advance! :-D Regards Andrew

    Aim small, miss small

    The Lounge question

  • GSM Modem alternative
    T tatchung

    Hello, I was wondering if anyone knows an alternative to receive sms to a personal computer other than through a GSM Modem. I really find this method quite slow than using kannel project. Any reply would be greatly appreciated. Thanks in advance :-D

    Aim small, miss small

    Mobile

  • Populate Datagrid control
    T tatchung

    Hi, Im having trouble populating my datagrid control from an ms access database. 1st method I used was through ADODC control and it worked fine. Then I just found a way to lessen the code by creating a class then passing variables through a module. Anyways using the class method my datagrid does not show any data at all. I've removed the datasource control and debugged the program...record count shows that it did get something. Im just in the dark why it won't populate in my datagrid. By the way I'm using vb6 and datagrid through common control 6.0. populate datagrid

    clsPubConnection.GetQuery rs1, "insert query here", 1, 1
    Set dgd1.DataSource = rs1
    dgd1.Refresh

    code inside the class

    If rs.State = 1 Then rs.Close
    With rs
    .CursorType = intCursorType
    .LockType = intLockType
    .ActiveConnection = cn
    .Source = strSqlCommand
    .Open
    End With

    Any help would be greatly appreciated. Thanks in advance :-D

    Aim small, miss small

    Visual Basic database help

  • Windows Media Player cannot open MP3 files
    T tatchung

    Amazing...that really did the job. Thanks friend! I really appreciate that :thumbsup::thumbsup::thumbsup:

    Aim small, miss small

    Visual Basic question linux help

  • Windows Media Player cannot open MP3 files
    T tatchung

    Couldn't agree more...i meant using vb6 has been a burden for me. Unfortunately this was a requirement...client haven't, couldn't, wouldn't install a .NET framework for reasons they "wouldn't" disclose. Lotsa "'s"s in there :~

    Aim small, miss small

    Visual Basic question linux help

  • Windows Media Player cannot open MP3 files
    T tatchung

    Hi! Thanks for the reply :)

    Eddy Vluggen wrote:

    Notice the extra quotes around "txtscreenshot.Text" Smile

    Yeah I've tried removing that quote but it still doesn't open. So in static "txtscreenshot.Text" generates path names like "C:\Documents and Settings\Computer1\Desktop\New\something.mp3". Shell command recognizes "C:\Documents" as 1 file "and" as another and so on. How can I make it recognize the path name as it is?

    Eddy Vluggen wrote:

    ..why? VB.NET is a free download, check out Visual Basic.NET Express Smile

    I know...that's a great deal of my problem :laugh: ;P

    Aim small, miss small

    Visual Basic question linux help

  • Windows Media Player cannot open MP3 files
    T tatchung

    Hi all, I'm currently working on an application that opens media files with respect to their file extensions. Images are opened with Microsoft image viewer, video is opened with VLC and mp3 is supposed to be played with windows media player/VLC. So far opening images works fine but when I try to open video or music files i get the error that the opened application is unable to play the file.I'm positive that It has something to do with the spaces on the file location e.g. c:\Program Files\Windows Media Player\something.mp3. Question is how do I make it that the location doesn't incur any spaces or is there another way to open the files in their respective application aside from what I've been doing. I'm using vb6 by the way. Below are the codes I use for my task: Images

    Shell "rundll32.exe C:\WINDOWS\System32\shimgvw.dll,ImageView_Fullscreen " & txtscreenshot.Text & "", vbMaximizedFocus

    Video

    Shell ("C:\Program Files\VideoLAN\VLC\vlc.exe " & txtscreenshot.Text & ""), vbNormalFocus

    Music

    Shell "C:\Program Files\Windows Media Player\wmplayer.exe " & txtscreenshot.Text & "", vbNormalFocus

    Many thanks for all your replies! :-D

    Visual Basic question linux help

  • vbSendMail does not send email
    T tatchung

    Hello! I've an application that uses vbSendMail.dll for emails. When in debug mode the application works smoothly. However once I've compiled/packaged the app using VS package and deployment wizard it does not send emails. Weird thing is it does not generate any error. vbSendMail.dll and mswinsck.ocx both have been included in the package and registered successfully. By the way I'm using vb6 for this app. This is the part of the email code

    Set vbemail = New vbSendMail.clsSendMail
    vbemail.SMTPHost = "****.*****.***"
    vbemail.FromDisplayName = ""
    sendemail
    ...................
    vbemail.From = senderemail
    vbemail.CcRecipient = "*********"
    For i = 1 To Adodc3.Recordset.RecordCount
    vbemail.Recipient = vbemail.Recipient + Adodc3.Recordset!email + ";"
    Adodc3.Recordset.MoveNext
    Next i

            If Not txtemail.Text = "" Then
                vbemail.CcRecipient = vbemail.CcRecipient + ";" + txtemail.Text
            End If
    
            vbemail.Attachment = Adodc1.Recordset!screenshot
            vbemail.Subject = "\[INCIDENT\] WSA " & Adodc1.Recordset!incident & "  " & Adodc1.Recordset!datereported
            vbemail.Message = "Hi Sir/Ma'am" & Chr(13) & Chr(13) & "IR NO. : " & Adodc1.Recordset!irno & Chr(13) & "STATUS: " & Adodc1.Recordset!Status & Chr(13) & "PROBLEM CLASSIFICATION: " & Adodc1.Recordset!problemclassification & Chr(13) & "PROBLEM: " & Adodc1.Recordset!problem & Chr(13) & "RESOLUTION: " & Adodc1.Recordset!resolution & Chr(13) & Chr(13) & "WEBSITE: " & Adodc1.Recordset!websitename & Chr(13) & "DETAILS:" & Adodc1.Recordset!details & Chr(13) & "URL / LINK: " & Adodc1.Recordset!url & Chr(13) & "BROWSER USED: " & Adodc1.Recordset!browsertype & Chr(13) & Chr(13) & fulln & Chr(13) & departmnt
            vbemail.Send
            Set vbemail = Nothing
            MsgBox "Email Sent", vbExclamation
    

    Thanks in advance for any assistance on this dilemma :-O

    Aim small, miss small

    Visual Basic help visual-studio sysadmin debugging

  • 20, 24, 30?
    T tatchung

    Nishant Sivakumar wrote:

    some of my better shots have come when I was a tad drunk

    Must have been hell to try to focus a manual lens :rolleyes:

    Aim small, miss small

    The Lounge question

  • 20, 24, 30?
    T tatchung

    My sentiments exactly

    Aim small, miss small

    The Lounge question

  • 20, 24, 30?
    T tatchung

    :laugh: :laugh: :laugh: That's just hilarious. I love CN facts

    Aim small, miss small

    The Lounge question

  • 20, 24, 30?
    T tatchung

    Yeah I love my nifty fifty however I'm having trouble shooting indoors due to the narrow corridors. And to answer your question I just love shooting wide :rolleyes: .

    caspianx67 wrote:

    Check out Ken Rockwell's reviews of Nikkor Lenses[^]

    I did...that's the part I got confused with actually. Every recommendation suggests to buy one if I need it...not much of a help actually but the specs does contribute a bit :-D

    Aim small, miss small

    The Lounge question

  • 20, 24, 30?
    T tatchung

    Isn't it the other way around? I mean 30mm on a DX would seem like 45mm

    Aim small, miss small

    The Lounge question

  • 20, 24, 30?
    T tatchung

    Nishant Sivakumar wrote:

    I recommended the Tamron 17-50 2.8

    Yeah that seems to be a pretty good lens. +1 more to the list :laugh:

    Aim small, miss small

    The Lounge question

  • 20, 24, 30?
    T tatchung

    Any suggestion(s) for a prime lens for nikon d80? I'm in need of a wider, fast lens that could probably replace my nifty fifty (50mm 1.8). I'm actually eyeing for nikon 20mm f/2.8, nikon 24mm f/2.8, sigma 30mm f/1.4 all AF. And as far as budget is concerned I'm at the limit at $400. :laugh: Thanks in advance for all any advice :D

    Aim small, miss small

    The Lounge question

  • VB6 listbox
    T tatchung

    Hey thanks! Kind of a noobish question there but thanks for the aid. Incidentally I wasn't matching the items to the recordset as you said. Got used to vb.net DB manipulation I forgot it was different here in VB6. Agin thanks for the help :-D

    Aim small, miss small

    Visual Basic question csharp database help

  • VB6 listbox
    T tatchung

    Hello all! How can I delete listbox contents populated through a database? Here's my code for the delete button...

    If Adodc1.Recordset.RecordCount <> 0 Then
    res = MsgBox("Are You Sure You Want To Delete This Record?", vbYesNo, "System Message")
    If res = vbYes Then
    Adodc1.Recordset.Delete
    Adodc1.Recordset.Requery
    Adodc1.Refresh
    MsgBox "Recored has been Deleted"
    lstpromo.RemoveItem lstpromo.ListIndex
    End If
    Else
    MsgBox "No Record to delete"
    End If

    However I get the error "Either BOF or EOF is true, etc...". Is there a method in vb6 that I can use like the in odbccommand in .Net?

    Aim small, miss small

    Visual Basic question csharp database help

  • Load form count
    T tatchung

    Dave Kreskowiak wrote:

    You're treating forms like a trail of breadcumbs.

    :laugh: yeah I guess you're right.

    Dave Kreskowiak wrote:

    Form1 should call Form2's .ShowDialog method, not Show

    got it! Form1 calls upon data that form2 generates not form2 passes the data back to form1. Many thanks again for the tip! :-D

    Aim small, miss small

    Visual Basic debugging help tutorial question

  • Load form count
    T tatchung

    Hello, How could I trace which form was previously loaded within my application? Sorry but I'm a bit lost on how to explain this let alone put this into code. Here's the story, I have an application which loads to form1. From form1 I can load to form2. Then from form2 I can load back to form1 taking a couple of variables to display in my datagrid in form1. So I was looking at a broken code like this

    If previous form = form1 then
    execute cmd1
    else if previous form = form3 then
    execute cmd3
    etc....

    Any help would be greatly appreciated. Thanks in advance :-D

    Aim small, miss small

    Visual Basic debugging help tutorial question

  • Compile error
    T tatchung

    Oh... :laugh: My apologies for the novice post. Thanks for the help Sir! Works perfectly now :-D

    Aim small, miss small

    Visual Basic help question career
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups