Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: WayneS

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    743

    Re: accessing the bubble.

    Set the ToolTipsText in the properties of the control.
    Wayne
  2. Replies
    17
    Views
    2,313

    Re: search,read,write & replace in a textfile

    crlf is a 2 character set 13 and 10. using len(a)-1 only takes out the line feed but leaves in the carrage return. So use len(a)-2 to remove both the carrage return and the line feed. When you write...
  3. Replies
    17
    Views
    2,313

    Re: search,read,write & replace in a textfile

    lIt's only a guess but the Join is adding a crlf to the end of your string and a crlf is added when saving the file. After your join statement try this.

    A=left$(A,Len(A)-2)

    that takes out the...
  4. Replies
    17
    Views
    2,313

    Re: search,read,write & replace in a textfile

    It is a function of the print statement. Whether you are printing to a file or to a form each time you use a <,> in the statement a tab is sent out. However when printing to a file you need one <,>...
  5. Re: How to Get pixel value without Getpixel Function

    Be sure to set your picturebox ScaleMode to Pixels.

    Dim colour as Long
    colour = Picture1.Point(X, Y)
    x is your row coord. & y is your col. coord. Can be gotten from MouseDown event....
  6. Replies
    17
    Views
    2,313

    Re: search,read,write & replace in a textfile

    In this line of code take out one of the commas in your print statement. You have

    Open App.Path & "\Test.txt" For Output As #1
    Print #1, , A
    Close #1
    should be

    Open App.Path &...
  7. Replies
    6
    Views
    1,325

    Re: Reading first word per line in *.txt file.

    Don't use "On Error Resume Next". It could cause more problems.
    Break up the line like this:

    Dim x as Integer, Text as String
    x=InStr(Text, " ")
    If x=0 Then
    Print #2, Text...
  8. Thread: usign BitBlt

    by WayneS
    Replies
    1
    Views
    528

    Re: usign BitBlt

    Make sure the first line of code in your FormLoad is:
    Me.Show
    Some things dealing with graphics just don't work if the form is not showing.
    Wayne
  9. Thread: Multiple Forms

    by WayneS
    Replies
    6
    Views
    619

    Re: Multiple Forms

    create a property on form2:
    Public Property Let PrintStatement(ByVal strValue As String)
    Print strValue
    End Property

    on form1 do:
    Private Sub Command1_Click()
    Dim x As Integer
    ...
  10. Replies
    3
    Views
    495

    Re: Toolbar Question

    In the menu editor highlight the name (Yahoo in your example) and press the insert button. In the Caption box enter a single hyphen (-). Name it hyp1. Do same thing for each name you want a bar...
  11. Replies
    6
    Views
    1,325

    Re: Reading first word per line in *.txt file.

    If a space follows the last name then use.
    LastName=Left$(text,InStr$(text," ")-1)

    Wayne
  12. Replies
    10
    Views
    857

    Re: Graphical Button Images

    If you are running it from the IDE then goto File:AddProject to add a new project. In the window that lists the projects, forms, etc. right click on the new project name and select "Set as start up"....
  13. Re: stop an *.exe* that is running and program start when windows does

    To stop a running app look at this site:
    http://support.microsoft.com/kb/q153463/
    Unless you are doing some kind of system stuff (I don't like to put anything in the registery) put your program in...
  14. Replies
    17
    Views
    2,313

    Re: search,read,write & replace in a textfile

    Sorry about that. I didn't read your post right.
    If I get what you want to do is put text in a file that is on the disk.
    The only way to do that is create a second file. Read data in and put in...
  15. Replies
    17
    Views
    2,313

    Re: search,read,write & replace in a textfile

    Try this:
    Dim NewText As String
    NewText = "New Text" & vbCrLf
    Text1.Text = Left$(Text1.Text, Text1.SelStart) & NewText & Mid$(Text1.Text, Text1.SelStart + 1)
    Wayne
  16. Replies
    43
    Views
    2,861

    Re: Need help with a whole bunch of things

    The flickering is caused by painting to the screen while the screen is being refreshed. So you need to paint the picture very fast. The fastest way is using API BitBlt. Check out this tutorial at...
  17. Replies
    10
    Views
    857

    Re: Graphical Button Images

    Here is a quick usercontrol. Just compile it to an ocx and it will be in your componants list. Nothing fancy you can improve on it.
    Wayne
  18. Replies
    43
    Views
    2,861

    Re: Need help with a whole bunch of things

    The 75000 is not pixels. It is Twips. Click on your picturebox and look in properties for ScaleMode and click on the down arrow and choose 3-Pixels. This will give you your 5000 pixels.
    Wayne
  19. Replies
    4
    Views
    654

    Re: Auto numbering in ADO

    The problem is I don't have Access. Wish I did. Had to do it all with ADO and SQL.
    Thanks anyway,
    Wayne
  20. Replies
    4
    Views
    431

    Re: connection string info

    I'm new at database programing but don't you need the database name in:
    "Data Source=N:/PERSONAL/awilliams/basic/;"
    i.e.
    "Data Source=N:/PERSONAL/awilliams/basic/MYDATABASE.DBF;"
    Wayne
  21. Replies
    4
    Views
    654

    Re: Auto numbering in ADO

    I already tried that but didn't work. I get a sql syntax error. I found out that if I made the primary key a long then it worked. Don't know why but it does.
    Thanks for your reply,
    Wayne
  22. Replies
    4
    Views
    654

    Auto numbering in ADO

    Hi,
    I am new to database programing and have this problem I can't find an answer to. This is the code I am using.
    [CODE]
    Set conData = New ADODB.Connection
    conData.Open...
  23. Thread: sstab control

    by WayneS
    Replies
    4
    Views
    473

    Thanks I hadn't thought about that. Wayne

    Thanks
    I hadn't thought about that.
    Wayne
  24. Thread: Tab in textbox

    by WayneS
    Replies
    2
    Views
    420

    Thanks for your reply. If richtext can capture...

    Thanks for your reply.
    If richtext can capture the tab key then I will use it. Beats the other way I was going to do it.
    Wayne
  25. Thread: Tab in textbox

    by WayneS
    Replies
    2
    Views
    420

    Tab in textbox

    Hey Guys,
    I can't figure this out. I'm using a textbox (multiline). When I press the tab the focus changes to the next control. I know I can get the keypress but I have to insert it into the text....
Results 1 to 25 of 144
Page 1 of 6 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center