20,285 Topics

Member Avatar for
Member Avatar for themaj

I have a Function for checking the input in a textbox and only allowing Numeric & Backspace; everything works fine so far. My form is for financials and it has about 20 textboxes; they all receive Numeric only data; there is NO alpha data on the entire form required. Note …

Member Avatar for themaj
0
156
Member Avatar for Gus_19

I'm trying to figure out/learn how to overwrite previously saved data. Right now when I save data to my excel form and then reopen it, to edit, a duplicate row with the edited data is shown along with the previously saved data as well.

Member Avatar for Gus_19
0
201
Member Avatar for vkk

I am uploading ".xlsx" files to one of my web page in a calendar. While reading the file i am getting a message "Excel found unreadable content in 'test.xlsx' Do you want to recover the contents of the workbook? If i say YES then the content is loading properly. How …

Member Avatar for Begginnerdev
0
291
Member Avatar for remya1000

I’m using VB.Net 2008 application program. I’m using DataGridView. I have a Print Preview option where i need to print the DataGridView. Using "DataGridView1.Rows.Add" i’m adding rows to datagridview. I’m using this code for Print Preview. Dim MyDataGridViewPrinter As DataGridViewPrinter Private Function SetupThePrinting() As Boolean Dim MyPrintDialog As PrintDialog = …

Member Avatar for Begginnerdev
0
580
Member Avatar for jcgldr

hi i created an vb application and when i debug it or build it it works beautiful but when i try to publish it it succeed but wit 2 warning as follows Warning 1 Two or more assemblies have the same identity 'Shull Account, Version=1.0.0.0, Culture=neutral, ProcessorArchitecture=x86'. Shull Account Warning …

Member Avatar for Begginnerdev
0
123
Member Avatar for oskole

hello how can do this program only read other sentence after # etc mister.john#gotodaniweb.com2 this (mister.john#gotodaniweb.com2) is in listbox so when u click it it print one the label only the sentence after # so iit prints and show only gotodaniweb.com2

Member Avatar for Begginnerdev
0
95
Member Avatar for nmges

I just want to make an automatic format in the textbox, this is only to set 4 number with 2 decimal in the textbox, when the user enter any number in the textbox, it will be the number format - 4 number with 2 decimal automatically, thanks.

Member Avatar for poojavb
0
169
Member Avatar for M.Waqas Aslam

hello ! i am working on a simple grid , i create 3 columns name , A B C , manually , now i have a table having three fields A B C , i want to show Rec A in A col , B in B Col and C …

Member Avatar for hericles
0
110
Member Avatar for Gus_19

How can I trigger my "save" event when a user clicks the 'X' on the control box? I have code written for saving all of the information, but I don't know how to modify the control box features other than declaring it true or false.

Member Avatar for Begginnerdev
0
129
Member Avatar for priyamtheone

Hi, I'm trying to create my own numeric textbox that will handle decimal as well as whole number values. The concept is, unlike the regular textbox, this one will accept a value of 'Double' data type and show it with proper formatting e.g. Leading Digits, Digit Grouping etc. When the …

Member Avatar for Begginnerdev
0
228
Member Avatar for Iamateur

