|
check out InternetDial function of wininet.dll. I haven't found exact usage, but I am needing to do this also.
|
|
|
|
|
Hi,
i am trying to delete a file
If csvFile.Exists(csvFilePath) Then
csvFile.Delete(csvFilePath)
End If
its giving me error
file used by another process
do u have a code who delete file forcefully and close all process
Please help!
Thanks
Ashu Sharma
|
|
|
|
|
If the file is open by another process, it's impossible to delete it.
Closing all other processes is out of the question, since you have no idea which process has the file open. There is no method to determine which process has it either.
Closing processes willy-nilly will only get your application uninstalled and the first available opportunity. It's just horrible programming practice.
If your application has the file open, well, the solution is obvious...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
To replace/delete files after rebooting you need to create a file named wininit.ini in the Windows directory
Then enter the following for example:
<br />
[Rename]<br />
c:\windows\system\myoldsys.dll=c:\mynewsys.dll<br />
to delete the file you would enter:
NUL=c:\windows\system\myoldsys.dll
So we see that the format is "newname=oldname"
You need to use always the shortfilename for this to work longfilenames do not work at all.
|
|
|
|
|
hi forum
i have a question to ask,
i want to store the folders, its subfolders etc etc.. blah blah in a
database table and i want to display those folders it child etc..
in the form of tree structure. if the user changes the name of the folder
then suitably the values has to be changed in the database also and automatically assign its child, silbling folders or whatever to this new folder name.
how difficult is it? someone please give me some idea
i have strarting trouble
|
|
|
|
|
Each node needs a unique ID and needs to also store it's parent node ID, with NULL or a magic number for the top node. Then the tree is easily built. And the name should NEVER be used as a key, the ID stays the same, and if you change the name, everything else just works.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
thank you very much Mr. Graus for your support
ShreejaRajan
|
|
|
|
|
How to integrate two forms using Tab Control in Vb.NET forms ?
|
|
|
|
|
Turn them into controls, and put one control on each tab.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
In the following code:
-------------------------------------
Private Sub MenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem1.Click, MenuItem2.Click, MenuItem3.Click
.....
End Sub
--------------------------------------
How to determine which menuItem is clicked?
Thanks.
|
|
|
|
|
cast the first parameter to a menuitem, if the cast succeeds, check its name property...
Absolute faith corrupts as absolutely as absolute power
Eric Hoffer
The opposite of the religious fanatic is not the fanatical atheist but the gentle cynic who cares not whether there is a god or not.
Eric Hoffer
|
|
|
|
|
|
|
try this:
Dim ItemClicked as MenuItem
ItemClicked=Ctype(sender,menutitem)
the do IF statement or Case Select
|
|
|
|
|
certainly, but you answered the wrong person...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
How about if sender is declared_menu_item ?
|
|
|
|
|
|
|
Not likely, mate. A Russian poker site ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hello, I would like to know if anyone knows of a link, or site which has a free VB.NET compiler on it. This is other then the MS .NET SDK. I am trying to find one, since I'm on a dail up connection, and the .NET SDK is well over 150mb which will take a long time to download for me.
Hope you know of one, thank you.
|
|
|
|
|
No-one else makes a VB.NET compiler. If they did, it would likely be about the same size.
PC magazines often put this sort of stuff on cover discs, or you can see if there's a user group in your area, which may have a copy to loan you, or maybe someone there has ADSL.
If worst comes to worst, I think Microsoft sell the discs for the price of postage.
Or., if you're a student, the student edition of VS.NET is cheap as chips. The individual languages instead of the full IDE are even cheaper.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Go to a public library with Internet access and take a blank CD with you. Chances are you'll be able to download it there and burn it to disk.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
At the least you will probably need the dotnet runtime. This is about 15 meg. This is doable with a dialup but not pleasent. You may already have this (it is in XP service pack 2) or be able to get it from a magazine coverdisk.
As for the compiler you can get compiler and VB.net IDE for free from:
www.icsharpcode.com/OpenSource/SD/Download/[^]
It is called Sharpdevelop and is a free dotnet IDE. It does VB and C# and can convert code between the two. Its also only about 7 meg which is fine over a dialup.
Sharpdevelop will wotk fine with just the dotnet runtime but you wont be able to use any debugging (not easy to do in the #develop ide anyway) and you wont have any documentation but atleast its better than 150 meg download.
Jonathan
|
|
|
|
|
hi everyone,
i'm wondering why is it on my server explorer when i right click my "Views node" i don't have the "New View"
menu and on the "Tables node" i don't have "New Table" menu and i can't run sql query using Visual studio .net IDE...i'm just using the query analyzer...i'm a missing something? what do i need to install to get these things?
thank you very much!
|
|
|
|
|
Some Body Can Assist Me That How to Make Web Scraping Using MS Inet Control in Visual Basic. Acctually I Have to do Web Scraping (Programatically Putting Parameters to Web Contents And Gets Results in Excel Comma Separated File) for a Site. This Site is in Cold Fusion having Extion .cmf. Please Help Me As Soon As Possible.
Special Thanks.
|
|
|
|