|
I have seen u manytimes in discusiion.i think u wanna play with guys.what u ask.didin't u know that its possible,dont waste timiming ask usefull think ,if u really u dont know try to do it and have problem come to discussion
Ishak
|
|
|
|
|
|
Thank you for your reply (must be a bad day?).
|
|
|
|
|
Yes. It is, as i'm developing in both with my single OS.
|
|
|
|
|
Make sure you install Visual Baisc 6 (or Visual Studio 6) FIRST! Then, patch it up with Service Pack 5 or better. Then install Visual Studio .NET! If you don't do this, you'll screw up the VS.NET installation a bit. But, this is covered in the ReadMe's for VS.NET.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Can you tell me how many rows datagrid can contain ! Pls
Can you tell me how many tables dataset can contain ! Pls
can you tell me how many rows DataTable can contain ! Pls
|
|
|
|
|
Theoretically it's an infinite number, I believe.
Theoretically it's an infinite number, I believe.
Theoretically it's an infinite number, I believe.
Of course this will all depend on the resources available to your computer. If you run out of memory, your variable obviously isn't going to get any bigger...
Why do you ask?
_____________________
Don't take out the Magic Pen,
Don't draw on the Infinity Board
- Neil Young
|
|
|
|
|
I have built a program by Vb.net. It collect all information in a table of Oracle Database into dataset and datatable and datagrid. So I can write this information into foxpro file. If dataset, datagrid and datatable can not contain all information. The foxpro file will be missed data. This tables in my database contains a lots of rows. Now, It contains about some milions rows. But in the future, I thinks it will become bigger. This records are call data records of CDMA.
|
|
|
|
|
Well I'm pretty sure that there's no theoretical limit to the sizes of any of these structures, it just depends on how the rest of your application can handle the sheer processing requirements.
Anyone else know more?
Regards,
Kutz
_____________________
Don't take out the Magic Pen,
Don't draw on the Infinity Board
- Neil Young
|
|
|
|
|
Anyway, thanks you alots. If you know more, pls, tell me.
I am looking forward to receiving nice information from you !
|
|
|
|
|
Well, a datagrid is simply a container to show the contents of a dataset, so the limit will be the dataset.
And I don't think datasets have a theoretical size limit.
_____________________
Don't take out the Magic Pen,
Don't draw on the Infinity Board
- Neil Young
|
|
|
|
|
In theory, there is no limit, other than available memory and the size of an index pointer.
But, you don't have to read in the entire datatable all at once. If you use DataReader's, you can read each record, one at time and don't have to care about the size of the database.
Retrieving Data Using the DataReader[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks you. I thinks that a good idea.
|
|
|
|
|
Greetings,
As indicated in the title I am trying to work out how to raise a keypress event in code, something I cannot find an article or tutorial on anywhere!!
Which, to me, would be counter-inuitive as it would seem to be incredibly simple.
Any help would be greatly appreciated.
Regards,
Kutz
_____________________
Don't take out the Magic Pen,
Don't draw on the Infinity Board
- Neil Young
|
|
|
|
|
It's not counter-intuitive, really. If you have to that you need to execute from two of more different functions/methods, move that code to it's own function/method and call it from wherever you need with whatever parameters you need. It's much easier than trying to figure out how to create event parameters from scratch.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Sorry mate, but your comment doesn't help me at all. I found it a little hard to understand actually.
It's not about catching or handling an event, but simulating a user's keytouch. This is because there is no way to open a dateTimePicker's calendar dropdown from code (or at least none that I can find) so in order to make it appear, you could raise a keypress event which would then be automatically handled by the control and make the calendar appear.
Is this any clearer?
_____________________
Don't take out the Magic Pen,
Don't draw on the Infinity Board
- Neil Young
|
|
|
|
|
Don't know if this is the best way to do what you want, but...
Find the control window handle using the FindWindowEx API. Then use the SendMessage API to send it a message that simulates a left button mouse click.
The tricky part is that a DateTimePicker behaves differently depending on where you click on it. But the control itself only exposes a single hwnd for the entire control.
So you will have to figure out the correct message parameters to make it think you clicked on the drop button instead of the in the date text area.
Run an application that has a DTPicker control, then use the Spy++ tool to log WM_USER and all mouse related messages, and study the results. Then it is matter of tinkering with the message parameters until you find what works.
Good Luck ...
Robert
|
|
|
|
|
Cheers for your help, Robert.
I'm not 100% on how to use FindWindowEx just yet, but a little net research will probably clear that up. I get the general idea, but how to use some of the parameters will take a bit more thinking.
Cheers mate,
kutz
_____________________
Don't take out the Magic Pen,
Don't draw on the Infinity Board
- Neil Young
|
|
|
|
|
Hi...
I am a new user to VB.net so bear with me. When I send the focus to a control, the cursor then appears (flashing) in the control. Perfect! However, the mouse pointer also disappears when this happens. Is there a way using code to have the mouse pointer re-appear (Get focus?) prior to the control losing focus? I have tried to reposition the mouse but it does not appear to work. Must I...
Repaint the screen?
Redraw the mouse?
Thanks for the help
Pat
|
|
|
|
|
The mouse doesn't disappear for me. Could this be a setting in your Mouse Control Panel?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi Dave
I am glad that you are not experiencing the same problem. But my question remains. Do you know how to re-position the mouse using code?
I have tried the following but it does not appear to help.
Me.MousePosition.X.Equals(78)
Me.MousePosition.Y.Equals(154)
Explanation
I have three Controls:
Control1 is a Text box.
Control2 is a Dropdown box.
Control3 is a Command Button.
Control1 is visible and 'layered' overtop of Control2 which is invisible. On-click of Button the focus is sent to Control1. Upon typing a textual filter, in Control1, I use the 'Leave' event to perform the following. Control1 becomes invisible, Control2 becomes visible and drops down displaying the filtered results of the dataset. All works very well.
Unfortunately (and here is where my problem presents itself) my mouse pointer 'gets caught' inside the Control2 Dropdown. It will only move within the Dropdown choices.
However, if I move my mouse ever so slightly prior to leaving Control1, the problem does not manifest itself. I have tried sending the focus away from Control1 as the first statement in the 'Leave' sub, but it still gets caught. This is why I thought perhaps I should move my mouse ever so slightly using code rather than sending the focus somewhere else. Using this logic, the mouse pointer would reappear (similar to if I manually moved the mouse) prior to the pressing of the Tab Key and calling the Leave Sub.
Any help would be appreciated.
Thanks
Pat
|
|
|
|
|
capilano wrote:
Me.MousePosition.X.Equals(78)
Me.MousePosition.Y.Equals(154)
Well, that's no going to work, because MousePosition is a ReadOnly property. The .Equals() that you used just compares the number in parenthesis to the mouse position value and returns True or False if they are equal.
You might want to try Me.Invalidate(True) in the Leave event to force the entire form to paint itself, child controls too. Keep in mind this is not a solution, but used to test a theory. The mouse cursor should appear on top of everything after the paint.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have an ADO control on my program and I would like to do a "find" of a criteria within a specific field in the database. I am using .mdb file for my database.
Please let me know if you have any simple examples of this.
Thanks,
-=BHBADZ=-
|
|
|
|
|
Search the MSDN, and you will find examples.
|
|
|
|
|
I have 2 computer i a LAN, witch is connected to the internet.
Comp1. Ip = 192.168.0.195
Comp2. Ip = 192.168.0.163
My router is set up to forward port 12000 to comp2.
Comp1 acts as a server. It sends data using UDPClient.
<br />
'Uses the IP address and port number to establish a socket connection.<br />
udpClient = New UdpClient<br />
Dim ipAddress As IPAddress = Dns.Resolve("my internet IPaddress").AddressList(0)<br />
Try<br />
udpClient.Connect(ipAddress, 12000)<br />
Catch ex As Exception<br />
Console.WriteLine(ex.ToString())<br />
End Try<br />
<br />
udpClient.Send(Data, Data.Length)<br />
Comp2 acts as a client. It receives data using UDPClient.
<br />
Dim receivingUdpClient As New UdpClient(12000)<br />
Dim RemoteIpEndPoint As New IPEndPoint(IPAddress.Any, 0)<br />
<br />
Do<br />
Try<br />
Data = receivingUdpClient.Receive(RemoteIpEndPoint)<br />
...<br />
....<br />
Comp2 doesn’t receive anything.
BUT... if Comp1 is setup like this
<br />
'Uses the IP address and port number to establish a socket connection.<br />
udpClient = New UdpClient<br />
Dim ipAddress As IPAddress = Dns.Resolve("192.168.0.163").AddressList(0)<br />
Try<br />
udpClient.Connect(ipAddress, 12000)<br />
Catch ex As Exception<br />
Console.WriteLine(ex.ToString())<br />
End Try<br />
<br />
udpClient.Send(Data, Data.Length)
Then it works.
The only changes I made is, instead of using my internet adr. I used my locale adr.
Any idea why???
|
|
|
|