2 textboxes to accept fromdate and todate and check with the database column of ida,rda and if matches then display only that row. I tried it in the below way but not able to do. con.Open() i = DataGridView1.CurrentCell.RowIndex cmd = New SqlCommand("SELECT COUNT(*) FROM IssueMBA WHERE ida='" + TextBox1.Text …

Member Avatar for Begginnerdev
0
108
Member Avatar for aditya barge

in which i wnt sme small widow and data usage and speed increase n decrease can b done n v cn use a credit or atm card also

Member Avatar for Begginnerdev
0
114
Member Avatar for aminevb

I can't add infromation to my Projet.mdb ! please help me ! this is my code Try Dim ConStr As String = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source = C:\projet.mdb" Dim Save As New OleDbCommand Dim Conn As New OleDbConnection(ConStr) Save.CommandText = "INSERT INTO Client(Nom,Prenom,Adresse,Téléphone,date) VALUES(@p1,@p2,@p3,@p4,@p5)" Save.Parameters.AddWithValue("@p1", TextBox1.Text) Save.Parameters.AddWithValue("@p2", TextBox2.Text) Save.Parameters.AddWithValue("@p3", TextBox3.Text) Save.Parameters.AddWithValue("@p4", …

Member Avatar for Begginnerdev
0
92
Member Avatar for nmges

just forgot, I knew this "Textbox1.text = format(textbox1.text, “####.00”)" will set up the format to 4number with two decimal - 1234.00, how about if the user enter 12345.00, five number with two decimal, how did you do the check and give error message? Thanks.

Member Avatar for Reverend Jim
0
169
Member Avatar for vimit

Hello, Please tell me how to use datagrid in C# windows application? How to use other controls like textbox, checkbox and combobox in datagrind and populate it from database. Thanks VIMIT

Member Avatar for faizan11
0
152
Member Avatar for Mike Bishop

I have a string 17:55:88 I want to split this up into the three sections and store them in varibles. IE I would like to have the 88 stored in a varible the 55 in a varible and the 17 in a varible. the following code does what i want, …

Member Avatar for Reverend Jim
0
128
Member Avatar for jcgldr

hi i just finished an application it works good when i debug but i tried to publish it and the publishing fails with errors that some files are double but i don't get what the problem is the error details are as follows PLATFORM VERSION INFO Windows : 6.1.7600.0 (Win32NT) …

Member Avatar for hericles
0
578
Member Avatar for arabgogs

Hi Guys, I have been browsing this site for a number of years now for articles, advice and code snippets, with great interest in the expertise displayed, never actually posting any questions until now. I have been coding for a number of years now using procedural code, with breif interludes …

Member Avatar for Reverend Jim
0
145
Member Avatar for choosechrist

Im really new to vb..and i've been using treeviews recently as a menu system in my project. What i want to know is, can i create buttons, or say labels within the treeview for the root nodes.so when i click on them and child nodes will appear below. Also is …

Member Avatar for Reverend Jim
0
126
Member Avatar for oskole

i foud this code , its work well in windows 7 but when i run project in windows xp its says i must use New keyword but when i use New its gives error at regkey.GetValueNames and RegistryKey = Registry.LocalMachine and regBaseKey.OpenSubKey("SOFTWARE\MyApp", False `Imports Microsoft.Win32` Public Class mform Dim regBaseKey …

Member Avatar for thines01
0
90
Member Avatar for Coolboy6839

#Administrator Console# I am Making a Noob-Proof GUI Administration Control Panel, and I Have, Log Off User Shutdown (With User Selected Amount Of Time) Quick Shutdown (Shell ("shutdown -s -t 00") ) Reboot Computer and I Need the following: Disable TaskManager Disable Command Prompt Disable internet Disable My Computer and …

Member Avatar for JGorard159
0
175
Member Avatar for s98samman

Using Microsoft Visual Basic Express 2010 This is the code i used: Dim b As Integer = TextBox1.Text Dim c As Integer = TextBox2.Text Dim a As Integer = b * c MsgBox(a Why does this visual basic code not work and how do i fix it to make it …

Member Avatar for JGorard159
0
562
Member Avatar for bigzos

One of the problems with datediff function is that even if the two dates are 31-12-2011 and 01-01-2012,it will show the difference as 1 year.How to overcome this problem????

Member Avatar for poojavb
0
135
Member Avatar for PillowChicken

Hi! I need to disable a key in vb.net, such as the e key. So i would open my application and tab off of it, and go to internet explorer and try to go to google and it would come out as goolg . How would i do this?

Member Avatar for Coolboy6839
0
380
Member Avatar for dimmslider

Hi all, I am writing a service to get a count from a table on an SQL server. THe SQL box is in the same domain, and the service is runnign under the same account as the SQL box. The box service is running on is Win 2008 in the …

Member Avatar for adam_k
0
172
Member Avatar for kiyu2keith

Hi, I am hoping you guys could help me with this. I am trying to loop number into something like this. 0 12 345 6789 here is my code: Dim i As Integer Dim j As Integer j = CInt(TextBox1.Text) For i = 0 To j label1.text = i Next …

Member Avatar for kiyu2keith
0
567
Member Avatar for ShaggyDogg

I wonder if someone can point out where I'm going wrong with this code. My aim is to control the visibility of an UpdatePanel with a CheckBox. The CheckBox is located on the same form, but not adjacent to the UpdatePanel. ScriptManager is present, but when browsing, checking the CheckBox …

Member Avatar for Philippe.Lahaie
0
550
Member Avatar for UltimateJacob

Hi guys, So I'm making a random sentence generator that takes subjects, predicates, etc. from user input, stores them, and then randomly chooses one value from each category and prints it in a textbox. Or at least, that's how it's supposed to work. But I just can't seem to get …

Member Avatar for Begginnerdev
0
170
Member Avatar for ZER09

i created a dll file using vb.net then it has a shared function that will execute a stored procedure of mysql but my code is something long and when accessing it, it has a big risk that it can produce an error if there is an incorrect string input, i …

Member Avatar for thines01
0
529
Member Avatar for sonia sardana

I have added three images to ImageList..I want to show tooltip....On listview item... [code] Public Class Form2 Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ListView1.View = View.LargeIcon ListView1.LargeImageList = ImageList1 For lcount As Integer = 1 To 3 ListView1.Items.Add(lcount.ToString, lcount - 1) Next End Sub …

Member Avatar for scstetro
0
2K
Member Avatar for Mr_Man

hi, im making a program and i need it to start when the computer sarts could someone give me some guidance thanks for reading (and hopefuly answering) Jack

Member Avatar for M.Waqas Aslam
0
2K
Member Avatar for mysteriousMan

Hi All, new to this quality forum. Beginner in VB hoping to become a professional, hopefully one day ;) got this code from googling: Private Sub DataGridView1_CellValueChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellValueChanged If e.RowIndex <> -1 AndAlso e.ColumnIndex = Column1.Index Then Dim cell As DataGridViewComboBoxCell = …

Member Avatar for adam_k
0
242
Member Avatar for StateUnknown

Hey guys. I'm new to this vb.net programing, and was trying to build an Email-client where you can change the SMTP server, adress and password and then it saves it to a config. But my problem is right now that, the textbox wont accept any inputs. So if anyone could …

Member Avatar for StateUnknown
0
104
Member Avatar for abc_123abc

hi all.. i have the option to save the contents of the listview that was saved into text file. now i would like to load the text file into datagridview in vb.net but i have no idea how to do it as this is my first time in doing it …

Member Avatar for Begginnerdev
0
3K
Member Avatar for honeybee2090

how to filter textbox text? i use this code to copy webbrowser text in textbox3 TextBox3.Text = WebBrowser1.Document.Body.InnerText it show all text in textbox like this crypo.freeforums.org Advanced search Board index ‹ Socks Change font size E-mail friendPrint view User Control Panel (0 new messages) • View your posts Arcade …

Member Avatar for thines01
0
417
Member Avatar for oskole

hallo programers ok this code will save data withc is URL from textbox and load it to listbox , but i want it save first name of uRl like google then in other textbox put URl and save so when its load data its shows only name like Google not …

Member Avatar for thines01
0
159
Member Avatar for ghawanmeh

please help me i need to create a hash table using a multiplication method and i need to create an array of linked list **so how i can to create array of linkedlist in vb or c# ????**

Member Avatar for kvprajapati
0
103
Member Avatar for beforetheyknew

Hi guys, I'm quite unsure of what i'm doing here and could use some guidance. I've searched but haven't found any links that were focused enough. My objective is to connect my application to a database for the first time. I've never done this before so it's essentially a learning …

Member Avatar for wen_cai
0
232
Member Avatar for sdevanab

Hi. I am having connection issue while connecting to using below string provider=IBMDADB2;Data Source=XXXX.XXXXX.COM:5000;Database=C2RCU0;Uid=s858;Pwd=cccc Getting error like database not found. But What i found was connection to mainframes it self was not happenning. Do i need to provide any other information or what i am missing here.. sConnection As String …

Member Avatar for Begginnerdev
0
1K
Member Avatar for rashid_khan

Hey , i am new to visual basic.NET , i want to recognize a barcode device in VB.NET , further have to generate some barcodes using VB.NET and recognize barcodes through barcode device. so anyone can help me... Thank you

Member Avatar for Jeff-Bennett
0
174
Member Avatar for poojavb

Hello Friends... I need help on regular expressions.... I tried the following way but it did not work for me....please help me to create a regular expression... ^.*(?=.{8,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(^[a-zA-Z0-9@\$=!:.#%]+$) My requirement is -> Min 8 to 15 characters - this I will do with the length validation or by including in …

Member Avatar for poojavb
0
249
Member Avatar for STP_Captain_Slo

Hi I am wrinting a program which takes customers details and their order details, each order line is added to a DGV and eventually saved to a MDB, a Crystal Report Viewer than queries the information back and displays it in the format I setup in the report i created, …

0
171
Member Avatar for GH23

I'm developing a VB.NET application that is going to be checking if a table has been changed and if it has get the data and send it off to another application. I was looking into ways for an application to know that there has been new data added to the …

Member Avatar for francis994
0
271
Member Avatar for irishsailor

I am having problems trying to center some text. I created a printdocument and it has a company name and title and then other information I have the information fine but I wanted to center the company name and I can't seem to do it correctly here is what I …

Member Avatar for irishsailor
0
594
Member Avatar for mancode1007

halo guys, I having problem executing the SQL statement in the visual studio but when in the MySQL it work fine. Here are my code. Dim sql As String = "SELECT * FROM (SELECT @row:= @row + 1 AS rowNum, std.* FROM Student std ,(SELECT @row:= 0) r) AS t …

Member Avatar for wen_cai
0
166
Member Avatar for faizzul_77

i want to create column headers now in my first array have this http://uitm.x10.bz/!/1.png array CSC238,8.00-9.50 MAT183,1.00-2.00 ECO120,2.10-4.00 BEL311,4.10-6.00 MAT183,8.00,9.50 then second array, i want to do like this http://uitm.x10.bz/!/2.png array 8.00-8.50 9.00-9.50 10.00-10.50 11.00-11.50 12.00-12.50 1.00-2.00 2.10-3.00 3.10-4.00 4.10-5.00 5.10-6.00 6.00-7.00 7.00-8.00 8.00-8.50 9.00-9.50 hope can help this problem …

Member Avatar for francis994
0
195
Member Avatar for eongchin

hi, i started using VB 2008 recently (with perl background, its a big leap) and having a problem with database. i am trying to access a database that is attached to a different form. i managed to get my code to work if i was writing on the same form. …

Member Avatar for adam_k
0
96
Member Avatar for bigzos

Hey,,I tried the following code to retrieve data from an excel file,apply query and save the result of query to another excel file. Now there are two problems: One,I am getting the required data but some reduntant unwanted data too. Second,It only works if the excel file, from which the …

Member Avatar for bigzos
0
623
Member Avatar for zeqe

Hi there. I'm having trouble passing variables between Forms. Let me explian my self by an example. I have a Form1, the user types a "Client ID" in a textbox if it's not a valid one, it opens a Form2 in which the user selects the correct "Client ID", once …

Member Avatar for zeqe
0
178
Member Avatar for collin_ola

Hi, I have a form in VB which is scrollable (using autoscroll) and when I currently click 'print', it only prints what I can see; it takes a screenshot of the viewable information. Here's my code: [CODE]Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrint.Click Dim settings …

Member Avatar for n71423
0
2K

The End.