20,285 Topics

Member Avatar for
Member Avatar for Iamateur

Module throtemp Public Class TempIsZeroException : Inherits ApplicationException Public Sub New(ByVal msg As String) MyBase.New(msg) End Sub End Class Public Class temp Dim tmp As Integer = 1 Sub showtmp() If (tmp = 0) Then Throw (New TempIsZeroException("zero temp found")) Else Console.WriteLine("temp:{0}", tmp) End If End Sub End Class Sub …

Member Avatar for oussama_1
0
250
Member Avatar for kentuckyjoe

I'm trying to iterate through the controls on a form and set the tabIndex to 0 for all labels. I copped the following code from google but it doesn't work for me and I'm pretty certain it's because all of my controls are on a panel and not on the …

Member Avatar for kentuckyjoe
0
269
Member Avatar for cambalinho

i'm building a data base.. heres what i did: 1 - create the forms and put the controls; 2 - create the Service-base DataBase(add New Item); 3 - a toolbox, on left, is showed and then i create a new table; 4 - using the mouse right button, i select(on …

Member Avatar for cambalinho
0
188
Member Avatar for corleen19

HEY THERE! COULD ANYONE HELP ME WITH THIS? THIS CODE DOESN'T HAVE AN ERROR BUT MY PROBLEM IS NOTHING DISPLAYS ON MY TEXTBOX. I WANT TO GET THE VALUE FROM MY MYSQL DATABASE TO TEXTBOX. Is there another way to do? dbcon = getconnect() dbcon.Open() cmd = New MySqlCommand("select * …

Member Avatar for Deep Modi
0
1K
Member Avatar for tashee2007

