VS 2008 Erase Selected Reactangle Away?

May 16, 2011

How do I erase the selected rectangle away?

Private Sub PictureBox1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseDown
m_drawing = True

[code].....

View 6 Replies


ADVERTISEMENT

VS 2008 Erase Line From Text File?

Oct 2, 2010

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If System.IO.File.Exists(FILE_NAME) = True Then
Dim lines As New List(Of String)
Dim text As Array = File.ReadAllLines(FILE_NAME)
lines.AddRange(text)

[Code]...

i get this error Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index

for the line lines.RemoveAt(lines.IndexOf(ListBox1.SelectedIndex))

View 5 Replies

Erase And Ubound In Net?

Dec 18, 2009

I have some problems. I wantd to convert come vb codes into vb net.

1. I have this VB 6 code:

Public Type ddt
x As String
End Type
I have convertid it in this way:
Public Structure ddt

[Code]...

View 6 Replies

Erase A Graphic That Was Created?

Jul 23, 2011

i would like to be able to erase a graphic that was created.I would like to not have to redraw the graphics minus the graphic thats unwanted.Is there a way to delete a graphic?

View 1 Replies

Erase Numbers With One Click?

Jan 28, 2010

I have 100 textboxes with different numbers on them how can i erase theses numbers all together not like this textbox1.text = "" Erase numbers with one click?

View 39 Replies

VB2008 Erase All But Numbers?

Jul 8, 2009

My program uses OCR dll to get text from other program. It copy and paste text to a text box. Can someone give me a code that will erase everything exept numbers or ".

View 2 Replies

Getting Button To Erase The Text That Is In The Textboxes When Hit

Nov 7, 2009

I'm having some trouble getting my button to erase the text that is in the textboxes when I hit it. I thought it would be something like txtAnswerText.Text = "" in side of the Next1_Click sub but that didn't do anything at all.

View 1 Replies

How To Erase Line Or Redraw Whole Form

Feb 7, 2008

Here' s my code to draw a single line on a windows form.
Dim myPen As New System.Drawing.Pen(System.Drawing.Color.Red)
Dim formGraphics as System.Drawing.Graphics
formGraphics = Me.CreateGraphics()
formGraphics.DrawLine(myPen, 0, 0, 200, 200)
myPen.Dispose()
formGraphics.Dispose()
I would simply like to erase it now. I've read that the best way to do this is to re-draw the whole form, or to delete the line object..etc..

View 4 Replies

Copy From, Erase, Then Paste Back Into The Clipboard?

Jul 26, 2010

I have to automate a program that is outside of my control. The way I'm doing this is to use SendKeys.SendWait("keys") to the other program. The problem is, there are multiple fields that might be active and no way to select a single one with confidence. The fields are all different lengths, so my solution is to copy something really long, copy it to the clipboard, and look at the last character that made it though, so I know which field is selected in the other program. This overrides the clipboard, unfortunately.

[Code]...

View 3 Replies

Erase Or Write ID3v2 Tags To MP3s?

Jan 14, 2011

I already have code to read ID3v1 and v2 tags. That's not the problem. I open an IOStream, locate the ID3v2 header and pull the bytes out. Handling unicode was a bit of a sod, but I got it working.

What I don't understand is how to remove an ID3v2 tag or write one out. ID3v1 is easy - just truncate the file, then append some bytes. Simple. But ID3v2 tags don't have to be at the start of the file, do they? It's conventional, but by no means mandatory. If I just crop the entire ID3 out of the file, and close the gap, will that work? And then, to write my own tags, should I just write the bytes to the front of the file? Or do I need to update other bits of the file so the player will know where the audio data has moved to?

Also, do I need to use unsynchronisation? How can I tell if I need to?

I've looked on CodeProject; I've googled; and I've read the specification on id3.org - which, by the way, is less than clear! For example, it says that the "Extended header size" can be 6 or 10 bytes in length. So um....how am I supposed to know which one? Is there some magic way of determining how many bytes this value is being stored as?

