Search:
Type: Posts; User: storm5510
Search:
Search took 0.08 seconds.
-
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:...
-
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...
-
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 =...
-
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.
-
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'...
-
I tried that last night. "fName" is a valid path and file name. Hovering over anything to the left of that reveals nothing.
-
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...
-
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)
-
Invalidate worked. I had this in the Form Load code:
AddHandler PictureBox_Paint, AddressOf Me.PictureBox_Paint
I don't get the connection clearly.
-
Invalidate worked, but it would not without this:
AddHandler PictureBox_Paint, AddressOf Me.PictureBox_Paint
I don't get the connection?
-
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...
-
"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...
-
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.
-
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...
-
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)
...
-
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")
:)
-
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...
-
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...
-
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...
-
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)
...
-
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,...
-
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...
-
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...
-
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...
-
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...
-
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:
-
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...
-
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.
...
-
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...
-
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...
-
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...
-
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...
-
Yes, they are both turned on. I will give this a try later today.
:)
-
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...
-
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...
-
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...
-
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:
-
I'll have to read this sometime when my mind is not in a fog. Thanks.
:)
-
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.
:)
-
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:
|
Click Here to Expand Forum to Full Width
|