OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 22-06-2018, 12:04
aakkaarr aakkaarr is offline
Senior Member
 
Join Date: Jan 2009
Posts: 140
Default When passing TextBox in function corel 2018 does not take control as control

When passing TextBox in function corel 2018 does not take control as control
Control Variable in corel 2018 VBA not working.
Is someone also facing same problem

SunkRaised Me.Label300, -1

Public Sub SunkRaised(ctl As Control, i As Integer)
If i = -1 Then
ctl.SpecialEffect = fmSpecialEffectSunken
ElseIf i = 1 Then
ctl.SpecialEffect = fmSpecialEffectRaised
End If
End Sub

it says error 13

Last edited by aakkaarr; 22-06-2018 at 13:11.
Reply With Quote
  #2  
Old 29-06-2018, 08:37
shark shark is offline
Senior Member
 
Join Date: Aug 2010
Location: Russia, Belgorod
Posts: 142
Default

faced a similar situation in X8. Solved the problem using the prefix. MSForms.Control or something like it
Reply With Quote
  #3  
Old 05-07-2018, 09:19
aakkaarr aakkaarr is offline
Senior Member
 
Join Date: Jan 2009
Posts: 140
Default

Thanks Shark. Msforms.Control worked as charm
I was able to run recentfiles gms in 2018
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
recentfile gms not working in corel X8 32 bit aakkaarr CorelDRAW/Corel DESIGNER VBA 0 06-04-2017 07:51
Corel Shapes to Canvas Control C# diegoroman17 CorelDRAW/Corel DESIGNER VBA 1 01-09-2012 13:09
how to pass control's name by variable aakkaarr CorelDRAW/Corel DESIGNER VBA 2 29-01-2010 13:12
How to control Corel Application Recovery Manager mitchellhu CorelDRAW/Corel DESIGNER VBA 1 24-10-2008 10:03
Object variable or with block variable not set.. m31uk3 Code Critique 2 26-12-2007 13:17


All times are GMT -5. The time now is 22:44.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com