|
Well the problem is concerned with all the function available in the code.
|
|
|
|
|
Hello,
I want to create an application in which I want to execute cmd commands.
I have taken a RichTextBox in which user will write command and by pressing a button it will generate output but I don't want cmd window to be appeared.
plz send code or any link to solve my problem.
Thanks & Regards,
Chandan KUmar
|
|
|
|
|
|
Everything you need ccan be found in the Process[^] class.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
1.1 or 2.0 dotnet framework
I have build one control to display Graph on desktop application. Now the customer wants to export that Graph as an image file. Can any one help me how to make picture of any control. like you have one Panel Control and you want to make the panel control Picture.
Any help will be highly appreciated
Regards
Rizwan Bashir
|
|
|
|
|
Hi everyone,
I am trying to develop an app which should read date info from a remote machine (which has MS win on board). My problem is:
I don't know the CurrentCulture of the remote machine and therefore I don't know which is the DateTime format of the dates I retrieve. If I get some special dates,
for example 02/01/06, I wouldn't know which one represents the day, month or year.
Is there any way to retrieve the culture or just the datetime format of the remote machine?
N.B. just keep in mind that I only know the IP address of the remote machine and I'm not allowed to deploy any component on it
|
|
|
|
|
When you get the date in any format (which you don't know)
convert it to the format you want.
for example you've got 01/03/06 => convert it to yyyy/M/d
it will innerly will convert to 2006/Mar/01 (if you considered that the fomat of 01/03/06 is d/m/y)
Faris Madi
Nothing Comes Easy (N.C.E.)
|
|
|
|
|
Sorry,
maybe I didn't tell you that the date comes as a string.
I can't wonder about its format.
If the machine had english date format, 01/03/06 means 2006/Jan/03.
|
|
|
|
|
vilmer wrote: am trying to develop an app which should read date info from a remote machine
How are you doing this?? Are you using a compponent on the remote machine that you wrote?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
The remote machine hosts a scada system and I can manage some APIs to exchange data with it. The remote machine comes as is, so I can't install any other component on it. I just have this library to communicate with it and the function defined in my library returns me a string
|
|
|
|
|
In that case, you're on your own. You'll have to consult with the docs on the API to find out if the datetime your getting is in any specifal format, not culture specific, or it it'll give you the culture info. I'm doubting it though.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I am trying to display a tif image in KodakImageEdit control using VB6
but it gives an error when I set the DisplayScaleAlgorithm to 2.
If I set DisplayScaleAlgorithm to 1 it doesnt display the image properly it shows a black image with white dots.
The OS on my system is XP, but when I tryed on Win2000 it gives the same error.
Every is Illusion
-- modified at 8:10 Wednesday 21st June, 2006
|
|
|
|
|
Kodak Imaging??? I though that thing died a long time ago!
It not likely you're going to get any help with it. Kodak Imaging wasn't even included with Windows XP, so you had to get it from some other source. See this[^] for a little more information.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
When using DOM to process an XML file, I need to get hold of the attributes when present. Now I can get hold of them if I know there names, but what about when I do not know the attribute names?
Set objAttributes = objDOMNode.Attributes<br />
<br />
'check that there are attributes.<br />
If objAttributes.length > 0 Then<br />
<br />
'we know that we've named our id reference as<br />
''PERSONID', therefore tell the NameNodeListMap to get<br />
'this node by using the getNamedItem method<br />
Set objAttributeNode = objAttributes.getNamedItem("PERSONID")<br />
<br />
'store this value in the tag of the treeview<br />
tvwElement.Tag = objAttributeNode.nodeValue<br />
End If
The above code is OK for when you know the attribute name, but its the case when you dont know the number and names.
Any suggests please.
|
|
|
|
|
You should be able to just use the collection of XMLAttributes as an array. So you code becoes something like this:
Set objAttributes = objDOMNode.Attributes
If objAttributes.Length > 0 Then
Set objAttributeNode = objAttributes(0)
tvwElement.Tag = objAttributeNode.nodeValue
End If
another option is to iterate through the collection of attributes and get each one of them, and append to the tree view.
Set objAttributes = objDOMNode.Attributes
If objAttributes.Length > 0 Then
For Each objAttributeNode in objAttributes
Next
End If
----
www.digitalGetto.com
|
|
|
|
|
I have looked at a number of ways to clear the 'temp internet files' of users on our 2003 servers and have come to an abrupt Halt.
Although by re-attribbing the files within the Temp folder allows the removal of files, the same does not work with folders.
Is there a way that I can script the removal of both files and folders from within the Temp Internet Files for one or more users.
I exist therefore I code
|
|
|
|
|
|
Thank you, this would be an excellent piece of code to use for anyone who wanted to clean out their own temp internet files folder, (see code listed below), i tried it on my own machine and it runs well.
Set WshShell = CreateObject("WScript.Shell")
WshShell.RUN("cleanmgr.exe /sagerun:50")
Set WshShell = Nothing
however, i am trying to automate the removal of temp internet files from 45+ profiles some of which do not log onto this particular server regularly.
What I need it a method of clearing the Temp files via script that can be run at night when users are not logged on.
I have managed to create scripts that browse to the folders and check the size of them and are ready to perform some action on them but this is where it comes unstuck.
>>--------------------<<
I exist therefore I code
I code therefore I am
>>--------------------<<
|
|
|
|
|
|
Dear Friends,
I have a problem , please help me. I have developed one project in Visual Basic 6.0. I want to put a lock in my Demo version. So that the client can't use it after 30 days.This should not be machine specific, it should be Software specific. Means after 30 days the software should expire and the client shouldnot able to run the package in any machine.
Please help me for the above said.
Thank you
Biswa Ranjan Nanda
Software Engineer
Mumbai,INDIA
|
|
|
|
|
|
Sorry dear I didn't get you.
Biswa Ranjan Nanda
Software Engineer
Mumbai,INDIA
|
|
|
|
|
Hi All,
I created a windows service and i am trying t install it.I am getting an exception as follows
Unable to create an instance of the WindowsService1.ProjectInstaller installer type.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
The inner exception System.Security.SecurityException was thrown with the following error message: Security error..
I have used both the installUtil as well as the msi file approach
I have the admin rights.I am totally baffled about this.It will be so kind from your part to help me out of this.
Thanks and regards,
Sandeep Sreekumar
|
|
|
|
|
|
I need to delay the splash screen display time. The template gives me 2 seconds. I need to display it for 8 or more secs. I am new to this but I am learning. Appreciate your help
Bassem
|
|
|
|