-
- 2 Control Array together!
by Mandana
- 9 Replies
- Last post
by Mandana
- Hi,
I made 5 textboxes and I want all these text boxes to be inside the group box. the problem comes from that in group box I cannt say textbox_0 and textbox_1 and textbox_2 to be in that group and it is compiler give me an error that the textbox_0 and _1 and _2 are not defined.
any help would be appriciate it.
'---------------------------------------------------
For
-
- How can we restrict copy between hard disk and removable disk?
by Dinesh Kokate
- 4 Replies
- Last post
by Frank Carr
- Hi All,
I need help in restricting copy between hard disk and removable disk, can some one hint me as how can this be done.
The basic idea is to stop leakage of data.
Regards,
Dinesh
-
- Data imported from Excel Spreadsheet is truncated
by thelonesoldier
- 1 Replies
- Last post
by Bruno Yu - MSFT
- I am working on a program that imports data from an Excel spreadsheet, loads it into a Dataset, and then displays it in a DataGridView. I'm using the example code in the How To: Read Excel Data into a Dataset help file (my own has the data source changed but its otherwise the same):
Dim cn As System.Data.OleDb.OleDbConnection
Dim cmd As System.Data.OleDb.OleDbDataAdapter
Dim ds As New Sys
-
- datagridview cell paint
by AuliyaIkhsan
- 3 Replies
- Last post
by PEng1
- ex:
I want to make datagridview column(1)
column(0) column(1)
2 -1
3 -4
5 2
if value < 0 then color is red
else color is black
i need a result like
column(0) column(1)
2 -1
3 -4
5 2
thanks
-
- Question on DataGridView Data
by joynerCN
- 6 Replies
- Last post
by joynerCN
- Pardon me for posting twice in quick succession, but I've always found that if I post two questions in a thread, only one gets any attention.
I've got a DataGridView where each line displays information from a class called 'Flag', which has a number of variables. One of these variables is a URL for a page that the particular 'Flag' pertains to. But rather than displaying the URL in a column, I'
-
- create key/value pair for filename/path_filename to use in combobox.
by hazz
- 6 Replies
- Last post
by hazz
- What is the best way to create a key value pair for a filename and filepath with filename.
1. Obtain files within a directory for a known suffix (eg. html) 2. Set variable to filename only using GetFileName() 3 Add filename to Listbox, ComboBox, etc. 4. When user selects FileName, use value (path and filename c:/xxx/xxx/filename to use as argument for Process.Start(PathFileName)
Private Sub
-
- .Net MDI child maximize issue
by KalpanaB
- 2 Replies
- Last post
by KalpanaB
- Hi,
I have created my application in vb.net.
In my application, there are three forms placed on a panel. These 3 forms(f1, f2, f3) individually can be maximized or minimized. On main form i have two buttons say b1 and b2. Clicking these buttons above 3 forms are displayed respective to that for. Means say 3 forms for button 1 are displayed. when i click button2, 3 forms for button1 gets hidd
-
- Datagridview problem
by in2minds
- 7 Replies
- Last post
by in2minds
- hello,
I am using datagridview displaying my results, i have a checkbox as one of the columns.
now when i select two rows and try to see what i selected it shows true once only instead of two times.
When i select one row, it doesnt show that i have selected any row.
here is the code:
Dim rowcount As Integer = 0
While rowcount < dgvEditList.RowCount
If dg
-
- Date field and DateTimePicker control
by zaabdullah
- 8 Replies
- Last post
by zaabdullah
- Hi
I have date field in database, on the form have DateTimePicker control or masked edit control.Once enter date cannot empty it and save it.How to delete date and save as no date or null.
Zaabdullah
-
- Counting lines with RTF
by The Midnighter
- 13 Replies
- Last post
by nogChoco
- So I made my own notepad to replace Windows Notepad, the POS that it is. It's just missing one thing;
I want to count the lines of code / writing in the notepad, and I have searched the ends of the internet for an answer, but to no prevail. Does anyone know how I could go about this
Thanks!
-
- Best practice - Collectionbase
by Makisupa
- 6 Replies
- Last post
by TheDistractor
- I am trying to find out which method would yield the best performace.
Say I have two classes, invoice and invoice_line.
The invoice class must store multiple lines, and they will need to be looped through to calcualte totals, etc.
Is it faster to have the invoice class inherit Collectionbase. Or, would it be quicker to define a new list within the invoice class, something like
dim
-
- Need to update DatagridView date cell when another cell is edited
by Tailor
- 1 Replies
- Last post
by Tailor
- Hi,
I have a DataGridView with a Prices column, which can be edited by the user. I also have a date column, in which I would like to automatically insert todays date, when the corresponding Price is edited. So far, the following code works fine, and any edited cell has its colour changed as a flag.
The update is handled by the DataAdapter and I can't figure how to introduce todays date into
-
- "invalid authorization specification"
by mindserve
- 5 Replies
- Last post
by Bruno Yu - MSFT
- I am new to vb 2005, so please bear with me.
I am trying to make an oledb connection to an Access database.
1. I added a component class.
It said drag from the toolbox to add components.
2. I dragged over the Oledbconnection and OledbdataAdapter
3. I clicked on new connection string for the oldeb Connection and try to connect to the SHX.mdb datababase in the debug/ bin f
-
- Shockwave Flash Object
by GlueyMcGee
- 9 Replies
- Last post
by hcovitz
- how do we add a shockwave flash object to visual basic 2005 express edition without the message saying: Failed to import the active-x control. Make sure it is properly registered.
Please help
Thanks
-
- problem converting text to a guid
by cwillsh
- 3 Replies
- Last post
by cwillsh
- I have a valid Guid stored in a Windows.Forms TextBox control. I need to copy it to a class property that is declared as a Guid. Everything I try returns an error.
Member.sponsor = Me.txtMemberSponsor.text
The Guid class members include an Equals for comparing and an Empty to create a blank, but no ToGuid or Convert.......
Any suggestions.......
-
- HDD serial number
by sladja
- 1 Replies
- Last post
by ahmedilyas
- Hi everybody:)
How can I get a serial number (physical number) of the disk within VB2005.net (or at least C#2005)
Is there any function for retrieving this number which does work independently from platform or anything else
I 've already tried out Win32.PhysicalMedia, but it retrieves nothing !!!
Thanks
-
- Type 'control' is not defined
by RonOKane
- 1 Replies
- Last post
by Bruno_1
- I have created a control and have been using it in a program. Today when I got into my program to edit I am getting this message. Type 'mycontrol' is not defined. I don't know how to fix it.
-
- Using Microsoft Fingerprint Reader for special applications
by Eduardo RV
- 5 Replies
- Last post
by fahody
- I bought a Microsoft Fingerprint Reader (it has a USB connection), and I was planning on setup a 'public' PC and use it to identify workers in my company on an application I've developed, by using their finger to get identified, rather than typing a password.
Unfortunately, the device doesn't have information on using it for other stuff, like my idea... I can only use it to be identified du
-
- How do you copy an existing project to a new name?
by Truth_Seeker
- 9 Replies
- Last post
by SysEngr62
- How do you copy an existing project to a new profect name
The two project will be independent from each other.
I tried the ˇ°save allˇ± on the Toolbar & under File & the "Save Project" window
does not come up. Is their some thing I have to set
-
- TreeView Control - Background Image?
by Tim8w
- 14 Replies
- Last post
by rkimble
- Is there a way to set the background image of a TreeView control like you used to be able to do in VB6 using the Sheridan controls Sheridan VB6 SSTree control Properties: PictureBackground PictureBackgroundMaskColor PictureBackgroundStyle PictureBackgroundUseMask
-
- Question about (Dim As New)
by Penicillin
- 4 Replies
- Last post
by Spidermans_DarkSide - MSP, VSI
- Hello
I know that it is a silly question.
Sometimes I should use "Dim X As New ", e.g.
Code Snippet
Dim bm As New Bitmap(10, 10)
Sometimes I just should use "Dim X As", e.g.
Code Snippet
Dim draw As Graphics
What does exactly "As New" mean
Thanks
-
- Reading Binary File into Structure
by Chris9876
- 12 Replies
- Last post
by Chris9876
- I'm trying to read data from a binary file. It's in native binary (not written with any formating or serialization data). I have a Structure that includes Char arrays , Integers and Doubles, reflecting the data in the file and the order it occurs.
I have read it with FileGet. Problem is, when I try to display in textbox, the strings have null characters padding at the end and I only see as far
-
- Datagridview Combobox
by Davids Learning
- 4 Replies
- Last post
by Riquel Dong ¨C MSFT
- Is there a way to make a combobox in a datagrid view drop down when entered
Davids Learning
-
- Looping Question
by Philsophaie
- 2 Replies
- Last post
by Philsophaie
- Is there a way of looping in Visual Basic that involves a subroutine refreshing its own contents peroidically
or should the looping be done by While loop, goto, etc.
-
- MouseClick Event
by RolltheBall
- 2 Replies
- Last post
by RolltheBall
- Hi there. I am trying to make a certain symbol to appear upon every mouseclick. However, the symbol is a cross and an arrow head. This is how I tried to do it.
Code Block
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As _
System.Windows.Forms.PaintEventArgs) Handles _
MyBase.Paint
Dim bluePen As New Pen(Color.Blue, 1.5)
Dim G