|
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.
|
|
|
|
|
I believe that you need this instead:
ch = CType(DataGridView1.Rows(i).FindControl("gridchkbox"), CheckBox)
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
|
|
|
|
|
Thanks Wes for the reply.
Unfortunately still I am not able to get this FindControl Method. Not sure if I am missing anything. It just declines to come in the dropdown when I give "Rows(i).".
Since I am new to .Net I don't know if it is related to any Namespace or anything of that sort which I may not have added in the Project.
|
|
|
|
|
suppose I have database access:
Dim Conn As ADODB.Connection
Set RS = Nothing
Set RS = New Recordset
Set Conn = New ADODB.Connection
Conn.Open ConnectionStringHere
RS.Open "SELECT Fields " & _
"FROM Table WHERE Whatever = ?"
Conn, adOpenStatic, adLockOptimistic
Datagrid.DataSource = RS
when you perform the insert, delete, add new data, datagrid refresh the data can not although I have to use appearance Datagrid.Refresh new data is entered but does not appear, check the data in have access but do not anticipate new output datagrid except close all open programs to emerging new data on the grid, the operations insert, delete, add items via the command. Execute (strSQL ), why not refresh the datagrid? and how to fix?
|
|
|
|
|
Why are you using VB6? It's dead, unsupported, and teaches you bad habits.
Without you supplying code to do the update, insert and delete operations on the database, none of those operations are going to happen. Nothing ever happens "automagically".
|
|
|
|
|
Dave Kreskowiak wrote: Why are you using VB6? It's dead, unsupported, and teaches you bad habits
I don't know why people are still using it. Seems the poster is from Vietnam, but even then that isn't an excuse to not get VB.NET...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
|
Who is this post aimed at?
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Richard MacCutchan wrote: Who
No one... he is spamming.
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
|
|
|
|