VS 2008 Trying To Draw Something On Notepad?
Nov 2, 2009This code is put into a timer, I put "Timer1.Start" in a button, when I click the button, nothing happenes
[Code]...
This code is put into a timer, I put "Timer1.Start" in a button, when I click the button, nothing happenes
[Code]...
I am trying to create a tool which I would input a word in a text box and it would search the path i give it to look for a word in a notepad file and copy the whole line to a new notepad and paste it.
i did this for now, i am able but i am able to copy all the text from the note pad and put it in a textbox for now..
Dim FILE_NAME As String = "P: est est.txt"
Dim objReader As New System.IO.StreamReader(FILE_NAME)
Dim TextLine As String
[Code].....
I am having trouble to get the command to ask them to go read the text file and copy only the line for the word I put in the input box and to put it in a new notepad.
For example I have 10 notepad files open with all different name and I want to write simple program what will hide some of the notepads (they are all different process with different name, so thats not a problem).
View 1 RepliesThe example of source code to make a simple notepad?
View 2 RepliesI want to receive the text that is written in notepad. The text length it returns is correct, but it doesn't return any text. It's just blank.
CODE:
Is it possible to display the page's source by opening notepad.exe (via Process.Start) and somehow set the text to the source?
View 7 Repliesgive me code that clicks on file button in notepad please or tell me how to do it?
I did this but it wont work:
[code...]
I'm making a notepad program and I'm trying to make it so when you press enter on the very left side in the RichTextBox, it'll tell you what line your on. For example:
View 3 RepliesI need to get the DataGridView to perform the way it should perform. I'm new to the .NET environment, but I learn fairly quickly. However, I find it difficult to decipher themassive black box of the DataGridView control enough to make it do anything other than what it already does--Draw very slowly.
View 3 RepliesWhat I'm trying to do is to draw on to a picturebox with all my code in a class rather than in the main form class. here is the code of what I have in my draw class
[Code]...
[code]...
but, how to draw in picturebox? i use this code but not working!
[code]...
asking something like this i know it get's asked alot but i haven't found any code for this or i didn't look good enough. My internet is super slow so it is hard to browse the net , Anyways i want to draw on the screen just like when you draw on your form with graphics how would i accomplish this ? if anyone could provide some code or a link that shows a little about it that would be great,
View 2 RepliesI see DrawPath polygon curve everything except for square.
VB
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
[code].....
I have series of video files that i need to automatically draw some line over through to the en. The line varies, the values will be provided, is this possible in vb.net?
View 1 RepliesI am having problems passing data from one form to another form opened from the first form.Here is my scenario: I have my start-up form. From this form I open a form by using the following:
[code]...
I use this because I want to be able to open multiple forms from the start-up form.Then from the PartyDetail form I open another form to display order details, like this:
[code]...
I want this order details form to be able to get a partyid variable from the party detail form.This works, but depending on the order that I open the forms the variables are incorrect Example:If I open the first PartyDetail form and then open the OrderDetail form, it works correctly. I can open as many PartyDetail and OrderDetail forms that I want and the variables are correct.But, say I open a PartyDetail form and then open another PartyDetail form and then open the OrderDetail form from the first opened PartyDetail form, it displays data based on the second opened PartyDetail form instead of the first. Basically, I want to be able to open multiple PartyDetail forms and then open OrderDetail forms based on whichever PartyDetail form it is opened from.Right now I am using Public Shared variables on the PartyDetail form and accessing this variable from the OrderDetail form. I suspect this is my main problem but don't know the best way to pass the variables from the PartyDetail form to the OrderDetail form.What would be the best way to do this?
How would I be able, with the click of a button, allow the user to draw on the form? Maybe as if, taking a screen shot of the whole form, and then drawing on top of it? Dose not have to be a lot of colors, just a simple way to draw a line.
View 4 RepliesWill any of the free light-weight charting libraries; ZedGraph or NPlot, be able to draw a simple graph similar to attached image (no waste of space, and with colored plot areas)? This plot will act much like the task manager "CPU Usage" plots, with update of last value every 500ms, but only making a new datapoint every 1 minute or so.
Or is this so extremely simple that it's better to hard-code it? What classes should I look into for this?
I'm very new to visual basic and I am trying to create a tic tac toe game. I have it working all except a message to say the game has ended in a draw.I just can't work out what to put where. I have looked through the various questions and answers on the forum but can't seem to get any of the coding to work for me.[code]Can anyone point me to what code to use to declare a draw and where should I put it?
View 7 RepliesI've come across involving a PictureBox.I am trying to create a quick Paint-like application, but I want something to happen in it. I want it so that when you draw or have drawn in a certain area of the PictureBox, you trigger events to happen (but they must only trigger once. This doesn't mean only one event can happen, it's just that each event can only happen once). How would this be possible to implement in my code I have now?[code]
View 5 RepliesI need to draw lines, in one VB form. Like paint, I need the tool brush, and design some lines and curves in a Vb form. How can I do this? I don't know where to start.
View 3 RepliesHow do I draw lines using DirectX? (on my form)
View 1 Replieshow to draw a string on a picturebox ? i want to draw a peace of text in the x,y bounds of the picturebox?
View 1 RepliesI'm using ZedGraph to draw functions.I want it so, that the user can input a function.Eg:
txtFunction.text = x ^ 2 - 3
Graphs are drawn with this code
For x = 0 To 100
y = x ^ 2 - 3
list.Add(x, y)
Next x
This doesn't work
For x = 0 To 100
y = txtFunction.text
list.Add(x, y)
Next x
as the x can't be replaced.Is there an other way to draw graphs, by reading the function from a textbox?
Is it possible to have a picture box and draw on a line on top of the image that is in there with the basic express package?
View 3 RepliesIs there a way to draw a graph in real time. The excel file has one column with the time in sec.(x) and the other column is data(y). The examples with charts I've seen is about converting to a picture, then paste it to a picturebox.
View 2 RepliesI want to know if there's a faster way to draw images onto a picturebox based on a list of point.
vb
Dim MyPoints as New List(Of Point)
Dim MyBitmap as New Bitmap("C:MyBitmap.PNG")
[code]....
Now, This code may be a little sloppy, but I just put it together. The image isn't very simple, but it's simple enough. After about 10 images that need to be drawn, it starts to get slow.What would I need to do to ensure it draws the images faster? If I made the image itself smaller would it make it go faster?
how to draw in realtime? I have this code in a timer:
Dim picBoxWidth As Integer = PictureBox1.Size.Width
Dim picBoxHeight As Integer = PictureBox1.Size.Height
Dim halfWidth As Integer = PictureBox1.Size.Width / 2
Dim halfHeight As Integer = PictureBox1.Size.Height / 2
[code]....
this would draw a graph, and when x has counted to 1000 it should start again. The center cross is written, but no graph.
I set my FormBorderStyle of my form to none.This is exactly what i want, except I ran into a problem.When the background is gray (background of other applications running in the background), my form tends to fade in with the background (Still active, but i cant see where my form starts or ends).
View 1 RepliesI need to know how to draw a bitmap image into a certain area in a picturebox, I also need it to be a specific size. I remember seeing it on the internet somewhere, I just can't find it again.
View 19 RepliesDear all, I'm new in the forum. I have a simple but annoying problem: in a ordinary form I added a label (Label1) and a button (Button1) with the followiing handler.Well if I press Button1 my dot dashed line is correctly drawn over Label1, but what I need is that program automatically does it on form loa
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Graphic As System.Drawing.Graphics
[code].....