|
In the windows form, I have a datagrid which is binded with the dataset. How can I know the rows number of the datagrid after I load the datagrid.
|
|
|
|
|
If you are binded with Dataset,it is easy to get number of rows.
datasetvariable.Tables("Tablename").rows.count.it will work. here you will get more information. http://www.syncfusion.com/FAQ/WinForms
|
|
|
|
|
i'm new to .NET so please bare with me...
i have a library full of large jpg that i'm trying to put into a web server but they are too large (i have them in large format for printing purposes)
is there a way to create a new image file in a different size?? how would i go about this. basically i want to create a program that will go through all the directories and create a copy of the images that are half the size to post on the web.
thanks
|
|
|
|
|
Hi, I have a few forms of pocket pc. How can I transfer variables from one form to another? thank you!
|
|
|
|
|
I'm using VB6 to write a report and some of the reports's controls are being formatted with an underline at run-time even though it isn't in their font property or visible at design-time. Can anyone help?
If it's broken, I probably did it
bdiamond
|
|
|
|
|
Hi folks... Looking for an answer if you have one please.
I'm currently writing an game using vb.net. Its not the most graphical game on the planet but it's steadily growing... My question relates to size.
I already have 18 forms with over 5 Mb's of artwork and sounds. When I compile the program it comes to about 1.4 mb's (I'm keeping the graphics and sound separate for the moment.)
As I'm about a third of the way through this small epic I was wondering about the EXE. As it add new forms it grows (not surprising) . But what are the limits (if there are any).
Most modern game files are small 1mb ish loaders that feed off large data files. Should I be looking this way or am I ok to carrying on increasing the size of my ending EXE.
All the best Coops.
|
|
|
|
|
coopsqc wrote:
But what are the limits (if there are any).
Don't worry - You've got a long way to go before you hit these. You're more likely to need to worry about the amount of memory installed on your user's system first.
coopsqc wrote:
Most modern game files are small 1mb ish loaders that feed off large data files. Should I be looking this way or am I ok to carrying on increasing the size of my ending EXE.
I would recommend you would be better splitting it up in to logically separate DLLS so you can load and unload them as the game progresses and keep the runtime memory overhead down. As you're keeping the graphics and sounds separate that at least means, as I see it, these are loaded on demand rather than residing in memory for the duration so it keeps the memory overhead down a little bit also.
EuroCPian Spring 2004 Get Together[^]
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
|
|
|
|
|
Colin Angus Mackay wrote:
I would recommend you would be better splitting it up in to logically separate DLLS so you can load and unload them as the game progresses
Unloading a .NET assembly isn't an easy thing to do. Even if you load it into a separate AppDomain, this will hurt performance, as all calls will need to go through remoting.
The resulting code can be much slower than loading everything on memory.
Perl combines all the worst aspects of C and Lisp: a billion different sublanguages in one monolithic executable. It combines the power of C with the readability of PostScript. -- Jamie Zawinski
|
|
|
|
|
How can I use an ActiveX (non-visible during runtime) created in Embedded VC 3.0 with VB.NET? The COM tab in References menu is not available for platforms like PocketPC2002.
Thanks
|
|
|
|
|
Hi,
I am new to VB.net and I am writing an application where I would like a user to be able to click on a button on a toolbar (which is on a parent form) and then be able to click on a child form to place a .gif or .jpeg
I have no idea where to start and haven't been able to find much of use on the net.
Any suggestions would be gratefully received.
|
|
|
|
|
when the user clicks on the child form, what happens? they place an image there? or you want to display an image on the form where they click?
------------------------
Jordan.
III
|
|
|
|
|
Jordan,
I want them to place an image on the form. I have been trying to work out ways of doing it by piecing together info I have learned from some GDI+ tutorials but to no avail.
Pete S
|
|
|
|
|
sry.. im sure u can get much better help from sum1 else, its just a matter of waiting a lil', hopefully.
what image will they be placing? where is this image coming from? could you maybe post some code relating to the event?
------------------------
Jordan.
III
|
|
|
|
|
Hi
I am looking for simple source code that allows me to get E-mail from an ISP onto a PC and strip it and re-build it ( I need to find certain text in the message body and copy it into the subject line.) The program then needs to act as a server and allow another program to use POP3 to retrieve the mail, any ideas?
Cheers
Eugene
|
|
|
|
|
Hai,somebody can help me to write a search function in my program using vb6
|
|
|
|
|
To search for...? In what -- a database? -- in text files? -- in all files?
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
Lim Goh Tong wrote (via email):
Search in database. The records we search for must display in datagrid. can u send me same example of program?
That is an extremely broad, general question, and as such, is very difficult to answer in this kind of forum. Assuming that you are accessing the records from some ODBC, OleDb or SQL data source, you would typically design a form on which a user would enter search parameters, then, since this is VB6, build a query string to execute on an ADODB command, return a record set and bind the record set to a grid. The high-level, general nature of your question makes me think this is something you may not have done before. I suggest searching for general ADO programming samples and tutorials on VB-related web sites as a starting point; then if you have more specific questions related to a particular sample or some of your own code, post it back here.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
Brendon,
I want to make sure we're still talking about Visual Basic 6; your earlier example and code led me to this conclusion, but if we are really talking about Visual Basic.NET, then there is much different approach.
The code in the VS.NET magazine article (here[^]) was an excellent example of running a query and binding it to a MS Hierarchical Flex Grid on a Visual Basic 6 form. If you boil it down to the most basic elements, it looks like this:
Dim cnn As ADODB.Connection
Dim rs As ADODB.Recordset
Set cnn = New ADODB.Connection
Set rs = New ADODB.Recordset
cnn.Open "..." ' details omitted
rs.Open "SELECT * FROM Customers", cnn, adOpenKeyset, adLockOptimistic
Set MyFlexGrid.DataSource = rs
However, I get the feeling from your recent inquiries (via email) that you are also concerned about the SQL syntax for joining a Customer Orders table on one or more Customer records. That would be fairly easy to produce, but I have no idea what your table looks like, so I can only offer the most basic suggestions, if that is the case. Let me know, OK?
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
use the MSXML Library:
this is a sample code :
Private Sub Command1_Click()
Dim root
Dim xmlDoc
Dim child
Set xmlDoc = CreateObject("microsoft.xmldom")
xmlDoc.async = False
xmlDoc.Load ("books.xml")
'Set root to the XML document's root element, COLLECTION:
Set root = xmlDoc.documentElement
'Walk from the root to each of its child nodes:
For Each child In root.childNodes
MsgBox child.Text
Next
End Sub
Private Sub Command2_Click()
Dim ElemList
Dim xmlDoc
Set xmlDoc = CreateObject("microsoft.xmldom")
xmlDoc.async = False
xmlDoc.Load ("books.xml")
Set ElemList = xmlDoc.getElementsByTagName("AUTHOR")
For i = 0 To (ElemList.length - 1)
MsgBox ElemList.Item(i).xml
Next
End Sub
Private Sub Command3_Click()
Dim xmlDoc
Dim root
Dim newElem
Set xmlDoc = CreateObject("microsoft.xmldom")
xmlDoc.async = False
xmlDoc.Load ("books.xml")
Set root = xmlDoc.documentElement
Set newElem = xmlDoc.createElement("PAGES")
root.childNodes.Item(1).appendChild newElem
root.childNodes.Item(1).lastChild.Text = "400"
MsgBox root.childNodes.Item(1).xml
End Sub
that reads this XML:
<?xml version="1.0" encoding="utf-8" ?>
- <COLLECTION>
- <BOOK>
<TITLE>Cosmos</TITLE>
<AUTHOR>Carl Sagan</AUTHOR>
<PUBLISHER>Ballantine Books</PUBLISHER>
</BOOK>
- <BOOK>
<TITLE>Catwings</TITLE>
<AUTHOR>Ursula K. Le Guin</AUTHOR>
<PUBLISHER>Scholastic</PUBLISHER>
</BOOK>
- <BOOK>
<TITLE>Home Town</TITLE>
<AUTHOR>Tracy Kidder</AUTHOR>
<PUBLISHER>Random House</PUBLISHER>
</BOOK>
</COLLECTION>
|
|
|
|
|
I have just create my project, now i want it run in windown nt service at start my windown.
please give me the VB code.
Thank's you
|
|
|
|
|
VB6: I suggest the NT Service Toolkit from Desaware.
VB.NET: there are several examples in the MSDN library, and perhaps here on CP as well.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
Hello again. I'm back with another random and mostly useless request; anyone have or know of a component for VB.Net that captures feed from a webcam (through a USB port if you need to know)? I'm thinking it would be a window within the form, like the browser control, and the video would play on it. If there is no such component, then I could use some source code (maybe I'll code my own component ).
Thanks for the help!
As I sit here, I contemplate the last words of Socrates: "I drank what?".
|
|
|
|
|
Go to the site of the webcam's company and see if they have a developer site or an SDK. Logitech's is http://developer.logitech.com[^]. You can fill out a small survey, then download the SDK which will come with the stuff you want.
RageInTheMachine9532
|
|
|
|
|
Mine's actually an Intel, but I'll check out their developer site. Thanks for the help!
As I sit here, I contemplate the last words of Socrates: "I drank what?".
|
|
|
|
|
Ewwww... Intel doesn't have an SDK for their cameras. What they do have is links to an Open Source, on SourceForge, Computer Vision project called OpenCV. They also direct you to use Microsoft's DirectX, Video for Windows SDK, and Device Driver SDK. That's one of the reasons why I didn't pick Intel's hardware for a webcam.
RageInTheMachine9532
|
|
|
|