Page 1 of 1 1
Topic Options
#126321 - 2004-09-09 01:07 AM help with my code....
adio Offline
Fresh Scripter
*

Registered: 2004-08-25
Posts: 28
i had just a big confusion where should i put the string of bmp file eg "c:\winnt\sysvol\adioph\superman.bmp" in this script:

Break On
$System = CreateObject("Kixtart.System")

;KD START

;************* Form **************
$Form = $System.Form()
$Form.BackColor = 212,208,200
$Form.Height = 293
$Form.Text = "KiXforms Designer Template"
;**************************************

;************* PictureBox1 **************
$PictureBox1 = $Form.Controls.PictureBox()
$PictureBox1.BackColor = 212,208,200
$PictureBox1.BorderStyle = 0
$PictureBox1.Height = 102
$PictureBox1.Left = 89
$PictureBox1.Picture = ""
$PictureBox1.Top = 30
$PictureBox1.Width = 120

thanks, please post for reply.....

Top
#126322 - 2004-09-09 01:16 AM Re: help with my code....
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
You need to set the Picture property, so...

Code:

$myPicture = "c:\winnt\sysvol\adioph\superman.bmp"

$PictureBox1.Picture = $myPicture


I'm not a real big fan of hard-coding paths. I'd rather see something like...

$myPicture = "%WINDIR%\sysvol\adioph\superman.bmp"

Top
#126323 - 2004-09-09 01:24 AM Re: help with my code....
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Not sure I understand the question. You would put the filespec between the quotes on the line:
$PictureBox1.Picture = "c:\winnt\sysvol\adioph\superman.bmp"

Now the path "c:\winnt\sysvol\adioph\superman.bmp" would only be available if the script is running on the domain controller where the file exists but I doubt that is where you want to run the script.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#126324 - 2004-09-09 03:16 AM Re: help with my code....
adio Offline
Fresh Scripter
*

Registered: 2004-08-25
Posts: 28
thanks a lot, i just try it now...
Top
#126325 - 2004-09-11 02:22 AM Re: help with my code....
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You might also want to read the KiXforms Manual.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1471 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.067 seconds in which 0.037 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org