KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

Picturebox and images

 
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion
View previous topic :: View next topic  
Author Message
Mart
KiXforms Regular
KiXforms Regular


Joined: 03 Oct 2005
Posts: 57
Location: Rotterdam - Netherlands

PostPosted: Mon Mar 26, 2007 8:24 pm    Post subject: Picturebox and images Reply with quote

Just starting to use KF.Net so be gentle Wink

Is there a way to get picturebox in KF.net to display an image sort of like the old KF does? With something like $PictureBox1Image = @scriptdir + "\some_image.bmp". Afaik it can also be a .gif or .jpg image right?

All I can get out of KF.net designer until now is Base64 images like below.

Code:

Function PictureBox1Image()
   $PictureBox1Image = "Huge amount of data sits here"
   $PictureBox1Image = $System.Bitmap.FromBase64String($PictureBox1Image)
EndFunction

_________________
Mart

- He's chained forever to a world that's departed.....It's not enough, it's not enough - Sorrow by Pink Floyd.
Back to top
View user's profile Send private message
benny69
KiXforms Advocate
KiXforms Advocate


Joined: 30 Oct 2003
Posts: 567
Location: Lincoln, Ne

PostPosted: Mon Mar 26, 2007 9:07 pm    Post subject: Reply with quote

sure, the line you are looking for is:
Code:

$PictureBox1.Image = $System.Image.FromFile('K:\Kix Scripts\KF3\Form Builder\Images\image.png')

_________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)
Back to top
View user's profile Send private message Send e-mail
Mart
KiXforms Regular
KiXforms Regular


Joined: 03 Oct 2005
Posts: 57
Location: Rotterdam - Netherlands

PostPosted: Tue Mar 27, 2007 8:20 pm    Post subject: Reply with quote

Cool Cool
Thanks Benny.
A progress bar will be the next bump in the road I think. Let's wait and see when I get that far.

_________________
Mart

- He's chained forever to a world that's departed.....It's not enough, it's not enough - Sorrow by Pink Floyd.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group