|
nishugaurav wrote: System.Diagnostics.Process.Start (System.Environment.CurrentDirectory & "\Help.swf")
use application.startuppath for the flash movie
System.Diagnostics.Process.Start (application.startuppath & "\Help.swf")
Note this is not recommended for files (like mdb,txt,xml,...) wich the programme has to write to
You need administrator rights for that so users on XP who don't have those will not be able to write to it and you'r programme will crash
On vista everything the user does (write to those files) will end up in the user's personal virtual filesystem, and will NOT be accesible for other users
|
|
|
|
|
Path.Combine(application.startuppath, "Help.swf") if you're like me and can't remember when trailing slashes are there and when they aren't.
|
|
|
|
|
yeah usually I do the following to avoid any mistakes
application.startuppath.trimend("\","/") & "\help.swf"
but have to admit you'r way looks nicer
|
|
|
|
|
Hello Friends.
How to set resolution of our vb.net application.
for example.
i have developed application in low resolution means
800 x600
then it not looking good in
1024 x 768
how to solve this problem.
Thanks in advance.
Adarsh
|
|
|
|
|
Get it
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Thanks for your reply.
But i am asking for vb.net 2005.
If u have any solution please help me.
Adarsh
|
|
|
|
|
several possible options:
set you'r forms (or just mdi parent) width and height to 800x600 and don't allow the user to maximise the programme (property maximizebox = false, and property windowstate = normal)
you can also check the screen's resulotion (you can use the my.computer.screen. ... methodes for this) and do the above only for resulotions higher than 800x600
Better way is to make you'r programme look good on all resolutions (if possible) using the anchor and dock property's of the controls
|
|
|
|
|
Thanks for your reply.
I got my solution.
Adarsh
|
|
|
|
|
im beginner in vb 6.0...
can anybody show or if can attach an example of project tht link with mic.access to vb 6.0...
i need to explore about way to retrieve record from existing database and then list it on llist box, n try to sort it. further more i need to find gap and duplicate in data, and stratification and list it according to user request.. i really dont know how to do it.... im really beginner..
plsssss help me... send an example project to me..
|
|
|
|
|
Please tell me you are supporting an application and not just starting one. VB6 is DEAD, burried and no longer supported.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Mycroft Holmes wrote: supporting an application
Hope that's the case. And if so, should try to port it over to VB.NET for easier maintaining.
Mycroft Holmes wrote: starting one
Hope that's not the case
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Member 3968996 wrote: im beginner in vb 6.0...
throw vb 6.0 out and go to .NET 3.5 (if you are a beginner better you don't need to start learning a language that is no longer supported) unless you have to support an existing vb 6.0 programme
Member 3968996 wrote: plsssss help me... send an example project to me..
nobody is just going to send you an example project
steps to follow:
google
try
fail
search for solution (on google and/or elswhere)
post code that fails (with error if possible)
get an answer
|
|
|
|
|
Just Google, and you'll find pages like this one[^].
|
|
|
|
|
Member 3968996 wrote: im beginner in vb 6.0...
Sorry to hear. VB6 has been dead for over three years. Microsoft no longer supports it. You should really learn VB.NET instead if you are going the VB route.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I have a DLL (Crypto does the obvious thing) that is used by all our apps to encrypt the passwords. I wanted to use this with SSIS in a package. To do this I assumed I would need to put it into the GAC. To do this the DLL needed a strong name attached. Not a problem, did that and deployed to the GAC.
Turns out SSIS is such a PITA that I won't be using it, permissioning and deploying an SSIS package is an absolute nightmare.
Now come the nasty stuff, I open up one of the existing apps and it fails to compile with this message
_Include DLLs\GRCrypto.dll' must be strong signed in order to be marked as a prerequisite
So I dutifully remove the GAC deployment, remove the strong key from the assembly, remove the references and refresh them. Still no joy compiling the app.
Any suggestions on how to resolve this.
My machine is the only one with the DLL deployed o the GAC, the code is in VSS and also on other developers machines. I am willing to delete my copy, trash VSS and reset from another devs machine but will it do me any good. Is the problem in the App or in the GAC and my local environment.
I await suggestions with bated breath and gnashing of teeth!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I've had the same issue before with applications, and I can suggest a couple of possible solution scenarios that might be worth taking a look at...
If you have published, or tried publishing this application before, then you might want to visit the 'Publish' item in the application's properties window, and select the 'Application Files' tab. Heck, even if you have not published the app, take a look there. As long as you no longer wish to publish this application, you can set the 'Publish Status' for this DLL to exclude, and then see if that allows you to compile the app. There will be no harm in that as long as you do not plan on publishing the app.
I've also seen this issue before when supporting DLLs of the app have not all been compiled in release modes pointing to the same DLLs as the main app. So, you might want to double-check to ensure that everything has been compiled pointing at the same DLLs when they are, indeed, sharing DLLs. I know people will say that sort of problem typically gets resolved via app.config, but I've also seen the error you are receiving when that happens.
|
|
|
|
|
Thanks for the ideas.
I actually will get around the problem by combining 2 supporting DLLs crypto and DAL and only publish the DAL in future, retiring the crypto DLL.
The compile target may have been the issue as we use clickonce which seems to (never investigated) handle the debug/release issues, the SSIS atttempt was specifically compiled to Release!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
hai all,
here i have a code to generate serial no in datagridview.
If e.RowIndex >= 0 AndAlso e.ColumnIndex = SLNo.Index Then
e.Value = e.RowIndex + 1 ' + 1 is becuase RowIndex is a zero based
End If
using above code,serial nos are displayed in ascending order.
but i want to display the serial nos in descending order.
so how to display the serial nos in descending order.
|
|
|
|
|
Are you populating the dataGridView from SQL.
|
|
|
|
|
hai bardy,
The datas only displayed from sql.I genarate serial no automatically using above code.It comes in ascending order.but i want to display in descending order.
|
|
|
|
|
Well I'm assuming that you pull the data from Sql into a DataSet then bind it to the GridView.
You can get the Total number of rows from the DataSet (int TotalRows = ds.Rows.Count)
then when you set the serial No just go (TotalRows - e.RowIndex), that should be in Descending order.
Hope this helps.
|
|
|
|
|
|
It's a fairly straight forward bit of C# code and will translate to VB.NET with ease.
Try using one of the online C# to VB.NET converters link this one[^].
Take the time to compare the C# and VB.NET code. You may be suprised how similar they are.
Steve Jowett
-------------------------
It is offen dangerous to try and see someone else's point of view, without proper training. Douglas Adams (Mostly Harmless)
|
|
|
|
|
|
hai all,
i am using dotnet 2005.i doing my project in vb.net windows application.
Is it possible to generate serial number in datagridview.if possible means,i want to generate serial number in datagridview by descending order in windows application,not in web application.
|
|
|
|