|
wat is listCtrl?? im new of this word! :/
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
Actually, it may be called a ListView.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
OWWW IC! this is my last question! can you tell me how enter an icon into the listview please?? thanks alot!!
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
You just create an image list, associate it with the control, and set the image index within the list for each item.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
how to insert pictue to it
mail me at rajesh.batchu@cesltd.com
|
|
|
|
|
Exactly as I said, which bits confused you ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
ok i get used to it for the listview! thanks alot Christian !!
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
how can i programmatically put an image in an item?? and how can i send a picture via parameters please??
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
HELLO, CAN YOU HELP ME ON HOW TO INSERT AN IMAGE INTO A SUBITEM USING CODE ONLY! I AM CREATING A MESSENGER AND I WANT TO INSERT THE CONTACTS PICTURE .. BUT I WANT TO MAKE THE CODE TO INSERT THE PICTURE BY A PATH FOR EXAMPLE: "C:/INDEX.JPEG". HOW CAN I MAKE THIS?? THANKS ALOT!!
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
Hello,
I am creating a application that can connect any sql server on the network.
The customer would like a dialog box to be able to find a instance of a server, and then enter the password and username to get a list of all the database they want to connect to.
Does anyone have any examples projects in vb.net that does something like this.
I will be most grateful for any code.
Thanks in advance,
Steve
|
|
|
|
|
The .NET Framework 2.0 has the SqlDataSourceEnumerator[^] class to do this for you. It returns a DataTable with the information that you're looking for.
We're not going to write the code for you. You have to take a stab at it first. How else are you going to learn what works and what doesn't?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
my excel file contains no field headings
when i uploading the data the first row of the excel file become
the field's headings of the dataset.
how to avoid this.
ie.i have to save the first row also to the dataset
|
|
|
|
|
First, don't start a new thread for this. Keep it in your original thread and reply to the poerson who responded to you.
Next, let's see the code you used to import the Excel file. Whatever you did, you told the process to treat the first row as headers.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
hi,
connect the excel with oledb.then
MyCommand = New System.Data.OleDb.OleDbDataAdapter( _
"select * from [Sheet1$]", MyConnection)
ds = New System.Data.DataSet
MyCommand.Fill(ds, "delgrpmember")
For currentRow = 0 To ds.Tables(0).Rows.Count - 1
Dim i As Integer
Dim newRow1 As DataRow = dsExcelExport.Tables("delgrpmember").NewRow()
For i = 0 To colcount - 1
newRow1(i) = ds.Tables(0).Rows(currentRow)(i)
Next
dsExcelExport.Tables("delgrpmember").Rows.Add(newRow1)
Next
daExcelExport.Update(dsExcelExport, "delgrpmember")
In this the first row of the Excel file not contained in the Dataset.I have to import all the used rows including first row to the Dataset.
my Excel file has no headings.
can u help me
|
|
|
|
|
viji] wrote: connect the excel with oledb.then
And the code that you used to do this?? Especially the connection string...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I press the Enter key the focus jump into next row
How can stop automatic row selection.
Continue...
|
|
|
|
|
hi,
i have uploaded an excel file into a dataset .but it not containing the first row of the excel file.
|
|
|
|
|
That is because the database driver thinks that the first row contains field names. You have to specify somehow that it doesn't. I don't know how, but at least you have something to look for...
---
b { font-weight: normal; }
|
|
|
|
|
hi, this is chandu,
How to generate seriel no. based on date wise ?
if date is changed then no should start from 1,2,3,4,5,....like.
chandu
|
|
|
|
|
Chira Chandra wrote: if date is changed then no should start from 1,2,3,4,5,....like.
You mean yuo want your number to start with the actual date ? I don't understand what your question is. Do you want to append the date to your serial number, or do you want suggestions for an algorithm that creates serial numbers you can then decode to get back a date ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Sir, thank you for ur reply.
Suppose in the database we are having 1 to 10 numbers in the serial number column & date is 24-9-06. If we run the VB application on next day, the date will be 25-9-06. So then the Serial number should start freshly from 1,2,3,4,...like wise. the existing records should end on the day itself. This is my problem. Please give me Code to this concept. I would be thankful to you.
chandu
|
|
|
|
|
Ah - I see.
OK, well, if the numbers are just a sequence of 1,2,3,4 for each date, you want to write a stored proc which does this. It will check for the highest number in the table where the date is today, and then store a new number and return it, the number is one higher.
If you have a table called Serials with two entries, serial as an int and date as a datetime, this will work:
create proc InsertSerial @serial int out
as
begin
select @serial = count(*) from Serials where DATEPART(day, date) = DATEPART(day, GETDATE())
and DATEPART(month, date) = DATEPART(month, GETDATE())
and DATEPART(year, date) = DATEPART(year, GETDATE())
set @serial = @serial + 1
insert into Serials (Serial, Date) values (@serial, GETDATE())
end
I'm not sure if there's another way to compare the date without the time, but I tested this and it works fine.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thank you sir, for your Immediate reply.
I think the procedure should be created in Oracle. am I correct. But I am using MS-Access 2000. Or shall we write this procedure in VB-6. Please reply.
chandu
|
|
|
|
|
Actually, that was SQL Server 2000. I thought Access supported stored procs nowadays ? You may need to change a few things ,but the general idea should still work.
No, I'm not advocating that you handle this in your VB code, although you could. It just makes more sense to me to do it in the DB.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I'm developing a program where I have to count a number of print time of a report that's really printing out from a printer. Then I ask for a coding that will update the number of printing to a database(including other value if it have to update) after a user press "ok" from a print dialog.
Thank you,
Little Ducky
|
|
|
|