@ by : O This is topic (http://www.codeproject.com/Articles/21351/Import-Data-to-SQL-Server-from-Excel-or-Access-usi) is reactivated again which was posted by : Oxiegen for further information: The code is corrected but the data is not getting exported from Access database to SQL. The code is as follows : Private Sub Button1_Click(ByVal sender As System.Object, ByVal e …

Member Avatar for Deep Modi
0
386
Member Avatar for AnooooPower

Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim ofd As New OpenFileDialog Dim strFile As String With ofd .Title = "Select a List" .Filter = "Text Files|*.txt|All Files|*.*" .ShowDialog() strFile = .FileName End With If System.IO.File.Exists(strFile) = False Then Exit Sub Dim Reader As …

Member Avatar for AnooooPower
0
354
Member Avatar for nettripper

what is the code for the program in vb.net that automatically adjust resolution based on the computer you are using? i use WindowState.Maximize but only the background image adjust. my other stuf such as buttons, labels picturebox are not..can you help me guys? thanks

Member Avatar for oussama_1
0
880
Member Avatar for joshl_1995

Hello Community, Why I the port I'm trying to read looking really weired. I'm using an Arduino to produce the port data (It just has two button inputting "BUTTONONE" and "BUTTONTWO" when pressed). This is the result I'm getting: BUTTONTWO BUTTONTWO BUTTONTWO BUTTONTWO BUTTONTWO BUTTONTWO BUTTONTWO BUTTONTWO BUTTONTWO BUTTONONE BUTTONONE …

Member Avatar for joshl_1995
0
186
Member Avatar for Jimmy_1

Seems this wouldnt be too hard, but I'm scratiching my head bald... I have multiple workbooks. They are all housed in the same folder. WBa, WBb, WBc. I need to combine these, (or at least a Worksheet from each) and have them tally a certain column, which seems easy enough, …

Member Avatar for kRod
0
124
Member Avatar for kRod

I've been working on a Textbox that only accepts 0-9, Decimal Point, and the Backspace Keys. Also keeps it in the base form 0.00. Max value is 999999.99 can be set as needed. It works as expected, but I have to ask if I have remade the wheel. This sub …

Member Avatar for kRod
2
1K
Member Avatar for Patrick_3

Hello everyone, I am working on a VB project which implements a number of custom controls. So far I have had no issue with the controls I have been writing; until now. Every time I add the control to the form it appears like a normal control, however when I …

Member Avatar for tinstaafl
0
207
Member Avatar for Deep Modi

I am having the website and it's based on the Educational Purposes... I am having the code for different programs and all so etc... So The question is that How can i add the code as syntax highlighter PFA... ![d71ec5623473d0f488c3f95f9bcc962e](/attachments/large/4/d71ec5623473d0f488c3f95f9bcc962e.jpg "d71ec5623473d0f488c3f95f9bcc962e")

Member Avatar for JorgeM
0
212
Member Avatar for thannu07

hy i got a combo box and datagridview in my form and few other controls (to insert new record into my database),after the insertion is succcesful i want the inserted item to be displayed in my combo box and gridview by then only (i.e without restarting the project) could u …

Member Avatar for kRod
0
221
Member Avatar for Lethugs

Hi Is there a way a vb form structure the same as its backgroud picture? Its same with making the form invisible and let its background picture remain Im trying to make a program that when it runs, it displays like widget. thanks

Member Avatar for Deep Modi
0
263
Member Avatar for missy_mi

Hello.. good day evryone, i encounter a problem with my save as form..i use savefiledialog..the result is that the page is saved..but when i open the word doc, it is empty..there is no data whatsoever.. i dont use database..it is suppose to save the the data that i filled in …

Member Avatar for missy_mi
0
478
Member Avatar for Gulzar_1

I have project of vb.net when i make setup and run in my machine it works perfectly but when i run that setup in another machine it is giving "System.Runtime.InteropServices.COMException (0x80040154) HRESULT-class not registered" error..I have to give this project to client...please help

Member Avatar for Minimalist
0
601
Member Avatar for Mr.M

Hi Dw I'm working on a program which has many forms and these forms are for setting the functionality of this program so now I want to detect if, let say Shift+F is pressed then the appropriate form will show. I don't want to use the Form_KeyPress or KeyDown or …

Member Avatar for Mr.M
0
317
Member Avatar for TechxRay

Greets to all! I have 2 user defined controls. 1 is the main, the other is the control that contains all the radio buttons. One of the criteria is to have a clear button in the main control to select the 0 radio button that clears all the text fields …

Member Avatar for NeilR
0
583
Member Avatar for Iamateur
Member Avatar for on94

Anyone has any idea about how to add a column to the database's table that already create From the coding part ?

Member Avatar for on94
0
82
Member Avatar for Iamateur

Module avgarr Function getavg(ByVal arr As Integer(), ByVal size As Integer) As Double Dim i As Integer Dim avg As Double Dim sum As Integer = 0 For i = 0 To size - 1 sum += arr(i) Next i avg = sum / size Return avg End Function Sub …

Member Avatar for Minimalist
0
127
Member Avatar for Gulzar_1

vb.net project shifted from one pc to another pc.project includes some private dlls.I include those dlls and some activex controls are linked with these dlls.At the time of loading form it is throwing some exception.when I create controls.It is running well,But after creating exe file.It is showing error file not …

Member Avatar for Minimalist
0
153
Member Avatar for sfiftysix

How to create a form with a a button add_subjects which adds one textbox on each click, at runtime in VB and a corresponding label, 3 buttons - Add, Edit and Delete, for each textbox created. Once each texbox's corresponding Add _button is clicked, it passes textbox's value is passed …

Member Avatar for Minimalist
0
174
Member Avatar for tirso

Hi to all I have two forms, one is form1 for registration and the other one is form2 for my main menu. How to call the form2 if the user successfully register with the form1. The code in form 1 is me.close (to close the form1) then form2.show but it …

Member Avatar for luck_1
-1
6K
Member Avatar for Iamateur

Well I am totally beginner. I came across this program. Module arrayredim Sub main() Dim marks() As Integer ReDim marks(2) marks(0) = 85 marks(1) = 75 marks(2) = 90 ReDim Preserve marks(10) marks(3) = 80 marks(4) = 76 marks(5) = 92 marks(6) = 99 marks(7) = 79 marks(8) = 75 …

Member Avatar for Iamateur
0
148
Member Avatar for waleed.makarem

Dear All , I am looking for a .net control to act as progressBar. it shoule have many empty boxes , and which progress , it gets filled. as in Free Download manager. Please refer to attached screen shot. Thanks, Waleed

Member Avatar for Deep Modi
0
332
Member Avatar for Reverend Jim

I've rewritten this question a half dozen times and each time it makes less sense. In a nutshell, I want to populate a listview with large icons representing image files but I can't get them to come out unstretched. They are always stretched along the x or y axis because …

Member Avatar for Reverend Jim
0
293
Member Avatar for thannu07

hy i m trying to do a smal vb.net project using sql server 2008 in vs2012,and i dont know how to use those database in my project for eg : using select/insert/update/delete queriesfor my controls(textbox,combobox datagrids etc..) please help me with detail how to connect database and use it in …

Member Avatar for Reverend Jim
0
186
Member Avatar for Deep Modi

I already created application, now I want to add the "Submit Software/image/etc page", So i am having my own website in weebly which allows me only 10MB per File, and also I am link with mediafire, 2shared, 4shared etc hosting service, But what i need is that the user can …

Member Avatar for Deep Modi
0
214
Member Avatar for artemix22

i am so confuse dude.. why in my visual studio 2010 ultimate didn't show crystal report gallery? after i click "add new item" and add crystal report, it just show me SAP page that say "learn and download". i have install SAP crystal report runtime engine for .NET framework 4(32-bit). …

Member Avatar for Sqiar
0
182

The End.