|
there is an example on codeproject, it's done in C#, but you should be able to convert it with a conversion to vb.net tool, the link is http://www.codeproject.com/KB/graphics/MPEGFunction.aspx[^]
<font color="blue">Csharp</font> me = (<font color="blue">Csharp</font>)Dynamic_Sysop; <font color="#008000">// My Signature.</font><br><font color="#008000">$twins</font> = <font color="#008000">me.twins</font>(<font color="#800080">"Taylor"</font> , <font color="#800080">"Delta"</font>); <font color="#C0C0C0">// My twin daughters.</font><br>echo <font color="#008000">$twins</font>;</br></br>
|
|
|
|
|
Hello every one
I had a VB6 application which we migrated to VB.net 2005 Express
Now after removing all the other VB6 dependent components we are left with
“Microsoft ActiveX Data Object” which is ADODB.dll.
I was using a ODBC connection, was having a DNS
Can any one tell me the most which type of “.net” connection I use so that there is not much change in the code (I have centralized connection and record set), where all I am doing a database operation
If some one knows about a link plz do let me know
I tried using Npgsql i am getting following error
Failed to create component 'NpgsqlConnection'. The error message follows:
'System.IO.FileNotFoundException: Could not load file or assembly 'Mono.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The system cannot find the file specified.
File name: 'Mono.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756'
at Npgsql.NpgsqlConnection..ctor(String ConnectionString)
at Npgsql.NpgsqlConnection..ctor() in c:\Desenvolvimento\Npgsql1.0-src\Npgsql\src\Npgsql\NpgsqlConnection.cs:line 116
WRN: Assembly binding logging is turned OFF.
Can any one plz help me
Regards
Nishkarsh
modified on Saturday, February 02, 2008 6:59:00 AM
|
|
|
|
|
I would recommend OLEDB and have found this site to be very usefull for connection string examples
Clickety/[^]
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
HI
Thanks for ur reply
I think it will be good idea if I explain my situation clearly.
The application is designed to access a centralized DB server and all the clients will have there own copy of the application
In my Vb6 application I was able to connect to the DB using ADODB connection and ODBC data source / DSN, this gave me freedom that no matter where the DB server is located I can just configure the DSN in each client machine and the application will work
Now when I want to do the same with .Net I am not able to do the same.
I had tried using Npgsql and Data.OleDb.OleDbConnection
But I am not able to succeed
Can u plz give me an idea how to do it, any sample or reference if possible?
Regards
Nishkarsh
|
|
|
|
|
I want to create a package which captures the print command given by the user ie how much page is given for printing,which PC has given the print command,wheather it is color or black and white etc.if anybody knows it plz let me know,thank you.
coolsatty
|
|
|
|
|
|
Dear All...!
Is there anybody know, how to make the form that cover all windows feature such as start buttom, tray and windows tab.....?
Thank you
Best Regards,
Ahmad Rifai Yusuf
modified on Saturday, February 02, 2008 7:09:11 AM
|
|
|
|
|
Yes, but why would you want to??
What you're asking is a VERY large project. Explaining it in a forum post is really not possible. It would be more like an entire book.
So what little part are you having a problem with?
|
|
|
|
|
How to create Windows Scheduler to data collection program as well as using a Timer control.
|
|
|
|
|
Did you even look into the suggestion Steven gave you or did you just reformat his answer . You really have to do some of the work yourself.
Windows sheduler is part of the operating system - look in the help file and follow the examples!
A timer control is part of VB.net and can be used to create a scheduling application. Check out the help file, search on this site, try google for vb.net timer control.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
am new to VB.Net. hope i can have a friend to take me through.
Then also, i was tring to ConsoleReader in my java assignment but anytime i compile it gives me an error. ConsoleReader console = new ConsoleReader(System.in); any help
|
|
|
|
|
We're all pritty friendly and helpful here, as long as you don't take the P!$$. We will happly help you resolve issues and offer advice, but do not expect anyone to do your work for you.
With regards the Java question, you would be better to ask it in a Java forum.
Steve Jowett
-------------------------
It is offen dangerous to try and see someone else's point of view, without proper training. Douglas Adams (Mostly Harmless)
|
|
|
|
|
Hi everybody,
I am creating IAMR project.That project need Auto scheduler to enable automatic/unattended data collection during night hours.How to create the windows scheduler in vb.net.Give me your ideas to about this concepts.
|
|
|
|
|
You could aways use the Windows Scheduler to launch your data collection program or what about using a Timer control.
Steve Jowett
-------------------------
It is offen dangerous to try and see someone else's point of view, without proper training. Douglas Adams (Mostly Harmless)
|
|
|
|
|
This parameter of Database connection string is pointing to my local drive like C:\Invoice\myData.mdf
on teh development machine. How can i change this to reflect the hosting server path?
t.aransiola
|
|
|
|
|
This parameter of Database connection string is pointing to my local drive like C:\Invoice\myData.mdf
on teh development machine. How can i change this to reflect the hosting server path?
|
|
|
|
|
This is just a guess, but have you tried a UNC path? e.g. \\HostingServer\CDrive\Invoice\myData.mdf
Steve Jowett
-------------------------
It is offen dangerous to try and see someone else's point of view, without proper training. Douglas Adams (Mostly Harmless)
|
|
|
|
|
Hi all,
How can Read the Error Line number from an Exception without using ex.message.substring.
Thanks
Dana
|
|
|
|
|
AFIK its a single string not a collection of strings like ina textbox so you can't read the line number.
|
|
|
|
|
Hi,
for Exception exc:
1. exc.Message does not contain a line number
2. exc.StackTrace contains a multi-line string with the stack trace, which may or may not
contain linenumbers (depends on where the problem is, the amount of debug info available)
3. may have an inner exception where the actual problem occured
4. exc.ToString() returns a string that contains all available information, including the
info on inner exceptions
If you want to extract a line number, you will need to perform string operations,
such as IndexOf() and SubString().
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Hi,
Can we have a common exception handler for any error accured in any form?
Just like we have in asp.net i.e. Global.asax, in that we can write common code for any error that accurs through out application.
Help me out.
Thank you.
|
|
|
|
|
Yes, I wrote my own error handler which when my program captures an exception, I then pass it to my Exception handling class, which includes the option to email details of the exception as well as present a friendly message to the user.
Steve Jowett
-------------------------
It is offen dangerous to try and see someone else's point of view, without proper training. Douglas Adams (Mostly Harmless)
|
|
|
|
|
Take a look at the ApplicationDomain.UnhandledException event.
|
|
|
|
|
As long as you're using this just for display purposes, it's OK to do. Realistically, you should catch the error as close to the possible source as possible so it can be properly handled (cleanup, retries, etc.) since that's the only place where you will actually have any meaningful context around the error. Don't use a global exception handler like this for anything other than unhandled exceptions.
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
I am developing an application using VB.Net. There are two pages in my application:
1. First page is a search results page.Search result is displayed in a grid. First column of the grid is User Id which is a linkbutton. On click of some User Id it will redirect to selected user details page.
2. Selected Users Details page is second page. This page contains 5 tabs. Body of each tab contains a link called Back to Search Results.
On click of this link i want to redirect to search results page. Search results should be displayed without hitting the server again.
Please help me to solve this problem using javascript or vb.net code...
|
|
|
|