|
Kandepu Rajesh wrote: Failed to compare two elements in the array
Wrap your array in an object that looks like the ActiveRecord-pattern, and implement IComparable.
The control you're referring to isn't part of the .NET Framework. If you need further help, I suggest you contact the author.
Bastard Programmer from Hell
|
|
|
|
|
Hai,
I am trying to bind datatable to the superlist control.But it is throwing an error "Failed to compare two elements in the array."
Can anybody please help me on this.....
|
|
|
|
|
Superlist? WHAT Superlist? It's not part of the .NET Framework, at least not with that name.
|
|
|
|
|
Actually..the superlist control is not a .net framework control.It is user control developed and posted by Lee-Paul-Alexander..
The below is the link for his profile..
http://www.codeproject.com/Members/Lee-Paul-Alexander
Can you please go through the control and give me a solution on how to bind datatable to teh control..
|
|
|
|
|
I don't have the time to go spelunking through that code and adding/fixing support for binding.
If you've got a question, post it in the forum at the bottom of the article.
|
|
|
|
|
Below is the code that is actually closing the whole application when clicked on Yes.
But,I want to close the current form and open the new form when the user clicks on X with red mark i.e. close on the form.The code I wrote is :
<pre lang="vb">Private Sub form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Dim response As MsgBoxResult
response = MsgBox("Do you want to close?", MsgBoxStyle.Question + MsgBoxStyle.YesNo, "confirm")
If response = MsgBoxResult.Yes Then
Me.Dispose()
homepage.Show()
Else
If response = MsgBoxResult.No Then
e.Cancel = True
End If
End If</pre>
end sub
|
|
|
|
|
- The code is using language-elements from VB6. You should use the
MessageBox class.
- WinForms don't have a homepage, they got a MainForm. You open other forms from there, and when you close them, you'll see the mainform again.
- FormClosing should only check whether the current form can close, it should not be calling the mainform (nor the homepage)
- I'd suggest to pick up a good book on C# - it would help in understanding VB.NET and would keep you away from VB6-legacy code.
Hope this helps
Bastard Programmer from Hell
|
|
|
|
|
I have a button in my form and on click of that button I am writing this code....
OdbcCommand cmd ;
cmd = new OdbcCommand(abc, cn);
cmd.CommandType = CommandType.StoredProcedure;
cmd.ExecuteNonQuery();
I have made a procedure named abc in database which is returning only one row from login table..So i am just checking that on click of that button my procedure should run but while debugging when i come to cmd.ExecuteQuery() it throws following error..
ERROR [42000] [MySQL][ODBC 5.1 Driver][mysqld-5.0.77-community-nt]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'abc()' at line 1.
So plz tell me what would be the problem..
|
|
|
|
|
Please stop spamming the forums with this same question[^]. You have been given suggestions about resolving this, go and try some of them.
|
|
|
|
|
Sir I have tried all the suggestions...and as u said i have posted in mysql but there was no reply..so i posted here...
|
|
|
|
|
|
nitish_07 wrote: cmd = new OdbcCommand(abc, cn);
Your problem is that you did not read the error message, nor the manual that the error is referring to.
using (cmd = cn.CreateCommand())
{
cmd.CommandText = "EXEC abc()";
cmd.ExecuteNonQuery();
}
I don't want to see this question coming back
Bastard Programmer from Hell
|
|
|
|
|
Good eye!
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
There is another faux pas OP committed. Not reading the MSDN documentation on EXEC / EXECUTE diligently:
[ { EXEC | EXECUTE } ]
{
[ @return_status = ]
{ module_name [ ;number ] | @module_name_var }
[ [ @parameter = ] { value
| @variable [ OUTPUT ]
| [ DEFAULT ]
}
]
[ ,...n ]
[ WITH <execute_option> [ ,...n ] ]
}
[;]
Execute a character string
{ EXEC | EXECUTE }
( { @string_variable | [ N ]'tsql_string' } [ + ...n ] )
[ AS { LOGIN | USER } = ' name ' ]
[;]
Execute a pass-through command against a linked server
{ EXEC | EXECUTE }
( { @string_variable | [ N ] 'command_string [ ? ]' } [ + ...n ]
[ { , { value | @variable [ OUTPUT ] } } [ ...n ] ]
)
[ AS { LOGIN | USER } = ' name ' ]
[ AT linked_server_name ]
[;]
Parenthesis () are only allowed when executing indirectly via a string variable or string literal.
Regards,
Manfred
|
|
|
|
|
I pointed this out to him in his original post.
|
|
|
|
|
Hello everybody! Here I want to ask a question: how to solve the problem of the management of computers in computer classrooms?
1. During computer classes, students’ random operation cause computers malfunction.
2. When we need to install software, we have to install software for every PC one by one.
3. When students need to do graduate design, they are not allowed to have private space in a PC.
Well, could you give me solution? Thanks!
|
|
|
|
|
If all the PC's are the same type, why not use Norton (Symantec) Ghost?
All you need to do is install software on one PC, then create a Ghost Image of that computer. Then use that image to re-image all the other computers in the class room.
It doesn't matter what the students do to their PC whilst in a class session, once it is finished run the multicast to re-image all the PC's and they are back to where you began before your students started "playing around" with the individual configurations.
|
|
|
|
|
Where I teach:
1. Rarely happens although viruses are rampant.
2. Installing IDE's and other tools are part of the learning
3. Students are expected to backup to USB. They do have a docs folder on the network but this causes issues with most development IDE's
Having said that all the standard tools are installed by Admin as per department requirements. All machines are re-imaged every semester.
"You get that on the big jobs."
|
|
|
|
|
Every place I've been to wipes and reimages every workstation every night.
They do this using Ghost or some other imaging system and automated tools to install any software needed.
|
|
|
|
|
HI
I developed a windows form application using c#.and i created a .exe(setup) file.it is running in my system.i want to install on another system which does not contain sql server.i want to install sql server along with the .exe file.how to include sql server during setup creation.how to add my data base to the set up...please help.......
Thanks..
RAHUL
|
|
|
|
|
You can't. Due to licensing, you cannot ship the SQL Server setup in your own setup. It must be installed seperately, which you can get from SQL Server 2012 Express[^].
|
|
|
|
|
|
how to create data backup system code in vb.6.0
|
|
|
|
|
You're probably not going to get an answer to this for a few reason:
1) You haven't specified anything about what you're backing up.
2) You haven't specified anything about what you're backing up to.
3) You're using VB6. There is absolutely no valid reason at all to start new development work in VB6. It's dead and has been for years. VB.NET Express Edition is free and easily obtainable from here[^].
|
|
|
|
|
i want to copy the data that exists on a gridview column to another form 's listbox >>>>
can you help me
|
|
|
|