|
Thanks about your answer,,, Now i asked to you. Which is faster, load data from xml or dataset?
|
|
|
|
|
There is no answer to this. It depends on the amount of data you're talking about and where it's coming from.
|
|
|
|
|
Ok thanks,,,,,
|
|
|
|
|
what is the secret of visual basic how to be a good programmer what are the basics of programming and how we can find or project code and bye.
|
|
|
|
|
doumbouya wrote: what is the secret of visual basic
There's no such thing.
doumbouya wrote: how to be a good programmer
Practice. Lots and lots of practice and reading and practice and reading, repeat ad nauseum.
doumbouya wrote: what are the basics of programming
There is no way in Hell you're going to get this question answered in a few forums posts. Pick up some beginners books on VB.NET and see the answer to your second question.
doumbouya wrote: how we can find or project code
Have you ever heard of "Google"?
|
|
|
|
|
Well said on all points
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
There is a secret
Visual Basic code documents itself elegantly.
1) Used accurate descriptive variable names
2) Put comments on the right side of code statements
3) Comments should explain WHY your doing something
4) Use very short variable names in complex calculations
REMEMBER to code so other programmers can understand your code easily...
TheKevlar
|
|
|
|
|
and you're telling ME this why??
I've been using various flavors of BASIC for the last, oh, 36 years. There's no secret to it.
...and those items you listed apply to ALL higher-level languages.
|
|
|
|
|
doumbouya wrote: secret of visual basic
There is no "secret". Like everything else you get good at something by practice, study, practice, reading books, practice, taking classes, practice, reading articles and more practice. Did I mention that you have to practice?
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
42
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Yep, it's the secret to just about everything...
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Reading, understanding and practice can make you a good programmer in any programming language VB.Net Or otherwise.
|
|
|
|
|
While accessing DB using VB6 component, the xml returned contains no curly braces for Guids.
It was working well in windows 2000.
The new environment is windows 2008 and the code segment that uses is
Set st = New ADODB.Stream
15 cm.ActiveConnection = sAdoConnect
16 cm.Properties("Output Stream") = st
17 cm.Properties("Output Encoding") = "Unicode"
18 If Len(sXMLRoot) > 0 Then cm.Properties("xml root") = sXMLRoot
20 st.Open
21 cm.Execute , , adExecuteStream
22 Set cm.ActiveConnection = Nothing
24 GetCommandResultsXML = st.ReadText
Can any one suggest is there any patch or registry update is there?
|
|
|
|
|
There is no patch or "registry update".
It's simple really. Since VB6 doesn't have a GUID type, you're using strings as GUIDs. You'll have to write the code that handles the case of stripping the curly braces off of data that you write to the database and add's them back when you read the data from the database.
Why?? Because only ADO 2.x and below put the braces in. Everything else today, including the database itself does NOT store a GUID with curly braces. When you finally rewrite this app in .NET, you're going to have to write a seperate application that migrates the data to actual GUID fields and handle converting your string GUIDs in the database to actual GUIDs.
|
|
|
|
|
In VB6.0, I find the grid can load pictures and text from a list of database ACCESS2000, the example you have this?
|
|
|
|
|
You do know that VB6 is dead? Real dead?
Anyhow, try typing[^].
Panic, Chaos, Destruction. My work here is done.
Drink. Get drunk. Fall over - P O'H
OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer
Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett
|
|
|
|
|
As Nagy already mentioned, VB6 is a bit outdated. Which leads to the next question; why are you using it?
Are you extending/modifying an existing application that was written in VB6? If so, you could download the InterOp toolkit, and use VB.NET (and it's DataGridView , as opposed to that MSFlexGrid ) to extend your existing app. That has the added benefit that you'll have to migrate less code to .NET once the system no longer supports the VB runtime.
If you are starting a new app, or trying to learn a new language, you'd be advised to use VB.NET; the compiler and the IDE are free.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Hello Dear
i have a small module to connect my machine to computer by (" Moxa De-311 " if you don't know what the Moxa go to Google )
i am searching by internet to make a program to send and receive data from/to my machine , but the internet like big sea and me like small ship !
can you please send me URL link or small example by VB.net to do this
i am using programming language VB.Net 2008
can you please help me about that
thank you
|
|
|
|
|
The first thing you need to know is what interface your machine uses to connect: serial, USB, network ...
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
matrixmas wrote:
i am searching by internet to make a program to send and receive data from/to my machine , but the internet like big sea and me like small ship !
This[^] one?
matrixmas wrote: can you please send me URL link or small example by VB.net to do this
i am using programming language VB.Net 2008
Ask the company for support; they have the specs, and probably some examples. I doubt that you'll get a complete project in VB.NET though.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
What is the logic of answering srtf scheduling using vb?
modified 25-Jul-12 23:48pm.
|
|
|
|
|
This is an English-language site. Your question does not make sense to Google translate, so please rephrase it in English.
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Member 9307673 wrote: of answering srtf scheduling
Sorry. This is not clear.
|
|
|
|
|
See here[^].
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I have created a Datagrid with Checkboxes. On the click of a button I am trying to find out all the checked rows and process accordingly.
But the issue I am getting is, I don't find the FindControl Method through which I can check whether a checkbox is checked or not. Am I missing something in the code below or is there any other way of getting the result.
I am trying to use the following code:
For i As Integer = 0 To DataGridView1.Rows.Count - 1
ch = CType(DataGridView1.Rows(i).Cells(0).FindControl("gridchkbox"), CheckBox)
Next
But VB is giving an error
"FindControl is not an member of System.Windows.Forms.DatagridviewCell"
I am sorry if it is a very naive question but any help in this matter will be highly appreciated.
I have checked many sites and many books but could not get any solution to this issue.
As I am new to VB .Net I am stuck at this position.
Thanks in advance.
|
|
|
|