View 1 Replies

How To Create Button Erase Answer In Form

Jul 9, 2011

1) I still don't know how to link how to link form 1 and form 2...(can we link or NOT??)
2) How to create button erase the answer in form?
3) How to link micrososft access n vbnet?
4) How to create button next n go to the next form?(ex: from form 1 to form 2).

View 2 Replies

How To Erase Or Write ID3v2 Tags To MP3s

Jan 15, 2011

What I don't understand is how to remove an ID3v2 tag or write one out. ID3v1 is easy - just truncate the file, then append some bytes. Simple. But ID3v2 tags don't have to be at the start of the file, do they? It's conventional, but by no means mandatory. If I just crop the entire ID3 out of the file, and close the gap, will that work? And then, to write my own tags, should I just write the bytes to the front of the file? Or do I need to update other bits of the file so the player will know where the audio data has moved to?Also, do I need to use unsynchronisation? How can I tell if I need to?I've looked on CodeProject; I've googled; and I've read the specification on id3.org - which, by the way, is less than clear! For example, it says that the "Extended header size" can be 6 or 10 bytes in length. So um....how am I supposed to know which one? Is there some magic way of determining how many bytes this value is being stored as?

View 1 Replies

Update Simple - Erase All The Rows In The DataGridView?

May 4, 2011

simple question. How do I erase all the rows in the DataGridView? This is the code I got:

[Code]...

It updates the values, but say a row was deleted from the database. It will get rid of all the values in the row, but it will keep a blank row. This results in it throwing this error: System.IndexOutOfRangeException: Index 1 does not have a value.

View 12 Replies

Erase The Detail Of File Each Time When A Button Click?

Oct 9, 2010

i am writting a programm in vb net and i need to erase the detail of file each time when a button click

View 2 Replies

VS 2010 Painting When To Draw/erase Snap Lines?

Oct 6, 2010

I have started to work some more on my 'shape editor'. If you're not familiar with it,ust imagine the Visual Studio form designer: a 'canvas' (the form) with a bunch of 'shapes' (the controls) that can be selected, moved, resized, etc. I have just finished implementing snapping between shapes and the canvas boundaries. But now I am having some slight issues with painting the snap lines.Just FYI: this is what I mean by snap lines:The blue lines that indicate that the 'buttons' are snapped to each other, and a purple line indicating that button1 is snapped to the boundary.

My shape editor is based loosely on jmcilhinney's 'manipulating GDI+ drawings' codebank entry, and a central idea in that post is to only draw what is necessary. In other words, when I move a shape I could re-draw the entire canvas, but it is much faster and smoother to only re-draw the old and the new location of the shape. Since nothing else has changed, I don't need to draw the rest. So, I simply invalidate the old bounds and the new bounds, and even with a lot of shapes all moving simultaneously it still feels very smooth.

View 13 Replies

VS 2005 Drawing On PictureBox Erase When A Window Move On Front

Dec 25, 2009

I used a picturebox to allow user draw lines by mouse. I used this code in mouse down:


Dim D As New System.Drawing.Pen(DrawingColor, 2)
Dim g As Graphics = PB.CreateGraphics()
g.DrawLine(D, X1, Y1, X2, Y2)

but when a window appear on front of picturebox... its seams that picturebox redraw itself, so drawn lines erased.

View 5 Replies

Update And Query And Erase In Database On Visual Studio Using Office Access

Oct 1, 2009

HOW TO update and query and erase in database on visual studio using officce access

View 3 Replies

Save A User Selected File (FolderBrowserDialog) To A Location Selected In Another Dialog (SaveFileDialog)

Jul 5, 2011

I'm creating a BASIC application, and I can't figure out how to save a user selected file (FolderBrowserDialog) to a location selected in another dialog (SaveFileDialog).

View 5 Replies

VS 2008 DatagridView Selected Row?

Mar 10, 2010

