Search:

Type: Posts; User: DragonRose

Page 1 of 5 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: [RESOLVED] StreamReader and StreamWriter

    Just use split on the line like this;


    Dim arr As String() = line.Split(","c)


    Then put the arr value on the form for example:

    Dim arr As String() = line.Split("|"c)
    Textbox1.text = arr(0)
  2. Replies
    5
    Views
    1,421

    VS 2010 Re: Problems accessing controls using strings

    You need to specifiy the control type i think, so were you have

    dim myControl as Control
    dim ControlName as string
    dim LoopCount as Integer
    For LoopCount = 1 to 3
    ControlName = "CheckBox" &...
  3. Replies
    2
    Views
    3,471

    VS 2010 [RESOLVED] Memory stream to textbox

    Hi all, im trying to get a memory stream to a textbox, the memory stream is of a .txt or .ini file that is extracted from a archive to a memory stream.

    Heres what ive got so far:

    Dim...
  4. VS 2010 Treeview, adding child node at runtime to design time parent node

    Hi all, i have a treeview which has a bunch of parent and child nodes preset at design time, there is 1 parent node tho which is called developer, that i want to add child nodes to at runtime.
    ...
  5. Replies
    4
    Views
    909

    VS 2010 GetFiles, weird behaviour

    Hi all, im having some issues with getfiles, and i cant seem to pin point the cause, heres the issue:

    Im scanning a folder which has a mix of file types (.7z, .rar, .bin) and for each file im...
  6. Re: how i can make sidebar like win xp sidebar

    Check on code project site (not sure if its also onthis forum inthe codebank) for 'Collapsable groupbox' that should do the job.
  7. VS 2010 Treeview - Poulate from database, with child nodes?

    Hi all, i have a treeview which is databoud to a access dataabse, the database has 1 table, and the treeview shows everyname from column 2.

    What im trying to achive is for the treeview to also...
  8. VS 2010 Re: Splitting a RTF field into stringsthen change font color

    Many Thanks!
  9. VS 2010 [RESOLVED] Splitting a RTF field into stringsthen change font color

    Hi all, ive been trying to get ths workign but cant quite do it, i have a rtf field, and once the users entered the text, on the save button, i want a small function which will change the font color...
  10. VS 2010 Re: Get a column value from a datatable as a string

    Yeah i clicked onto the name but im still not quite understanding i did try these before posting;

    TblContactsBindingSource.Filter = Filter

    And also;

    Dim row = DirectCast(lbg1.SelectedItem,...
  11. VS 2010 Re: Get a column value from a datatable as a string

    Hi Jmcilhinney, thanks for the speedy reply,

    How to put that into action? I tired;

    Dim row = DirectCast(lbg1.SelectedItem, DataRowView)
    Dim filter =...
  12. VS 2010 Get a column value from a datatable as a string

    Hi all,

    I have a database (access) and a listbox which is databound to it etc, and controls the currently selected row in the database.

    And i want to check a columns value from the selected row...
  13. Replies
    1
    Views
    1,923

    VS 2010 Missing operand when filtering a database

    Hi all, been tinkering and cant figure out how to get around this and googles no help, so time to ask here.

    I have a filter which is applied to a database on a listboxchanged event, and applies...
  14. Replies
    2
    Views
    445

    VS 2010 Re: 2 databases from 1 listbox?

    Im using 2 separate databases as when a new version of my project is released, it has a new version of DB1, if the personal strings of the users are also saved in that DB1 then every-time they...
  15. Replies
    2
    Views
    445

    VS 2010 2 databases from 1 listbox?

    Hi all,

    I have 2 Access databases;

    Db 1 & Db 2, On the form is a list box which is data bound to DB1 'MainName', and a bunch of textboxs which populate from the record selected from db1 in the...
  16. Replies
    5
    Views
    3,348

    Re: MP3 ripping from video with ffmpeg

    You need to copy the 'resource' folder from the source code to the projects thread aswell, and the code given on the main page is completely wrong. I posted the correct code as a function a while...
  17. VS 2010 Re: Better way to do this 'elseif' statement

    Thanks guys!
  18. VS 2010 [RESOLVED] Better way to do this 'elseif' statement

    Hi all, i have a treeviewlist and use it to apply filters for a database, on the 'afterselect' event. Which all works great, how ever some possible filters could be quite lengthy, heres an example;
    ...
  19. Replies
    5
    Views
    3,348

    Re: MP3 ripping from video with ffmpeg

    You might want to look at FFMpeg wrapper, here;
    http://vbffmpegwrapper.codeplex.com/

    If i recall right when i looked round the source code for it there was the ability to encode video to...
  20. Re: read/display directory files in listbox to rich text box?

    To populate the listbox, id do;

    Dim di As New IO.DirectoryInfo("C:\somefolder")
    Dim myFileInfoArray As IO.FileInfo() = di.GetFiles()
    mylistbox.ValueMember =...
  21. VS 2010 Re: Reading/loading controls size and location back from a txt file

    Thanks for the reply, From what i found Controls.find is the code i need to look at but i cant find any relevant info on google, besides some tuts on 3rd party asp controls, could you give me an...
  22. VS 2010 [RESOLVED] Reading/loading controls size and location back from a txt file

    Hi all, im toying with an idea based round having controls end user movable at runtime, and having a function to save the current position/location of all the controls, so then i can skip through...
  23. Re: Adjusting Image Size according to Image Control?

    You want an auto scale function, try this:

    Public Sub AutosizeImage(ByVal ImagePath As String, ByVal picBox As PictureBox, Optional ByVal pSizeMode As PictureBoxSizeMode =...
  24. Replies
    1
    Views
    645

    VS 2010 Re: Saving Textbox1 items to *.txt

    Check the File.AppendText method, some info and an example at the msdn;
    http://msdn.microsoft.com/en-us/library/system.io.file.appendtext.aspx
  25. Re: Populating a ListBox with selected files in a directory

    Dim folderDlg As New FolderBrowserDialog
    folderDlg.ShowNewFolderButton = True
    If (folderDlg.ShowDialog() = DialogResult.OK) Then
    ListBox1.Text = folderDlg.SelectedPath...
  26. Re: Populating a ListBox with selected files in a directory

    You need to use a 'folderbrowser dialog' and then set the above code to the folderbroswerdialog.selectedpath property.
  27. Re: Populating a ListBox with selected files in a directory

    Depending on how oyu want the files to be displayed there different ways to do it, to display as just the filename and extension try this:


    Dim di As New IO.DirectoryInfo('STRING TO...
  28. Replies
    3
    Views
    631

    VS 2008 Re: Update program

    Its not,, this can be done simply or complex, a ftp or direct link file host is required tho, look around the codebank for updaters, theres at least 3 examples in there of updating.
  29. Replies
    16
    Views
    1,006

    VS 2010 Re: [RESOLVED] Download File

    Assuming it will always be a .rar file:

    Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("http://halfbot.webs.com/hBot%20Update/EliteVersion.txt")
    Dim...
  30. Re: [RESOLVED] How can you link up a button to show Form2?

    Thats pretty basic stuff, covered by pretty much all beginner guides.

    On the button click:
    Form2.show()

    As for displaying the picture, look at the picture box, 'image' and 'imagelocation'
  31. Replies
    12
    Views
    7,344

    Re: AKLib.SimpleUpdater

    Very nice control, how would i go about adding in a progress bar to show the progress of files downloaded (progressbar max value would be the number of updates to be downloaded, value would increase...
  32. VS 2010 Re: For Each item As Control In Form1.Controls (Enumarating?)

    Big thanks for the help Jmcilhiney, heres my code:

    For Each ctl In Form1.TabItem3.ContentPanel.Controls.Cast(Of Control)().
    ...
  33. VS 2010 Re: For Each item As Control In Form1.Controls (Enumarating?)

    There on tab pages, so i now have this:

    For Each item As Control In Form1.TabItem3.ContentPanel.Controls
    If TypeOf item Is TextBox Or TypeOf item Is ListBox Or TypeOf item Is...
  34. VS 2010 [RESOLVED] For Each item As Control In Form1.Controls (Enumarating?)

    Hi all, so going through some code to clean it up instead of having:
    Form1.TextBox8.Font = New Font(Form1.TextBox8.Font.FontFamily, 12, FontStyle.Regular)
    Form1.TextBox6.Font = New...
  35. VS 2010 Re: Insert new row into access database at specific row/alphabetically?

    Its the initial load of the data that im trying to order, if i edit the database in ms access and set 'sort A-Z' on the column then load my project the data gets messed up, for example when row 2 is...
  36. VS 2010 Re: Insert new row into access database at specific row/alphabetically?

    Im using a listbox which displays all items in column 2, and various textboxs which are all databound to the database, the list box like so;
    http://img573.imageshack.us/img573/6356/snap10.jpg

    And...
  37. VS 2010 [RESOLVED] Insert new row into access database at specific row/alphabetically?

    Hi all, not sure if this is possible or not, when i insert a new row/record it currently inserts it at the bottom of all existing rows, is it possible to have it insert at a specific row/place? For...
  38. Replies
    1
    Views
    1,374

    Re: expander control

    No, but there are some good controls made by users, if you check the codebank here you should find an expandable groupbox, and if you look on codeproject theres an expandable dropbox which is exactly...
  39. VS 2010 Re: DirectoryNotFound error, been caused by Access database/Binding??

    Out of frustration, i tried .text at first and then tried .text.tostring, both give the same result.

    Did a compile, runs fine, untill closing then it crashes with this error:

    Description:
    ...
  40. VS 2010 DirectoryNotFound error, been caused by Access database/Binding??

    Hi all,

    Ive started adding a DB to my project and prior to this everything worked great, so ive added the db set the binding etc to:

    Listbox - column 2
    Textboxs - various columns

    Nothing...
Results 1 to 40 of 197
Page 1 of 5 1 2 3 4



Click Here to Expand Forum to Full Width