Search results for query: *

  • Users: s1ckOh
  • Content: Threads
  • Order by date
  1. S

    Getting Treeview node text from a seperate thread

    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...
  2. S

    Tip 2 Simple subs for moving items in a ListBox

    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)...
  3. S

    Tip Resizing an image keeping the aspect ratio

    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...
  4. S

    Question Converting a function from C#

    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...
  5. S

    Resolved Error Question, "Identifier is too long"

    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...
  6. S

    Resolved How to get a processes FullName or Path

    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...
  7. S

    Question Splitting Large Files

    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...
Back
Top