|
Use the ftp protocol it should be some where under the system.web namespace in 1.1 if 2.0 use system.net
|
|
|
|
|
I have a program that does all of it's work in one master loop on one button click. The form has a label and a progress bar. Every 25 records in the loop the label text is set to display how many records have been processed and the progress bar value is updated accordingly. I finish this display update with a Me.Refresh so that the screen will redraw itself. This all works fine. The problem I'm having is that I'll start my program and while I'm waiting for it to finish I'll pull up some other program, then I go back to check on it's progress and the window will not redraw. How can I get it to redraw in this instance?
|
|
|
|
|
Use thread to do the task.
|
|
|
|
|
ok, before even looking at some posts , i had an example source for using the WNetOpenEnum.But i dont understand anything .. what do the params. mean.. and how do i use it?
These are the params.... .
· dwScope<br />
Specifies the scope of the enumeration. This parameter can be one of the following values:<br />
RESOURCE_CONNECTED<br />
All currently connected resources (the dwUsage parameter is ignored).<br />
RESOURCE_GLOBALNET<br />
All resources on the network.<br />
RESOURCE_REMEMBERED<br />
All remembered (persistent) connections (dwUsage is ignored).<br />
<br />
· dwType<br />
Specifies the resource types to enumerate. This parameter can be a combination of the following values:<br />
RESOURCETYPE_ANY<br />
All resources (this value cannot be combined with RESOURCETYPE_DISK or RESOURCETYPE_PRINT).<br />
RESOURCETYPE_DISK<br />
All disk resources.<br />
RESOURCETYPE_PRINT<br />
All print resources.<br />
<br />
If a network provider cannot distinguish between print and disk resources, it may enumerate all resources.<br />
<br />
· dwUsage<br />
Specifies the resource usage to be enumerated. This parameter can be a combination of the following values:<br />
0<br />
All resources<br />
RESOURCEUSAGE_CONNECTABLE<br />
All connectable resources<br />
RESOURCEUSAGE_CONTAINER<br />
All container resources<br />
<br />
This parameter is ignored if the dwScope parameter is not RESOURCE_GLOBALNET.<br />
<br />
· lpNetResource<br />
Points to a NETRESOURCE structure specifying the container to enumerate.<br />
If this parameter is NULL, the root of the network is assumed. Windows organizes a network as a hierarchy; the root is the topmost container in the network.<br />
<br />
· lphEnum<br />
Points to a variable filled with an enumeration handle that can be used in a subsequent call to WNetEnumResource.
i have only ONE workgrounp and i need to enumerate all the computers in IT.. .but could someone PLEASE EXPLAIN.. the API to me... or gimme a link to a TUTORIAL not some crazy source code =( . i might need to use this API later on for more complex things...
also... .... this was the example..... http://gideon.110mb.com/code.html
When i RUN this code i get C: UNC path C: ...WHAT THE HECK DOES IT MEAN!?
Thanx
Gideon
|
|
|
|
|
Hi.
I need to create a console application that has to run DTS located on the server.
Does anyone knows how to do that?
I have imported Microsoft DTSPackage Object Library to my application and created an obect.
But what do I do next? I guess I'm not sure how to use pkg.LoadFromSQLServer
My test DTS returns String to me. How do I capture it? DTS I'm writing the application for does not return anything, I just need to execute it on a scheduled basis.
Dim pkg As DTS.Package2
pkg = New DTS.Package2
Any help would be appreciated.
Thanks Alex.
|
|
|
|
|
Look at MS KB article 321525.
Hope it helps,
djj
|
|
|
|
|
I am looking for a vb script that can pull a line of data from an .ini file on all my pc's accross my network and store it to another txt file using comma delimited. I would need it to store the computername and the single line of data from the file. Below I have included what the file looks like, the line I would need is "WS=" and whatever number WS equals, in this case it would be 737.
Would someone be able to help me out with this? Thanks for your time...
FOCUSXP.INI
_______________________________________________________________________
[Internal]
Version=19.09.1228.05
Install=F:\
Path=C:\XP\
SetupPath=F:\setup_image\
MaxClients= 6
Type=XP2
[xpwnav]
WebApplication=XPWEB
OpName=
WSDesc=
AHelp=0
TimeOut=0
ConRetry=0
WS=737
OPID=532
TimeSync=0
TimeDelta=73
LogOpt=1
CTrace=1
STrace=1
Rptpr=0
Rctpr=0
Chkpr=0
Cls4pr=0
Cls5pr=0
ScrPrtCls=2
ESPColors=12632256,0,8388608,16777215,8454143,65535,33023,8421376,16777215,8421504,255,65280,8388608,16777215,0,32768,255,8454143,0,0,16777215,0,8388608,8388608,16777215,128,16777215,0,0,0,0
NavColors=12632256,0,0,128,12632256,12632256,8454143,0,8454143,12632256
NavPath0=XP: OPDVR - Workstation Reset
NavPath1=XP: CI - Central Information
NavPath2=XP: OPDVN - Networks
NavPath3=XP: OPDVP - Printers
NavPath4=XP: OPTOOP - Operator Control
NavPath5=XP: DCOP - Operator Profile
NavPath6=XP: DCCO - Current Operators
NavPath7=XP: DCCM - Console Monitor
NavPath8=XP: XP - XP² Applications
NavPath9=XP: XP - XP² Applications
QB1=
QB2=
QB3=
QB4=
QB5=
QB6=
QB7=
QB8=
XPPrint=0
DyIPAdd=0
WSBranch=0
WebServer=3021xpweb2
[XPWESP]
sysfmts=SYSFMTS.PDS
formats=FORMATS.PDS
formats1=FORMATS1.PDS
sysscrn=SYSSCRN.D8
screend=SCREEND.D8
screend1=SCREEND1.D8
font="-9,400,0,Courier New"
helpfont="-10,400,0,MS Sans Serif"
dvfont="-9,400,0,Courier New"
[GIFT]
ChangedText=16711935
NegativeText=255
Cautions=65535
Warnings=33023
Supervisory=255
ShowCodes=0
[XPSBA]
EndrData=1
EndrStop=1
EndrParity=1
EndrCom=2
EndrFlow=1
EndrBaud=1
[XPACTT]
CardData=1
CardStop=1
CardParity=2
CardCom=1
CardFlow=2
CardBaud=3
CardDelay=100
[XPFile]
Viewer=Viewer
Editor=c:\windows\system32\write.exe
Font=MS Sans Serif,8,-1,0,0,0,0
|
|
|
|
|
Hey all,
I'm getting a really annoying error when trying to save my xml document. I was using the example from the MSDN and it failed to with the same error. Here's the current code:
Friend Sub upload()
'create xml doc
Dim XMLDoc As New XmlDocument
'get all controls from form1
Dim ctrl As Control = f1.GetNextControl(f1, True)
'if the control is a special type called unitbox
If TypeOf ctrl Is UnitBox Then
'set it to x
Dim x = DirectCast(ctrl, UnitBox)
'if unitbox.unittype falls in the case
Select Case x.unitType
Case "infantry"
Dim inf As XmlElement = XMLDoc.CreateElement("infantry")
inf.SetAttribute("number", x.number)
inf.SetAttribute("location", x.endcountry)
inf.SetAttribute("owner", x.owner)
'also tried xmldoc.appendchild(inf) to no avail
XMLDoc.DocumentElement.AppendChild(inf)
'more cases... all the same stuff though
End Select
End If
'gives a system error
XMLDoc.Save("testxml.xml")
End Sub
Thanks a for any help
Mike
Gaming at the GuildofBlades.com is the only way to really experiece the level 99 Soul-Sucking Sword!
|
|
|
|
|
What kind of error specifically? Is it an access denied error? You're telling it to save as testxml.xml. but what directory are you running in? Did you set the DocumentElement to something before appending children to it?
Logifusion[^]
If not entertaining, write your Congressman.
|
|
|
|
|
hi
i have a package developed in vb.net.how can i deploy the embeded crystal report of my project to the client machine using vb.net code?when ever i ll run my program in client machine it will ask for the login information from registry.bt from that registry value,how can i set the login information of reports that i already ve been developed in another machine having different server,password & database name.please explain it with an example
u can send me the source code at pradipta_pkc@indiatimes.com
any suggestion in this regard will be highly appreciated
thanking u all in advance
i m pradip kumar from india,working in vb.net & asp.net
i m pradip kumar from india,working in vb.net & asp.net
|
|
|
|
|
I need to capture the Ctrl+Shift+C keys even when my form does not have the focus (more like a service running without an interface).
Can anyone help?
Urgently needed
|
|
|
|
|
|
There are many ways,
1. using Timer and call GetAsyncKeyState
2. using MenuStrip
3. using contextmenustrip
etc...
http://justicemansoftware.tk
|
|
|
|
|
I find most article about this topic using c#,
does there any article in VB.NET ?
Or, There is no way in VB.NET ?
Many Thanks.
|
|
|
|
|
All you have to do is convert the C# code to VB.NET. I haven't found any VB.NET examples and, frankly, have no time to convert them myself.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
HY!
I'm using the AxWebBrowser component in my current vb.net project to be able to use my app as a browser! I want to switch off the internet explorer keyboard shortcuts, but I don't know how i can handle this with the AxWebBrowser tool. I know it's possible to do that with the standard vb.net 2005 WebBrowser tool in vb developer 2005 ->
WebBrowser1.WebBrowserShortcutsEnabled = False .
But there's a bug in the WebBrowser (navigating thru macromedia flash sites isn't possible http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=142772&SiteId=1[^]) component, so I have to use AxWebBrowser.
thx!
dusty
|
|
|
|
|
How Do I display pictures from a specified directory in a listview including the images not just their names.
Posted by The ANZAC
|
|
|
|
|
Use the ImageList for storing your images before displaying into the listview
http://justicemansoftware.tk
|
|
|
|
|
Yes I know this, the only issue is that the imagelist's items property is read only and images cannot be added programatically, is there anyway to sotre a virtual indexed list, like a string.
Posted by The ANZAC
|
|
|
|
|
How Do I find the current Desktop Background Image or it's path and Display it in a Picture Box on my form.
Thanks in Advance
Posted by The ANZAC
|
|
|
|
|
I was compacting and repairing my Database, and my Computer hanged, then I restarted it and after the restart I openned my database and could not find all my queries. Can anyone help me if its still possible to retrieve those lost queries.
|
|
|
|
|
More than likely not. Pretty much, the only thing you can do is another Compact and Repair. Don't you just love Access?!?!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
wrote: Don't you just love Access?!?!
|
|
|
|
|
I having this error when i run my function,i was thinking to change the value in my access while user click on it but Error message came out..? wat happen? the data i wanna update is either Yes/NO in access. Is it correct 0=NO, 1= yes in vb?
Run-time Error '91':
object variable or with block variable not set
Here is the coding have error:
DB.Execute "update dono set InvoicePrint=" & "'" & 1 & "'" & _
" where [NO] = " & "'" & Dorder.dono.Text & "'"
-- modified at 5:00 Thursday 10th August, 2006
|
|
|
|
|
Use a boolean variable and assign it "True" or "False" as necessary.
|
|
|
|
|