20,278 Topics

Member Avatar for
Member Avatar for Eternal Newbie

How could I change the column header of the Data Grid to center or right but not left as default? [Pls pay attention, We are talking 'bout Data Grid here, recently I always receive answers for Data Grid View instead :( ] I just want to re-align the header only, …

Member Avatar for kRod
0
2K
Member Avatar for kjklls

i've been working on a program and i want it to be accessed by multiple users. so i have an admin account and an other users account what i want to do is for the other users to be able to access the program and its database from another computer …

Member Avatar for Reverend Jim
0
633
Member Avatar for Mr.M

Hi Dw I have folder which has all the files and the folder can have as much files inside as possible so I have created the function which gets all the files inside this folder and populate it on a listbox so now the problem is that it shows with …

Member Avatar for Mr.M
0
2K
Member Avatar for Jeline_1

hi everyone my question is how to clear a datagrid view in vb.net 2010 i have tried DatGridView1.Clear() but it only works once and i would like to clear my datagrid every time i click the load button hers my code Private Sub Button15_Click(sender As System.Object, e As System.EventArgs) Handles …

Member Avatar for G_Waddell
0
173
Member Avatar for satti

I want to print data from XML in readable formate which is the last section of XML file .My code writes data from database to XML file . Here is a code i use to write XML Note: myread is a dll containing dataset,data adapter and connection string. ds As …

Member Avatar for G_Waddell
0
1K
Member Avatar for notacop

I have the following html code: <name>Username</name> <kills>1</kills> <ach_count>3</ach_count> And on and on..... I am looking for a code that extracts the value from <tag></tag> and puts them into variable. I don't want to use HTML Agility Pack, don't ask why.Also XML is not an option for me. I hope …

Member Avatar for notacop
0
209
Member Avatar for sushilsth

Private Sub btnsave_Click(sender As Object, e As EventArgs) Handles btnsave.Click 'to check if the records already exists... Dim sqlQRY As String = "SELECT COUNT(namee) AS namecount from staff WHERE namee='" & TextBox7.Text & "'" Dim queryResult As Integer Dim com As New OleDbCommand(sqlQRY, conn) queryResult = com.ExecuteScalar() If queryResult > …

Member Avatar for tareywolf
0
194
Member Avatar for jared.geli

Hi guys. I need help in copying selected row from DataGrid to another. What I want is if I click a row it will be copied to another DataGrid. I set my DataGrid Selection Mode to FullRowSelect. Is it possible for me to update my database using the copied rows. …

Member Avatar for jared.geli
0
4K
Member Avatar for missy_mi

Hi All, How do i get user choice Radio button text from multiple radio button, When i save as word document. Below code is what i did: "Food :" & ComboBox1.Text & ", Quantity :" & txtCountFood & vbNewLine & But instead of using ComboBox (as above code) i want …

Member Avatar for missy_mi
0
284
Member Avatar for Jeline_1

hi im trying to populate a datagrid view with the contents af a text file i used the following code: Private Sub Button15_Click(sender As System.Object, e As System.EventArgs) Handles Button15.Click Dim lines = (From line In IO.File.ReadAllLines(strPath) _'strPath is the location of text file Select line.Split(CChar(vbTab))).ToArray For x As Integer …

Member Avatar for tinstaafl
0
169
Member Avatar for vodkasoda

I'm right at the start of designing a small E:Mail control program for a friend, but would just like to ask some advice on best practice before I dive in at the deep end. I have a Form with 2 ComboBoxes and the data selected decides what to send, what …

Member Avatar for G_Waddell
0
341
Member Avatar for kingofspades

So I put the database into the dubug folder in bin of my project, and in the data source configuration wizard i selected ms access and my file, then i copied my connection string, it was "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\bin\Debug\bookshop.mdb" and wrote some code for it to connect to it, to be …

Member Avatar for kingofspades
0
146
Member Avatar for elie.karkafy

i need to generate for example the January month from 1-1-2014 till 30-1-2014 in sql database using visual basic 2010 so the table will be like that Date Day Employename 1-1-2014 Wednesday elie 2-1-2014 Thursday elie 3-1-2014 Friday elie , , , , , , , , , , , …

0
68
Member Avatar for Iamateur

In this code,while executing it does's show the result. For eg: Consider addition,in addition result it shows the second value to be added. How it can be corrected? Public Class calculator Dim add, subt, mul, res As Integer Dim div As Double Dim ch As String Private Sub Button1_Click(ByVal sender …

Member Avatar for Minimalist
0
306
Member Avatar for gelmi

can some one give me a codes?im creating a time reservation system and every time a user input a data on the combo box and click the button SUBMIT, all the data will be recorded in the list view.and now?im having a problem with the codes for a conflict schedule.i …

Member Avatar for bokies
0
151
Member Avatar for ambi108

Could i please have an example of using the equivalent of the obselete Scale method for picture box controls in vb.net?

Member Avatar for Reverend Jim
0
101
Member Avatar for VB 2012

lol Hi people its been 2 years im back :D I finshed high school but had too stop programming so im back to noob The problem is i cant seem to find SelectedIndex while using listview -__- I really dont want to use text to find a item :/

Member Avatar for Minimalist
0
190
Member Avatar for Pickletronic

Hello, I was trying to view all the data from a single from a database after the button "search" is clicked and the output will be inserted into corresponding textboxes for future editing. After I entered the ID(1) I get an "OleDbException was unhandled" " Data type mismatch in criteria …

Member Avatar for G_Waddell
0
2K
Member Avatar for kingofspades

I am new to vb and for an assignment i have to make a application that adds, deletes database records. I used an ms access database. If i run the file in another pc, it doesnt't work as the datbase file is not in that pc,i need it to work …

Member Avatar for kingofspades
0
189
Member Avatar for mradhie2

I just want to ask how to display points from text file which contains x,y coordinates using vb.net?

Member Avatar for ddanbe
0
50
Member Avatar for Jeline_1

Hi Im just wondering if anyone can help me out? I have a text file that contains data that i want to load into a datagrid view I'm new to vb.net so i really have no idea on how iam supposed to start im using vb.net 2010 thanks in advance

0
94
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
246
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
261
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
184
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
380
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
348
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
867
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
184
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
120

The End.