20,284 Topics
| |
i have a datagridview , i need to change the col(6) to combobox and filling it with data , how i can do this ?? my DGV not bounded with data , its read from sqltable | |
I want to allow other to use a vb.net application I created, I shared the executable file with them and they have Microsoft .NET Framework 4 installed (from the VB 2008 express install) but the executable will not run. I get a "File has stopped working" pop-up and that's all. … | |
Hi, I am attempting to draw graphics on a PowerPoint slide. Say I draw a line and a rectangle. What code do I add to the function to have those objects group together? Thanks, Ken | |
Hey guys, I need help. See, im trying to compare dates. if say, deadline is set and if the user is over the set deadline, it should display a message box saying that he passed his deadline. what i have so far is: If Date.Today > txtDeadline.Text Then Msgbox.Show("You've passed … | |
Please folks I nid ur help, I av a data mismatch error in criteria expression. I av a variable of data type string which I added to my OleDbcommand object the code is below: I used 2 textbox for surname and fname I av a textbox I used for calculation … | |
I AM WORKING ON A PROJECT IN WHICH I AM SAVING AN IMAGE IN ACCESS DATABASE,RETRIEVING THE IMAGE,UPDATING THE IMAGE AND THEN WHEN I TRY TO RETRIRVE THE UPDATED IMAGE I GET AN ERROR "PARAMETER IS NOT VALID" SO PLZ POST THE CODE FOR UPDATING PLS REPLY SOON ITS URGENT | |
Option Explicit Dim score As Integer Private Sub Command1_Click() Dim Values(3) As ColorConstants Values(0) = vbRed Values(1) = vbBlue Values(2) = vbGreen Dim RandomNumber As ColorConstants RandomNumber = Values(Rnd * 2) Label1.BackColor = RandomNumber Randomize End Sub Private Sub Command2_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As … | |
Alright so essentially I need to create a class that houses the methods and then call the methods in the form but I can't seem to find out what the right code is to call it. I think there may be an issue with the conversion from a double to … | |
hi i'm doing a vb application to inventory mangement system Private Sub AppendItem(ByVal Major As String) myConnection = New SqlConnection(connectionstring) myConnection.Open() Dim TempData As New DataTable myCommand1 = New SqlCommand("Select Departement,Suject_Name From Major Where MajorName='" & ComboBox1.SelectedItem & "'", myConnection) myCommand1.ExecuteNonQuery() 'sqlcmd = New SqlCommand("SELECT P_Id,P_Selling_Price FROM Product_Details WHERE P_Id='" … | |
| How can I **convert this code to csharp code**, seems to be simple but little confused. Dim Temperature As Integer = 30 Select Case Temperature Case 31 Console.WriteLine("stay in bed") Case 32 Console.WriteLine("play the lottery") Case Else Console.WriteLine("Just read the newspaper") End Select |
Formatting a date, In VB6 I could specify the a date that was so many days from today and change the format of the output in a nice and easy statement: Format(Now - 1, "yyyyMMdd"). I am trying to learn vb2010 and am getting an error on that statement: *Operator … | |
Hey guys, can you help me on my problem. The program (RFID) im working on can only read one data at a time from serial port. What i need is for it to read 5 data at a time. Scenario is this, it will read 5 RFID tags at a … | |
I am pretty new to programming in VB.Net, but I have been programming in other languages for a couple of decades now, including VB5/6 and C++. When I am using a **Try** - **Catch** block to handle exceptions, what is the point of a **Finally** section? Wouldn't it be just … | |
Hello there! This forums has helped me a lot to learn programming now I need your help again. I'm try to figure out a way to create a folder based on users input in Textbox on desktop. Public Class Form1 Dim username As TextBox Private Sub TextBox1_TextChanged(ByVal sender As System.Object, … | |
> How to format date when date control is used any idea........... it should display like 01/01/2012, zero should be append before day and month while its displaying not like 1/1/2012..... i have tried myDate=Format(myDate, "#0") And myDate= Format(myDate, "dd/mm/yyyy") | |
I built a ClassLibrary where I have created my custom form component (let's say MyForm) that inherits from the Form class. I added the ClassLibrary to my actual WinForms project. Now when I add an inherited form based on MyForm to my project through the 'Add New Item' dialog box … | |
Ensure ApplyVisualStyles is enabled in your system. Place a ToolStripProgressBar on a toolstrip, run your application and minimize the form. Now change the theme of your computer to Windows Classic and restore the form. See the interior of the ToolStripProgrssBar becomes black. It doesn't even change if you refresh the … | |
I am rendering a toolstrip with a CustomRenderer that inherits from ToolStripProfessionalRenderer. The concept is that I want the color of the arrow of the toolstrip items to be white in all cases except selection. When it is selected the color should be black. In my code below all arrows … | |
Hi, am tring to see my digital pen works with the Pegasus .net Sdk in vb2010 well i have enable the class and it wirte but one thing that make life hard is coordination of pen (Y,X) which i need to start from a given point on my inedit control … | |
Hey guys tried a few things but Im clueless to stuff like regex and I really need this compontent to my project :( THIS NEEDS TO BE EXTRACTED - this changes on each refresh I need that part of the data to be added to a list view Please help … | |
i have binding datagridview with 27 rows , i need to add these row to sqlserver table with other field how i can do that by insert statment??? | |
**Hi all. Im new to visual basic. im using vb 2008 express edition what im trying to do is take everything in my database and put it in my datagridview. The datagridview can be edited. From there, i want to make the changes then save them later. So my question … | |
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim pid As String = ComboBox1.SelectedItem myConnection = New SqlConnection(Module1.connectionString) myConnection.Open() newq.Text = Val(TextBox2.Text) - Val(TextBox1.Text) Dim majortable As SqlCommand = New SqlCommand("Update Product_Details Set Quantity ='" & newq.Text & "' WHERE P_ID='" & pid & " '", … | |
Try Dim I As Integer For I = 0 To DataGridView1.Rows.Count - 1 Dim ordernumber As String = DataGridView1.Rows(I).Cells(0).Value Dim repairinvoice As String = DataGridView1.Rows(I).Cells(1).Value Dim itemname As String = DataGridView1.Rows(I).Cells(2).Value Dim orderedquantity As String = DataGridView1.Rows(I).Cells(3).Value Dim itemcost As String = DataGridView1.Rows(I).Cells(4).Value Dim saleprice As String = DataGridView1.Rows(I).Cells(5).Value Dim … | |
I have recently started coding in VB.Net and started using the Try-Catch style of exception handling available in .Net, which I admit is very similar to the exception handling of C++, so it is not all that unfamiliar. In my VB6 code, which I have been using up till now … | |
Is it possible to make a text file or separate class file that could be imported as lines of code. e.g. I have this simple line of code: Dim x = 0 messagebox.show(x) Import(text file or other file) 'run the code from the other file 'resume code in this file … | |
Hi, Recently I was working in photoshop, And photoshop is really great application. After using it for weeks, I am thinking about learning the logic behind the way it works. I tried few articles which was just about converting image to black n white, matching two exactly same images etc. … | |
Hi all, I build a scrolling text that starts running when I start up my Computer. I can stop it by clicking on it, no problem. Is it also possible to stop it when I start up another programm ? | |
Hi all I have a quite complex problem and I don't exactly know how to "step into it" so I really need your help. Little briefing: lets say I go on a business trip. My company gives me up to 2 advances in different currencys (but there also could be … | |
Is it possible to delete non empty folder in web? I cant delete it using this code as long as its non empty folder. I can delete files under the folder but folder may consist sub folders too. Whats is the simple way to do this? Dim clsRequest As System.Net.FtpWebRequest … |
The End.