Hello, I've been trying the following code to get the text from each node in a treeview on form1 (ui thread) from a separate thread in a different class. The msgbox always shows nothing. If someone has a link or an idea on how to go about this, much appreciated.
Public Class something...
If there is an easier way, please share.
Sub MoveItemUp()
intStartIndex = ListBox1.SelectedIndex
intFinishIndex = intStartIndex - 1
Try
ListBox1.Items.Insert(intFinishIndex, ListBox1.SelectedItem)
ListBox1.Items.RemoveAt(intStartIndex + 1)...
Sorry if this thread is in the wrong section.
Over the last few days I have combed thread after thread looking for a way to resize my images to fit inside a div container only 240px by 240px but still keep the aspect ratio of the original picture. No one thread had an easy way but I was able...
I found a function I want to use in my project but when I used an online conversion tool I get an error.
C# Code...
return (byte)('G' - 'A' + 10);
Conversion tool gave me this with the error, "Operator '-' is not defined for types 'Char' and 'Char'"
Return CByte("G"c - "A"c + 10)
Here is...
Hello, I'm using VS 2010 and one day I get this error, "Identifier is too long" when I click on it, it says "The definition of the object is hidden",
I don't know what caused it. It started very suddenly.
I've searched all over for info on this and all MSDN says about it is "Fix: Shorten the...
im trying to get the full name of a process, say taskmgr for example with this code...
Dim theProcess As Process() = Process.GetProcessesByName("taskmgr")
Try
For inx As Integer = theProcess.Count - 1 To 0 Step -1...
Hello,
I'm working on trying to split a large file from say 3gb to multiple 500mb files with a .1, .2, .3 etc... extension.
My output is one 500mb file and one 28kb file. I can't figure out what I'm missing to continue reading the filestream into the 2nd split file.
here is my code so far...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.