|
Hai
I have created the coloum headers for the list view now i want to change the backcolor of the coloum header how can i do this in vb.net
Thanku
lakshmi kala
|
|
|
|
|
Not supported by normal means. You'll have to owner-draw the ListView yourself. The article search is taking awy too long to come back with results right now, but search the articles for "custom Listview" and you'll find a bunch of example on how to owner-draw a listview control.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanku for u response
kala
|
|
|
|
|
Hai,
i'm using 3 form Search,Edit,Add. After adding records in the database by dataset i'm using Search form to show records, clicking on a particular record shows it's content on the edit form. Now the problem is that i want to update that particular row in the dataset and then reflect changes to the database, How can i do that.
Thanks
Nitin
|
|
|
|
|
i have 2 text files. i need to compare both of them by line by line. if diferent then i have to prompt out msg box.
below are part of my code. i have change my code, because before i compare my string i need the file be able to read and loop. currently i have the problem of looping for all the staterment in the text files.
I mean the first line in the text file to loop with the entire of statement in text file 2. then the second line of the text file loop with the entire statement of text file 2.
thanx.. i know the code is messy the post is confusing, but i really tried my best...
Private Sub Command1_Click()
Dim lblA(1 To 10)
Dim lblD(1 To 10)
Dim k(1 To 3) As String
Dim l(1 To 10) As String
Dim line As String
Dim lines As String
i = 1
Open "D:\Documents and Settings\studentadmin\Desktop\Testing.txt" For Input As #1
Open "D:\Documents and Settings\studentadmin\Desktop\Test.txt" For Input As #2
If Not EOF(1) Then
Input #1, line
k(i) = line
lblA(i) = Trim(Left(k(i), 10))
End If
While Not EOF(2)
Input #2, lines
l(i) = lines
lblD(i) = Trim(Left(l(i), 10))
MsgBox lblA(i) & lblD(i)
Wend
Close #1, #2
End Sub
|
|
|
|
|
There are so many things wrong with this code, I don't know where to start! It desperately needs a complete rewrite. Unfortunately, if anyone here rewrote it for you, your instructor would know you didn't write it!
First, your using a for loop to read a file - don't! Use a counter and increment it for each line that you read. Use the EOF() function you used in your first loop. You'll do this twice (You actually doing this twice - once for each file.)
Next, you don't have a single if statement in this code. Where are you doing your compare?
Lastly, overhaul your design. Open one file, read it into an array, then close it. Open the next file, read it into another array, then close it. Then go through your arrays and compare them, one line at a time. If the lines are different, then show a Messagebox.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi
can any one tell me
1) how can i reach to Yahoo messenger from my vb.net
program and identify add and remove ID and ... and how can i send & recieve
message from my program to/from other yahoo messenger id?
(Port number that yahoo used and ...)
2) how can i make my id that used in my program always on?
i hope you understand what i mean !!!!
Best Regards
M.Khayatan
MkhProgrammer
|
|
|
|
|
These questions are specifc to Yahoo functionality and must be directed to them.
They have nothing to do with VB.NET.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi
Do you somebody know how do,to at clicks right mouse button on filename in list showed shell context menu as in explorer?
Thank´s
PS: Sorry,I´m not form england,so my english isn´t very good.
|
|
|
|
|
You can't use the Shell's context menu in your application since your application is not part of the Shell.
There is nothing stopping you from writing your own context menu though.
Are you using VB6 or VB.NET?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I'm using VB.NET.
Can you halp me,please?
|
|
|
|
|
I´m using VB.Net.
Can you help me?
|
|
|
|
|
|
Thanks but I need the system context menu as in windows explorer.
No my context menu.
|
|
|
|
|
After further research, it can be done. There is a C++ class example here on CodeProject, Use Shell ContextMenu in your applications[^]. I have not found a signle mention of doing this in VB6 or VB.NET.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi, could any one send me the code which i can use to make treeview or list view right to left n left to right i need the code that i can write in vb6.0,
thanks aaaaaaaaaaaalllll
Thanks alot
Metal Man
|
|
|
|
|
There is no known example of such. Most controls for VB6 that (properly) supported mirroring, we're either complete rewrites, in C++, of the controls that your using or we're C++ wrappers that adapted a current control with the proper drawing code.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
ok man, but i dnt understand, d u mean that it cant be done on vb6.0
Thanks alot
Metal Man
|
|
|
|
|
Like I said in my previous post, there are no known examples of it being done.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I've got this snippet of code in an app I'm working on for a fellow CPian:
Private Function bxSend_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) As Boolean Handles bxSend.TextChanged
VS.Net 2003 is telling me that bxSend_TextChanged cannot handle bxSend.TextChanged events because their signatures do not match. Searching the docs reveals that the proper form for bxSend ( a TextBox) is ByVal [Sender] As Object, ByVal e As EventArgs. I can't see a problem here; can you? Suggestions would be most welcome.
[EDIT]
When I changed my function into a subroutine, the error went away. Why?
[/EDIT]
"If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
|
|
|
|
|
It MUST be a subroutine. The caller of your "function", a Windows Forms Text box, expects that the TextChanged event matches its signature of:
Private Sub someFunctionName(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox.TextChanged
It expects NO return value from you and will not handle one if you try and supply it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
In the clear light of morning that makes sense. It didn't late last night. Amazing what a difference a few hours sleep can make. Thanks!
"If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
|
|
|
|
|
In visual c++, you override the << operator, IE if myInstance was of a type of instance that I created, I would override << to be able to do fileio << myInstance. How do I do this for Visual Basic 6.0 where I can do Write #1, myInstance and/or Input #1, myInstance?
Thank you,
-----------------
http://www.zachcalvert.com
|
|
|
|
|
Not support in VB6. There is no operator overloading what-so-ever. This isn't even a feature in Visual Basic.NET 2002 or 2003. This won't happen until the 2005 release. Also, the operator your overloading is a stream operator. There is no such operator in the 2005 release, AFAIK.
You class will have to supply it's own support for converting itself to a string and returning that string. Then your parent code can use that to output to whatever stream you see fit. But, there is no operator that does this for you.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
Does anyone know a way to track a cdrom drives activity ie when a disc is inserted and taken out
|
|
|
|