|
Hi Luc
I will learn more all about your mention
Thanks
|
|
|
|
|
Hi I need to perform drag and drop between 2 datagridviews containing the same type of information? I want to drag and drop the entire row not just a cell value. If the user drags and drops a row from the source onto a row in the target then I want the fields to be updated please help... cant find anything online so far?
Mr Oizo
|
|
|
|
|
Drag and drop isn't exactly the easiest thing to understand. Newbie's to it get really confused about which side is supposed to be handling what, what Effects are, how to get the data out of the event args, what Data Formats are, how data is even represented in the operation. In your case, your doing it all inside your own app.
Learn the basics of drag and drop first before you start applying it to your DGV's and posting up DataGridRows into the operation. Start with creating a ListView that is a drop target and can take files dragged to it. Drop a ListView on a form and enable it's AllowDrop property.
Private Sub ListView1_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles ListView1.DragDrop
If e.AllowedEffect And DragDropEffects.Copy = DragDropEffects.Copy Or _
e.AllowedEffect And DragDropEffects.Move = DragDropEffects.Move Then
Dim items As String() = DirectCast(e.Data.GetData(DataFormats.FileDrop, True), String())
For Each item As String In items
Dim lvItem As New ListViewItem(item)
ListView1.Items.Add(item)
Next
End If
End Sub
This is just the Drop side of a Drag and Drop. Once you completely understand every line of this code, you can start experimenting with starting your own Drag.
Why all this step-by-step crap?? Because it's what confuses everyone who starts out. They can't keep the two sides of a Drag and Drop straight in their head, and therefore can't keep it straight in their code either.
|
|
|
|
|
Hi All!
I am writing plugin to outlook 2003.
I want to add to main toolbar "button with menu",
such as button "New" and "Send\Receive".
But I can not find examples how to do it.
Please, suggest me the way for solving my task.
Best regards,
Nikolai
PS: language: vb6
|
|
|
|
|
Hi
I am trying to catch the user's internet web traffic. If I can catch the web traffic, I want to block the user seeing the site.
Please send me your recommendations.
thanks in advance
Cemal
|
|
|
|
|
Possible solutions:
* Set up a proxy server and flow all traffic through that.
* Create an NDIS driver which blocks the packets as they flow in and out of the network card.
|
|
|
|
|
So which one of us got him??
I think I shot him first from right over there ---->
|
|
|
|
|
This is called a proxy server. You don't "intercept" the traffic on the client machine. The client machines browser asks a proxy to go get a page from a URL for it. The proxy server implements the rules as to which wites are OK and which are not.
|
|
|
|
|
Just write an ACL to filter websites...
|
|
|
|
|
thank you very much for trying to help me;
however, I do not want to create proxy server.
I need a way to do this from vb.net. I will go ahead and reserach what is ACL is.
thank you all for trying.
|
|
|
|
|
addhandler is a class?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
No, it's not. It's a statement.
|
|
|
|
|
But everyone wants to make a statement these days. It defines who they are!
|
|
|
|
|
Please consider using more meaningful post titles than 'Please help'.
Read the forum rules and hopefully you'll understand what I'm talking about.
Paul Marfleet
|
|
|
|
|
How is it that you ask many questions to these forums each day, and you still have no idea how to intelligently form one, or even to offer a meaningful subject ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Sonia. I really think you need help from this[^] article. It might help you to understand forum etiquette a bit better. And please - buy a book; there are many good beginners books that will help you immensely. CodeProject is not a programming class.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
How do I convert a binary string to an integer? For example, "10100101" is the number 165.
I know I could right my own routine, but is there already a built-in way to do this in .NET?
|
|
|
|
|
Convert.ToInt32("10100101", 2) -> 165
|
|
|
|
|
Hi all,
I am a noob when it comes to VB. I have created a ssis package. It generates a text file called "MonthlyExport123.txt" (file path would be: "c:\Report\MonthlyExport123.txt"). Now what i want to do is this (i think i want to do it in VB as this is the option i have in SSIS) i want to do rowcount on the lines in this text file. if the lines are less then 1 (because there is a heading) i want to delete the file.
BUT i dont know how to rowcount a file???
Please help
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
Is it possible to do this in a batch file maybe??? I rename the file in a batch file... so is it possible to count the rows in a batch file and then delete it if rows are less then 1 in the batch file before i rename the text file???
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
Batch file?? You could probably hack somethline together, though this is too easy to write yourself. Just use a FileStream and a vairable to increment. Read the file line by line and increment a counter for each line.
Imports System.Io
.
.
.
Public Shared Function CountLinesInFile(ByVal filepath As String) As Integer
If File.Exists(filepath) Then
Using fs As New StreamReader(filepath)
Dim count As Integer = 0
While Not fs.EndOfStream
fs.ReadLine()
count += 1
End While
Return count
End Using
End If
Throw New FileNotFoundException(filepath)
End Function
|
|
|
|
|
Thank you.
I will put it to good use
Enjoy the rest of your day.
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
Thank you, i tested it and it is working fine. Thank you for your time
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
i want to design(program) for a internet cafe that computes In/Out of each workstation.
at the same time, it can shutdown, restart, log off and lock the workstation? kindly help me pls?
what should i do? what code should i write? help me pls
|
|
|
|
|
The first part is easy, just use a timer.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|