Search:

Type: Posts; User: storm5510

Page 1 of 11 1 2 3 4

Search: Search took 0.08 seconds.

  1. Replies
    7
    Views
    1,530

    Re: Indirect PictureBox Paint

    Thanks. What I am doing is calling an Invalidate Rectangle from a looped routine. It hangs on the fitst pass when it hits a "DoEvents" statement. When I get it to break, it displays an error message:...
  2. Replies
    7
    Views
    1,530

    Re: Indirect PictureBox Paint

    I'm trying to create a work-around because I cannot save the image in the picture box without a null reference error. Also, the image in the picture box is not persistent, meaning if something gets...
  3. Replies
    7
    Views
    1,530

    Indirect PictureBox Paint

    I was able to solve an earlier null reference issue. Please read:

    In the class declarations, I placed:

    Dim bm As Bitmap

    In the Form_Load section, I put:

    bm =...
  4. Replies
    9
    Views
    6,321

    Re: Null Reference Exception - PictureBox

    I'm going to let this go. I am trying to do this from a mobile and I just can't see everything here. I appreciate everyones' time.
  5. Replies
    9
    Views
    6,321

    Re: Null Reference Exception - PictureBox

    You're using a mouse event in the above example. I am using a recursive sub to draw on the picturebox. You have a dual declaration for "bm." I understand both. I do not see where it draws to "bm'...
  6. Replies
    9
    Views
    6,321

    Re: Null Reference Exception - PictureBox

    I tried that last night. "fName" is a valid path and file name. Hovering over anything to the left of that reveals nothing.
  7. Replies
    9
    Views
    6,321

    Null Reference Exception - PictureBox

    When I try to save the image from a picturebox, I get an "Object reference not set to an instance of an object." messsge.


    picBox.Image.Save(fName, System.Drawing.Imaging.ImageFormat.Png

    What...
  8. Replies
    9
    Views
    8,723

    Re: Trigger PictureBox Paint Event

    Thanks for the help with getting this working to this point. I get a "null reference" error when I try to save the image.


    Me.PictureBox.Image.Save(fName, System.Drawing.Imaging.ImageFormat.Jpeg)
  9. Replies
    9
    Views
    8,723

    Re: Trigger PictureBox Paint Event

    Invalidate worked. I had this in the Form Load code:


    AddHandler PictureBox_Paint, AddressOf Me.PictureBox_Paint

    I don't get the connection clearly.
  10. Replies
    9
    Views
    8,723

    Re: Trigger PictureBox Paint Event

    Invalidate worked, but it would not without this:


    AddHandler PictureBox_Paint, AddressOf Me.PictureBox_Paint

    I don't get the connection?
  11. Replies
    9
    Views
    8,723

    Trigger PictureBox Paint Event

    How do I call (activate) this from a Form Load or Timer Event?

    Private Sub PictureBox_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs)

    Forgive me. I'm punching this...
  12. Replies
    9
    Views
    17,565

    Re: Equivalent for VB6 "String$"

    "Character Literal" was the term I needed to see. That led me to the page here:

    http://msdn.microsoft.com/en-us/library/dzy06xhf.aspx

    I was using many of the "type" characters 20 years ago. I...
  13. Replies
    9
    Views
    17,565

    Re: Equivalent for VB6 "String$"

    I have Option Strict turned on. I do not get an error from the line below:


    Dim A As New String(Chr(170), 128)

    I'm sorry, I don't understand the syntax in the example Paul is using.
  14. Replies
    9
    Views
    17,565

    Re: Equivalent for VB6 "String$"

    You still do not see it. The code above is missing a comma, according to Intellisense.

    The third argument is optional.


    Dim A As New String("x",40)

    This works just fine.

    Using the third...
  15. Replies
    9
    Views
    17,565

    Re: Equivalent for VB6 "String$"

    Are you not missing something in your code?

    It does work, if properly formatted, but I am not quite sure what it means. The third argument loses me.


    Dim A As New String("0", 25, 40)
    ...
  16. Replies
    9
    Views
    17,565

    Equivalent for VB6 "String$"

    Is there an equivalent function in VB 2010 for the "String$" function that VB6 used to create a string of characters?


    Dim A As String

    A = String$(40,"x")

    :)
  17. Replies
    17
    Views
    1,967

    Re: Rich Text Formatting

    I suspect this is the case. It seems to take a bit more "muscle" to handle Rich Text than it does plain text. When it comes to math, I use as little as I can get by with if I plan to repeat it with...
  18. Replies
    17
    Views
    1,967

    Re: Rich Text Formatting

    That would be hard for me to follow with good eyes. It seems like it goes a long way around to do the same thing. I am doing the same thing was far less code. The one thing I've learned about...
  19. Replies
    17
    Views
    1,967

    Re: Rich Text Formatting

    I tried this and it maintains through all new line commands:


    RichTextBox.Font = New Font("Arial", 12, FontStyle.Regular)

    I wasn't expecting it to work; just an experiment. It only has to be...
  20. Replies
    17
    Views
    1,967

    Re: Rich Text Formatting

    I found an example of what I was looking for deep down in MSDN under a different subject. Example:


    Dim Txt As String = "VB Dot Net"
    RichTextBox.AppendText(Txt & Environment.NewLine)

    ...
  21. Replies
    17
    Views
    1,967

    Re: Rich Text Formatting

    They only way I could find to force a new line is to do what is below. I have to do this with every line of text. It is dreadfully slow.



    boxRichText.SelectionFont = New Font("Arial", 14,...
  22. Replies
    17
    Views
    1,967

    Re: Rich Text Formatting

    I'm sorry, I didn't get posted back soon enough.

    Everything seems to be working. Just one more thing. How do send an instruction to start a new line without resetting the formatting? I tried...
  23. Replies
    17
    Views
    1,967

    Re: Rich Text Formatting

    I suppose I could stretch the form down a little, put it there, make it not visible, and put the form back to its original size. I'm still not sure I can format the text though. The majority of the...
  24. Replies
    17
    Views
    1,967

    Re: Rich Text Formatting

    This doesn't work either. I did some digging in the MSDN help files and it says there must be a RichTextBox control on the form.

    I had tried a more direct route using plain text and writing RTF...
  25. Replies
    17
    Views
    1,967

    Re: Rich Text Formatting

    That won't work. I do not have a control visible on a form. I want to use the methods to write predetermined numeric values to a RTF file. I was thinking it may have something to do with the font...
  26. Replies
    17
    Views
    1,967

    [RESOLVED] Rich Text Formatting

    I have created an instance of a Rich Text Box:

    Dim RichText As New RichTextBox()

    I was able to write to it using:

    RichText.AppendText("Text")

    I was able to save the document to a file:
  27. Thread: Classes

    by storm5510
    Replies
    13
    Views
    1,636

    VS 2010 Re: Classes

    I think it might be the "jargon" that throws me off. I have used "New" just a few times. It was confusing at first because the names, like button, were things I could see on a form. I think the...
  28. Thread: Classes

    by storm5510
    Replies
    13
    Views
    1,636

    VS 2010 Re: Classes

    I created a very simple project. The main application adds 1 to a variable on each timer tick.

    I created a separate class that will take the number and multiply it by 3 by using a function.
    ...
  29. Thread: Classes

    by storm5510
    Replies
    13
    Views
    1,636

    VS 2010 Re: Classes

    Bashing me is not going to gain anything except me dropping this subject.

    When I create a new project, and look at the empty code area, it is defined as a class. I have no problem with that...
  30. VS 2010 Re: [RESOLVED] Class Library "Cannot Find DLL Entry Point"

    I started programming in 1988. I'm probably twice the age of many people here.

    VB6 was about as far as I got with any depth. I purchased the entire VB 2002 .Net package when it came out all...
  31. VS 2010 Re: Class Library "Cannot Find DLL Entry Point"

    It works now, on my primary computer, but not the older one. I think what I need to do is replicate the folder structure on this computer to match the other one and point the reference to the proper...
  32. VS 2010 Re: Class Library "Cannot Find DLL Entry Point"

    A COM reference? In the options, I see something that says, "Make COM visible." I don't use it because I don't know what it means, or what COM is.

    The application will still compile...
  33. VS 2010 Re: Class Library "Cannot Find DLL Entry Point"

    Yes, they are both turned on. I will give this a try later today.

    :)
  34. VS 2010 Re: Class Library "Cannot Find DLL Entry Point"

    I added it to the References in the project properties and selected its "namespace" below in the box below. I still get the same error, "Unable to find an entry point named 'MyFunction' in DLL...
  35. VS 2010 [RESOLVED] Class Library "Cannot Find DLL Entry Point"

    As an experiment, I created a separate library to hold a function, and then tried to call it from within an application.

    Normally, would I would expect to see in the code for the function...
  36. Thread: Classes

    by storm5510
    Replies
    13
    Views
    1,636

    VS 2010 Re: Classes

    Why didn't someone just say a class makes a Dynamic Link Library when created as a separate project? This I understand.

    Now, a class added to an executable application is another story. I really...
  37. Replies
    12
    Views
    1,500

    Re: Search a HTML Document For Specific Text

    Just about everything has search capabilities and I cannot believe this can be so difficult. So, I'm just going to let this go. I can't seem to get the information I need.

    :wave:
  38. Thread: Classes

    by storm5510
    Replies
    13
    Views
    1,636

    VS 2010 Re: Classes

    I'll have to read this sometime when my mind is not in a fog. Thanks.

    :)
  39. Thread: Classes

    by storm5510
    Replies
    13
    Views
    1,636

    VS 2010 Classes

    I see the word "class" used here a lot. Beyond it's default used in 2010 .Net, I am baffled as to what it really means. If someone would be so kind as to explain it, I would be grateful.

    :)
  40. Replies
    12
    Views
    1,500

    Re: Search a HTML Document For Specific Text

    This won't work. I've looked at the HTML formatting. There's hundreds of line breaks, "<br>", and "font" settings. The search needs to be by string content.

    :cool:
Results 1 to 40 of 426
Page 1 of 11 1 2 3 4



Click Here to Expand Forum to Full Width