Title for Invoke Code

Dears,

Based on example shared on : How put a image on a MessageBox? by @ vvaidya .
Is it possible to have for this example:

  • Title for the appeared window
  • “OK” button in the bottom of this window.

image Example.zip (24.3 KB)
Attached is my example
Thanks in advance

Hello @hsendel

thank you for your inquiry.

see where it says “late show” ( I was watching it while answering some of the post LOL)

image

this is the result:

image

you can learn more about it here

regards.

ShowImg.xaml (6.6 KB)

3 Likes

Thanks beesheep,
Is it possible to add OK botton?

1 Like

try this:

~WRD000.jpg

image001.jpg

Hello @vvaidya The message is empty

Apologies – please see attached

~WRD000.jpg

image001.jpg

ShowImg.xaml (7.66 KB)

1 Like

Thanks a lot @vvaidya and @beesheep , Each of You solved 50% , for which one I will make Solution :slight_smile:

Without doubt @beesheep

Good Luck!

~WRD000.jpg

2 Likes

Both done great JOB, I appreciate :slight_smile:

what is missing, I want to use this Activity in another Process i got the following :

I found the fix in : How to set the name space and assembly references for Uipath File
Thx

Not Working again :disappointed_relieved:
I got the following errors:
Invoke code: No compiled code to run error BC30002: Type ‘PictureBox’ is not defined.
At line 1 error BC30451: ‘DockStyle’ is not declared.
It may be inaccessible due to its protection level.
At line 3 error BC30002: Type ‘Timer’ is not defined.
At line 17 error BC30002: Type ‘Form’ is not defined.
At line 23 error BC30451: ‘FormStartPosition’ is not declared.
It may be inaccessible due to its protection level. At line 27ShowImage.zip (33.9 KB)

@vvaidya long time no see… but I’m back…hahah

What’s wrong with this code?

@hsendel

there you go man!!!

ShowImg.xaml (7.1 KB)


Don’t forget to like us.

Happy automation!

1 Like

Hi @beesheep, Possible to Add Font and Color for the Button Created ( NEXT in this example). Thanks in Advance

1 Like

This is helped me to solve my problem

2 Likes

Welcome @Lesha_Svik, Good To Know that Your Problem Solved by by My Topic with the help of @beesheep

1 Like

Dude, sorry for the late respnse, I was running some errants. ShowImg.xaml (7.2 KB)

Change the arial font type and the 14 is the size, now do realize that in order for you to change the font in running time you new to create a new font, thats why you see the new font instruccion here:

btnOK.ForeColor = Color.Red
btnOK.Font = New Font("Arial", 14, FontStyle.Bold)

this is what you need

Regards,


Don’t forget to like us :heartpulse:
Happy Automation! :sunglasses:

1 Like

Thanks @beesheep, Unfortunately I got and error message when adding those 2 Lines to the invoke code script :

btnOK.ForeColor = Color.Red
btnOK.Font = New Font("Arial", 14, FontStyle.Bold)

image

Are those variables declared twice ?