20,285 Topics
![]() | |
im trying to make a simple example in threading this error msg can anyone help me to solve it ? Cross-thread operation not valid: Control 'cmb1' accessed from a thread other than the thread it was created on. Imports System.Threading Public Class Form1 Inherits System.Windows.Forms.Form Dim th1 As Thread Dim … | |
how can i add my items from list to combo box ??? Dim IntList As New List(Of Integer) Sub proc1() Dim iCount As Integer For iCount = 1 To 10 IntList.Add(iCount) Next If Done = True Then cmb1.Items.AddRange(IntList.ToArray) this is the msg error : Error 1: Value of type '1-dimensional … | |
is there a way to search database viwable in datagrid view by selecting rows through a combo box, values trough a text box and display resoult in label? here is the code that doesnt work: Private Sub Command1_Click() 'populate datagrid trough textboxes DBGrid1.Columns(0).Text = Text1.Text Text1 = "" DBGrid1.Columns(1).Text = … | |
i couldn't edit my previous post or can't delete. so i open new. sorry again i have two text file one is a.txt and another is b.txt content of a.txt is a b c d content of b.txt is 1 2 3 4 5 6 7 8 9 i want … | |
i have two text file one is a.txt and another is b.txt content of a.txt is a b c d content of b.txt is 1 2 3 4 i want to process each a.txt line to b.txt line. for instance. for each aa as String in a.txt for bb as … | |
VB.NET 2010 Is there a way to restrict a Masked Text Box to accept only *certain* letters? I know how to restrict for all letters. For example, the user should only input the letters "P", "R" or "N" ( or can be blank) in a particular Masked Text Box. I … | |
Hello -- When using the PrintForm component in VB.Net 2010 I would like to change the back color of the form from black to white just prior to printing to preview. Then once the print preview window is closed the back color returns to black. Here is the code I … | |
Group, I'm counting the number of files in a folder using the following code: Dim counter = My.Computer.FileSystem.GetFiles(folderName) This produces a value that doesn't appear to be either a string or an integer. Would you know how to convert this value into an integer that can be used? Don | |
I'm making some "cleanup" changes to my 1st VB.net project that I'm publishing. The project has an "Assembly Name". But I've just realized that the Root Namespace has the default name of "WindowsApplication1". I've got to believe this needs to be changed. How important is the name I put here? … | |
Group, I've published my first VB.net program (woo hoo!). This prompts me to ask a couple of questions: 1) I'm using a couple of text files to hold some user updated info. Is there a way to have the setup program to create the folder and attached the text files … | |
Hi guys, I've got a little problem.A part of the project I'm working on reads data from an excel file and stores it in the database. It works fine for 15-20 records but fails after that. I have properly closed the connection and the reader I'm using. But ut doesn't … | |
Hi. I have a program that detects all the folders that are open and displays each one in a ListBox item.  What I want it to do is if a certain folder is closed, I want it to start a batch file and close itself. I know how … | |
sir will you please help me and send me query for this... | |
when Register in this also will record the time in to access also is this code corrct this my code Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick lbltime.Text = "Time:" + TimeString If String.IsNullOrWhiteSpace(txtadmno.Text) Or String.IsNullOrWhiteSpace(txtcard.Text) Then 'MessageBox.Show("Please complete the on the box.", "Authentication Error", … | |
Dim Names As String = txtfrom.Text Dim Email As String = "E@mail.com" Dim Phone As String = "8979876785" Dim Address As String = "Location" Dim postData = "&Names=" & Names & "&Email=" & Email & "&Phone=" & Phone & "&Address=" & Address Dim request As WebRequest = WebRequest.Create("http://localhost/testserver/sendmail.php") request.Method = … | |
i want to restrict daily usage of my program. for example, i want to restrict usage to 100 count daily. and also want to check whether windows clocks roll back. so code will be such like. for i=0 to 100 if i > 100 then msgbox('daily usage exceed') else end … | |
hi all again i want to save my 3 columns of listview with data in vb.net built in settings saver how i can do that and how i can load it back when form load. i write something like this My.Settings.advance_settings.Add(TextBox2.Text) My.Settings.advance_settings1.Add(TextBox1.Text) My.Settings.advance_settings2.Add(Date.Today) my.settings.save() it will save the data but … | |
Hey Pals, I was trying very hard to compare 2 numbers when one is not in any sequence. EG: First number: 1233 Second Number: 3321 In this case above, i want it to match because they both contains same numbers, just that it is not in sequence. I have tried … | |
I creating an application in visual studio where I have a client to request specific information to multiple servers. Someone Knows i can make this communication? For one server i know to create that, for many servers i dont have idea. Code example!!! One client for many servers! For one … | |
Hello to all I have a problem When i create an excel file with some dropdownlists in my vb.net page the dropdownlist in the excel file doesnt ignore balnks even with the ignore blank property set to true best regards | |
hi everyone i am new this site i am creating new sms application for desktop using way2sms account please anyone help me to write the code | |
I’m creating an e-learning system on vb.net/2010.This system gives quizzes on students. I know how to save/retrieve data on mysql server using xampp but i need to display the score of all the students on the website and this website needs to be live. Now my problems are 1)How to … | |
Hi All, What do TRACE means.? and how does it helps in VB.Net. Please help Thanks in advance. | |
hi there.. i have developed a pos in vb.net but i m suffering through a problem. i am using a thermal printer here for cash sale receipt but when a get a print of that recipt it did not fix to the thermal printer paper | |
Good day, gurus of this well-known site. I am using vb.net 2013 Ultimate and SQL 2012 and can someone show/link me how to save and retrieve a word document from SQL database? Thanks | |
i am making a security program which only administrator can run. now i place one checkbox in registration form that if the user is administrator then he will check that box and program will not ask for " run as administrator" now i need code for checkbox something like if … | |
I want to make a form application that upload torrent file in bytebx.com using my username and password Could any one help me? Torrent uploading header request like : http://bytebx.com/storage POST /storage HTTP/1.1 Host: bytebx.com User-Agent: Mozilla/5.0 (Windows NT 6.3; rv:34.0) Gecko/20100101 Firefox/34.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate … | |
I'm using a WPF Textbox in Winforms using elementhost to get the SpellChecker feature. I loaded a large text file with at least 100,000 + characters and over 2,000 lines. It opens the file and adds the text to the wpf textbox normally and I can easily scroll through the … | |
I have a datagrid with checkboxes that lets the user to multiple delete. How do I store the deleted records into a text file? I am using Access to store my data My code for delete is Try con.Open() For Each row As DataGridViewRow In DataGridView1.Rows If row.Cells(0).FormattedValue = True … | |
hi, i'm working with a travels project i have two tables(vehicle_entry and booking).. when i try to book on some particular date only available vehicle names should be shown in the combo box... it shold show all the names from vehicle_entry table except that vehicle is registered in booking table … |
The End.