|
devkranth wrote: have one column in the database
Then you need to normalise the data into two columns.
|
|
|
|
|
Hi Am newbie, i just join government Department,a Programmer before me, wrote an aplication that used this code.Am not used the way he connected to the Database, he was using VB6 and am using VB6 too, so i have to built a new application or maintain this one, there was no documentation for his application. Am use use to the Following Step , please tell me is it safe and worth it to continue with it or should i use this guy's connection style
step 1:
Declare the Connection object
And the Recordset
step2:
In the Form load initialize the connection object and recordset, set the cursor type, location and lock type, provider="SQLOLEDB", connectionstring,open the connection, populate, after job done closed connection. all this Accomplished with ADo. Please give me Advices and link to site so i can read more .
Thanks
Dim rS As New ADODB.Recordset
Vuyiswa
|
|
|
|
|
I'm not sure if you should maintain or rewrite the application (although with no documentation it might be tricky to maintain) but I do have a link to a list of ways to connect to various types of databases.
http://www.carlprothman.net/Default.aspx?tabid=81
hope it helps
There are 10 types of people in the world: those who understand binary and those who don't
|
|
|
|
|
i need VB6 Connection string
Vuyiswa
|
|
|
|
|
hi,
i need to input a number into a text box, check that number in a access database table, then display another number from the same entry in another text box on the same vb form.
i have the connection code i just need the command code, if anyone knows the code to do this can you tell me what it is. it would be appreciated
thanks
|
|
|
|
|
select secondValue from myTable where firstValue=value ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello. I need your advise about how to solve that. I have a network application that uses a socket to receive some messages. The problem is that the message size isn't always the same. The two first digits indicates the size.
My initial idea is reading these two digits and create an array with the rigth size. Is that possible or is a better idea to solve that?
Regards,
Diego F.
|
|
|
|
|
Use a list, or other dynamic array class.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I currently using VB.NET 2005 with control WebBrowser, it work properly, but when the page have link and target new window, I want it open my application, so please help me.
Regard
Socheat
................
|
|
|
|
|
You can tell the control to not spawn children, not sure if this makes the link work in your current browser.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
When the link with target "_blank" it will open IE, so I don't want like that I want it open application.
................
|
|
|
|
|
Thanks for rewording the question. Let me restate the answer. You can set the browser control to not allow popup windows of any kind, but I am not sure if it will navigate inside the main window, or just ignore them.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I have tried but i did not see the property "allow popup", so do you have any comments?
Thanks
Socheat
................
|
|
|
|
|
The link that should open you application. Is that a link in your WebBrowser control or is this external to your app. Like in an email? And is the behavior the same anyway?
Jelle
|
|
|
|
|
I don't understand what you mean? I mention that my application is using WebBrowser it can open any web site buy when the web site contain link with target "_blank" it will open IE automaticly, so I don't want like that I want it open my application for new windows.
Thanks
Socheat
................
|
|
|
|
|
Can somebody tell me is it possible to tell VB .net to read a list of files in a folder and list the thumbnails? Thank you very much...
|
|
|
|
|
Of course it's possible. Image thumbnails are easy, for video, you could use WMP controls and pause them somewhere in playback, or generate a thumbnail.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi there, thanks again. You replied to me a lot. Can you explain a little bit on generating thumbnail? You have any article so that I can refer to it? Thanks again..
|
|
|
|
|
There's a Microsoft dll that can create thumbnails. I am just getting the code for you, it's C#.
The code I am using, I found on the web. Google for MediaDetClass and yuo should find it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
I have a frmlogin form, on the login button click it opens a new frmmain form. But my problem is that even after login, it keeps that frmlogin forminstance along with the frmMain form. If i use me.close() on the click of the login button, it closes the entire application and does not show the frmMain form.
My code is as follows:
Dim objcal As FrmMain
objcal = New FrmMain
objcal.ShowDialog()
Me.close()
Where am i going wrong???
Thanks,
Riz
|
|
|
|
|
go to project -> properties in the main menu. In the application tab, change the close on startup form to false.
Posted by The ANZAC
|
|
|
|
|
A good way to do this is to write your own startup code, instead of having it autogenerated. Then you can show the login form, followed by the main form, if appropriate.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Because you use ShowDialog() the entire application is closed because objcal is not shown as a form but as a dialog. Try using Show() instead of ShowDialog().
--Zaegra--
|
|
|
|
|
In Visual studio IDE, click on Project Menu,then click on Project Properties(last option).Now click on Application Tab.
There r a combo related to shutdown mode. select "When Last form Close" option from combo box.
Hope this help u
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
Ok, i've been programming for years.... I like to think I know what I'm doing a majority of the time.
However, this issue has me stumped.
I have a file with the current structure:
{
Application= {
Windows=test;
Size=100k;
Location=break;
}
System={
Havok=100;
Desk=10;
{
Cars=ford;
{
trucks=chevy;
}
}
}
}
I have a set of utilities that displays different file in my system with a vb app.
Several of the files I have use the same exact format above.
So, I figured I'd read file in with a io stream and display it in a treeview.
I'd have a root node, then off of that I’d have something like the following.
|-application
|-windows
|-size
|-Location
|-System
|-Havok
|-Desk
|-cars
|-trucks
I wrote a recursive function that would search for “{“, and call it’s self each time until it found a “}”.
It worked ok, but built my tree totally in reverse.
ANY IDEAS OR SAMPLES WOULD BE GREATLY APPRECIATED!
Thanks,
Leonard
|
|
|
|