Discussion: Using variables across threads. What do you think of this approach?
Hi All, I'm doing a large amount of file handling on a separate thread and would like to update a UI thread based progress bar. I wanted a simple way to update it and this seems to work. I was...
View ArticleVS 2010 Need Help! Making a game.
Hello. I have been working on a game the pass few nights. The game is similar to Space Invaders. When the bullet hits an npc I would like the npc to go invisible. Due to the npc being now not visible...
View ArticlePainting a gradient
Hello! I have 5 alarm times, morning, noon, afternoon, sunset and night. Now I want my form background to change color depending on what time we are in. If for example it is night at the moment, I will...
View ArticleVS 2008 how to this code (VB.net 2008)
I have a code like this : Dim hasil As String For i = 1 To BinaryStr2.Length Step 3 // 7 hasil &= Mid(BinaryStr2, i, 3) & " " // 1101011 Next hasil = Trim(hasil) // 110 101 1 how does it make...
View ArticleReturned handle is wrong and changes every time.
hello, this Is pete, I've written some code, found out it didn't work, stripped it down to just the problem, and no matter what I do I can't seem to fix it. I'm trying to get the window handle of "test...
View Articlea contorol like lineshape but by more node
Hi I need a contorol like lineshape but by more node. I can't draw it Manual becuse for a project I neet to events : click , mouse up , double click thank
View ArticleVS 2010 Creating Image or pdf file directly from PrintDocument1
Hi everyone I am using vb.net 2010, I successfully created a report using PrintDocument1, now I want to export this view directly to any image format or pdf format. On print button I asked user to 1)...
View ArticleVS 2010 [RESOLVED] Syntax Highlighting
I'm doing syntax highlighting for an HTML rich text editor. The RTE is working fine except I want syntax highlighting. Here's what I've got so far: Code: If e.KeyCode = Keys.Enter Then Try...
View ArticleVB6 dll from dotnet
I have a third party ocx that I used to create a VB6 dll. I am able to load it into my vb.net application. From there, all works fine. The only problem that I have is I cannot gracefully exit the...
View ArticleVS 2010 HTTPWebrequest question.
Hey guys its me again :P, So what I need to know is, is it possible to upload pictures with vb over this website? http://imgwheel.com/ Imgwheel is the software I use too, I bought it. I just prefer not...
View ArticleVS 2010 create a new function in datagridview.Rows().Cells()
hi i want to Create a new function in this path Datagridview.Rows().Cells().MyNewFunction can i do that? if yes how?
View ArticleVS 2008 help wanted
hi everyone i'm new to this site .and i'm all hope to learn so that i can be a great coder i have this vb 2008 socket program (server and client) which i made myself but it dosn't work at all.i have...
View ArticleVS 2010 [RESOLVED] Adding lengths of tracks
Hi, I have a file that has the lengths of tracks and I need to create something which will return the total lengths. I believe I will have the tracks array and the number of tracks. Does anyone know...
View ArticleCode working but not the way I want
I have the following code and if I run program and enter digits into the text boxes outwith min/max array then I get the message box unsuccessful. If I type digits within the range I get message...
View ArticleImport csv into database datatable via openfiledialog
I am using Visual Basic Express 2010. I have added a SQL Server Compact 3.5 Database, a Dataset and a Datatable with 11 columns. While setting this up, VBE 2010 posted a DataTableBindingSource,...
View Article[RESOLVED] Tableadapter Insert (or... LocalDB connection!???)
grr.... this is driving me nuts! I have the table adapter set.. added the insertnewcustomer "query" and used this: Code: Try Dim TA As New POSDataTableAdapters.CustomersTableAdapter...
View Article[RESOLVED] How to Print a Hidden Form vb.net
Hi, I want to know how to print a hidden form. I have try whit FormPrint, but the form must be visible and Focus. I also try this : Code: Dim form As Form1 form = New Form1(RMmain)...
View ArticleVS 2008 print landcape vs portrait
I am writing some code to print samples for a lab I work at either portrait or landscape. I have this: e.PageSettings.Landscape = True printPage(e, graphFileName, "graph", 63, 66, 107, 53, 12, 400,...
View ArticleVS 2010 searching database with datetimepicker paramter
ok so, i've been setting up search parameters for a form in my project and everything was working great until i got to dates. i want to use a datetimepicker to make sure the date is always entered in...
View ArticleDate Time Calculations! Fun TImes
Hey! I have a few logs containing million+ lines of logs, all with date stamps and need to find out how long the machine was running with those logs. Now in theory this is really easy, I just use...
View Article