THis code open my database Access and put the records into datagridview:[code]....I live(close) this form with datagridview,and when i return again the line marked in red don't make any affect in datagridview...The select jump to the first item in datagridview...

View 29 Replies

VS 2008 Get The Selected Item Name?

Dec 11, 2009

Okay so i have one list box and inside of it i have 4 items.Okay so what i want to do is.For example If the user selects item 1 i want msg to pop-up and say 1.

View 2 Replies

VS 2008 No Checkboxes Selected

Dec 24, 2009

I have three Check Boxes If No check boxes are checked how do i make a msgbox pop up saying " Please Choose One Of the Options To Begin"?

View 13 Replies

VB 2008 - Deleting Selected Row In DataGridView?

Mar 11, 2010

I want to let others to delete selected row in the following datagrid view and I have written it like this. Now when I select a row and press the delete button I can remove the selected row
but it will not update the database which meant it will not deleting the above row.

I have bound my datagrid view using databinding.
Private Sub dgvAllInvoices_UserDeletingRow(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewRowCancelEventArgs) Handles dgvAllInvoices.UserDeletingRow
If MessageBox.Show("Do you really want to Delete this Invoice ?", "SD Technology", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) = DialogResult.Yes Then
[Code] .....

View 2 Replies

VS 2008 Access The 'ID' Selected By This Query?

Mar 3, 2011

I am trying to use LINQTOSQL and I am new using it so could you please let me know how to take data once you write a query into an object.I got my query here which runs with no error and the count shows correctly being one when I login

Dim Data As New Data
Dim DIMLOGIN = From a In Data.Members Where a.EMAIL = LOGINEMAIL.Text AndAlso a.PASSWORD = LOGINPASSWORD.Password Select a.ID

how to access the 'ID' selected by this query?

View 7 Replies

VS 2008 - Finding Last Latter Of Selected Path

Jun 19, 2010

I have FolderBrowserDialog1, how do I find the last latter of FolderBrowserDialog1.SelectedPath?

View 1 Replies

VS 2008 - How To Get Index Of Selected Items

Mar 3, 2010

I've been working with a listview. I just need to know how to get the index of the selectedindex otherwise I can't work anything out, if the application doesn't know what is selected... I tried these codes but none tells me the index, I am just lost with it, thought shouldn't be that hard...

Dim index As Integer
Dim item As ListViewItem
lsvOrderDetails.SelectedItems.IndexOf
item = lsvOrderDetails.SelectedItems.Item()
index = item.Index

View 2 Replies

VS 2008 - Listbox2 Same Selected As Listbox1

Jul 1, 2011

I have 2 listboxes, and i can't get out what i need to do for the method. The method is, if a item in listbox1 is selected, it will select the same line in listbox2 and same in reverse. there can be many many items.

View 5 Replies

VS 2008 : Getting Value Of A Cell From The Selected Row Of A Datagrid?

Mar 28, 2010

Getting value of a cell from the selected row of a datagrid?

View 2 Replies

VS 2008 Add Selected Text To A Clipboard?

Aug 4, 2009

How to add selected text from another program (flash file) to a clipboard? Its already selected just needs to be copied so I can do:

Me.TextBox31.Text = My.Computer.Clipboard.GetText()
SendKeys.Send("^c")

doesn't seem to work?

View 7 Replies

VS 2008 Colord In Selected Color?

Aug 23, 2010

I was wondering how i could color in pixels that are in a picturebox so say i have this image in my picturebox how could i turn it into this, i have a good idea on how i would accomplish this task , but i don't know how i would color in a sertin pixel at a x,y

View 4 Replies

VS 2008 Combobox Selected Index?

May 16, 2010

im having a problem regard combobox selected index.the combobox wont change its index when i type a text that is the same with one of the items and pressing tab. when i check its selected index its -1. ill give an example to make it simple..combobox items = AB, AC, AD i entered "AB" by simply typing it not by selecting in the dropdown.its index is -1, how can i make the index the same with the items in the drop down?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved