DataGrid Invalid Row Number
I have the following code which fills a DataGrid and formats the columns so that if they contain 0, they display a space. The code fails in the highlighted line but it only fails when the row it wants...
View Articledeclare data source in a connection string as 'variable'
:D:D:D Code: Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click Dim bs As New BindingSource m_DataAdapter = New OleDbDataAdapter("SELECT...
View ArticleVS 2010 Text cut-off
Hello. I want my code to cut off the text but the problem is, that it only copies it. I want to cut off the text from textbox2 and paste it into textbox1. Here is my code but it only copies the text:...
View ArticleVS 2010 If WebBrowser1's Document Complete + 5 seconds delay then...
Hello. How to make a 5 seconds delay after WebBrowser1's document is complete? Something like: If WebBrowser1's Document Complete, add 5 seconds delay, then - for example...
View ArticlePassing arguments to clickone application
Hi, We are trying to use clickone deployment for updating our application.My application is winform application and targeted to .NET Framework 3.5. Since we cant pass commandline arguments to clickone...
View ArticleControls aquire wrong names
Hi, Just added a couple of labels inside a frame. VB6 asked if I wanted a 'control array' and as I had no idea if I did or not, I said yes to the first, and no to the second (in case one way was best)....
View ArticleCan someone please help me with this code!!! ***PLEASE HELP ME - REALLY NEED...
Hi, this is what I have to do... 1. read customer details from Customer file (e.g. record would be "John,Smith,0422123456,Yes") 2. display list of customers in list box 3. add new customer to the list...
View ArticleVS 2008 Rich Text Box endless loop
I found this code and customized it specifically for my application. All it does is change all The letter F to red in a richtextbox. It works in most cases but in certain instances, it gets thrown in...
View ArticleVS 2012 How to stop new line overwriting all existing text in text file?
When I add a new record to the Listbox from textboxes - it replaces my original text in the text file. :confused: Any ideas on why? This is what I've got... Code: Private Sub cmdAdd_Click(sender As...
View ArticleVS 2010 Need Help!
Hey, I need help, can someone tell me how to multiply the amount of characters, I'm actually at a loss of words, let me try and show you the code that I need help with. SendKeys.Send(TextBox1.Text)...
View Articleoptionbutton.caption
Is there any way to left align the caption text? It seems to be centered. Thanks, ABB
View Articlelistview row color
Can the backcolor vary for any row ? If yes, how is this done so all coloumns are included? Thanks, ABB
View ArticleWinsdow Media Player condition..PLEASE HELP ME!!
hello guys.... i got some problem..... i don`t` know how to make some condition on Windos Media Player.... the condition is : I want to stop the TIMER when the VIDEO start playing..... I`ve tries this...
View ArticleVS 2010 What is this error?? :\ I can't seem to fix it.
ERROR: Code: System.InvalidOperationException was unhandled Message=An error occurred creating the form. See Exception.InnerException for details. The error is: 'phrase' cannot be an empty string....
View ArticleIs there better ways to write this logic?
Hi i cant help but wander, am i doing this right!! i have a feeling im stuck in my old VB6 way of writing functions and find it time consuming coming up with logic all the time a little background on...
View ArticleRuntime Error "481" - Invalid Picture
Hi, I got this code from a site, but showing the subjected error when try to run, please help to resolve it Actually I am trying to set the picture size exactly the size of Flexgrid column. Is there...
View ArticleVS 2010 Affecting unfocused applications
Hello, I was wondering if there's any way to target a program while not having the program selected? I'd like to send keypresses to a program while I'm doing something in another program, If it's not...
View Articlelambda expresions with list.foreach methods
Hi lets say i had 2 list(of class1) objects and wanted to iterate through them checking for something with a for each loop, i always have a problem keeping the code simple because i have to iterate...
View Articlewhen its use full to add a class
Hi When you start writing a program. How do you determine if a class is required Can any one explain it to me
View ArticleVS 2010 Not getting my country weather??
How do I get this API to work? My location is Brisbane but its not currently at the correct position when I run the program... I am using the Yahoo Weather API http://developer.yahoo.com/weather/ Ill...
View Article