|
Thanks for all the comment. i know that it is bad to use checkforillegalcrossthreadcalls = false but this is really the last resort as i still cant understand multi-threading. Next, port.read(bytearray, 0, bytetoread), it is bytearray and a few line above should be Dim bytearray as byte.. Sorry for the typo error. Noted for the encoding.ASCII.getstring. thanks for the advise. For the 2nd last line i don't get u.. Care to explain??
|
|
|
|
|
I need a component which can build sql queries and supports drag&drop while building them also highlights the syntax.
I tried to google with these keywords "SQL Query Designer, Analyzer, Builder" but no luck.
|
|
|
|
|
We use these guys - the paid version has a MUCH better SQL parsers. ActvieQuery[^]
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
You can try to use Ms Access, it allow you to do drag and drop for tables, while you can still view the SQL syntax,
|
|
|
|
|
hi..
if u r using sql server u have t facility to make query. t thing u hav to do is to select t tables link t tables and pick t fields. t query is ready
Rgrds
Ageesh
|
|
|
|
|
I have tried googling this, but cannot easily find what I require, so I am enquiring of the intelligentsia...
Does anyone know of a website that will give a tutorial on creating, filling, accessing, updating and getting a report from MySQL using VB?
Thanks in advance.
------------------------------------
"Children today are tyrants. They contradict their parents, gobble their food and tyrannize their teachers. I despair for the future."
Socrates 400BC
|
|
|
|
|
Dave,
Not sure what you are trying to achieve, and I have no experience of MySQL so I maybe talking out of my ****, but I'm pretty sure you need to use the System.Data.OleDb namespace. Other than that everything should be the same as if you were using the System.Data.SqlClient namespace.
The only other difference to be aware of is that some SQL Commands are and syntax differ from MS SQL and MySQL.
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
VB.NET makes it really easy to get started. What you want to do is build yourself a table adapter and hook some of the GUI controls to it. The only thing that makes MySQL different from any other database is the specifics of the connection string. Once your connected, you really are insulated from the database; you shouldn't care whether it is Oracle, SQL-2005 or MySQL. This is a good thing.
Check this article out from MSDN ...
[^]
|
|
|
|
|
Hi
I have a form, and in this form I have a web browser control, which displays word documents as HTML. This application I have developed runs on my intranet, but what I like to know is, if I hold down the left button of my mouse, and drag it over some text, how do I access the text that has been selected?
This has been baffling me for days, I have tried form events - mouse down and mouse up, but these don't get fired when I run it in debug.
I don't know what I am doing wrong here, but would someone, please, please, tell me what to do? I am really stuck!!!
Thanks
|
|
|
|
|
The browser is not getting the events, Word is. I'm not sure how you get around that, the way you're doing things.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Since you're running Word in a web browser, there are no events to get. There is no way to get at the text that is selected in Word.
|
|
|
|
|
I am in a scenario where I have made a class library (*.dll) file.
At some point I need to raise an event( from within a class of the *.dll library) of a class(Like Event in the Class shown Below) which is outside or out of the scope of the *.dll library. How do I do it?
Do I need to add interface in that particular class of the *.dll library and implement in the calling class or any technique?
Does anybody have some idea?
Public Class SomeClass
Public Event SomeEvent
..........
End Class
|
|
|
|
|
There's no magical difference between events in a Form and events in a class library. A Form is just another class.
The code snippet you've posted is correct. You just have to keep going and flesh it out with an Event Args class of your own making and add some code that raises the event.
Public Class SomeClass
Public Event WorkCompleted(ByVal e As WorkCompletedEventArgs)
...
RaiseEvent WorkCompleted(New WorkCompletedEventArgs(someValue, someOtherValue))
...
End Class
Public Class WorkCompletedEventArgs
' Expose Public properties that will
' return values to the subscriber.
' You might want to include a New (constructor)
' that set's these values instead of just
' relying on an empty constructor.
Public Sub New(ByVal value1 As Integer, ByVal value2 As String)
Me.myValue = value1
Me.myString = value2
End Sub
End Class
modified on Tuesday, April 28, 2009 12:38 AM
|
|
|
|
|
I've been given the job to update a legacy VB app to include image display on a form. I'm trying to find out if VB 2005 has built-in support for displaying these image types: jpg, gif, bmp, and png. Or do I need to get a third-party image library?
Thanks!
|
|
|
|
|
Look into the PictureBox control. The Image property should be fairly self-descriptive, and Image.FromFile will give you the image itself. However, this will lock the file - if you don't want this effect, use Image.FromStream instead
|
|
|
|
|
|
Well, think about it logically. You start with an amount, and you need to split it down. You have only certain denominations available, right ? So, if you have $53.32, what's the highest denomination that goes into that ? If it's $20, then you would have $33.32 left. So, what's the highest that goes into that ? $20, so you now have $13.32. That's the sort of process your code will go through, subtracting whatever amount represents the biggest note or coin that can be put on the pile.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
The main point is that your instructor wants you to learn about floating point and integer math. Check out this brute force approach to your problem. You would have to extend it to complete your project, but you should get the idea.
Dim num10 As Integer ' Number of $10 bills
Dim Num20 As Integer ' Number of $20 bills
Dim dAmt As Double ' Amount of money to be converted
dAmt = 50.35
Num20 = Int(dAmt) / 20
dAmt = dAmt - (Num20 * 20)
Num10 = Int(dAmt) / 10
MsgBox("Number of $20: " + CStr(Num20) + " Number of $10: " + CStr(num10))
|
|
|
|
|
Hi all
I need to manipulate the standard openfiledialog tool.I need it to respond and handle an event when i change the file type.
I will have a couple of file type choices in standard openfiledialogbox and when i click to sql file type ,i need an other screen pop up.
How can i do that?
Thanx
Sinan
|
|
|
|
|
|
Myprogram run very slow. I see process(Sqlservr.exe) in task manager occupy space very hight(> 1 Ghz). How to refresh SQL server in VB.NET code.
hello
|
|
|
|
|
your best bet is to write more efficient SQL. You may want to also get a more up to date database server, and perhaps buy some RAM
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
myram about 2.0 Ghz but important i want question why space of SQL very hight and more increase.
hello
|
|
|
|
|
Because your SQL sucks, like I said.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
I figured I would check in to see if there were any decent questions to read/answer today - I instantly got a headache after reading the OPs question.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|