Click here to Skip to main content
15,886,963 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generaldisabled item in checkedlistbox Pin
helelark12321-Apr-08 21:44
helelark12321-Apr-08 21:44 
GeneralRe: disabled item in checkedlistbox Pin
C1AllenS22-Apr-08 4:47
C1AllenS22-Apr-08 4:47 
GeneralRe: disabled item in checkedlistbox Pin
helelark12322-Apr-08 19:26
helelark12322-Apr-08 19:26 
QuestionUpdating a control's text from another class...? Pin
Gadjuka21-Apr-08 21:21
Gadjuka21-Apr-08 21:21 
GeneralRe: Updating a control's text from another class...? Pin
Christian Graus21-Apr-08 21:23
protectorChristian Graus21-Apr-08 21:23 
GeneralRe: Updating a control's text from another class...? Pin
Gadjuka21-Apr-08 22:13
Gadjuka21-Apr-08 22:13 
GeneralRe: Updating a control's text from another class...? Pin
ChandraRam22-Apr-08 0:49
ChandraRam22-Apr-08 0:49 
GeneralRe: Updating a control's text from another class...? Pin
drgbg22-Apr-08 18:22
drgbg22-Apr-08 18:22 
Hi Gadjuka,

I think the error message you got when you tried to do this in .Net answers the 'Why' your code doesn't work.

'I tried the same thing in .NET by the way. There I get "A property or indexer may not be passed as an out or ref parameter", so this particular problem doesn't seems to be solved by upgrading. '

So maybe the solution is pretty similar to what you already have. Try this:

<br />
Sub Command1_Click()    <br />
  Dim cls1 As New Class1    <br />
  cls1.fnc1 StatusBar1<br />
end sub<br />
<br />
<br />
Function fnc1(ByRef sb As StatusBar)    <br />
  Dim i as Integer    <br />
<br />
  For i=0 To 10        <br />
    sb.SimpleText = "We're at number " & i    <br />
  Next<br />
End Function<br />
<br />


You should be able to pass a reference of the control - I'm pretty sure I've done something along these lines way back when I was doing VB6. I didn't test this but I'm pretty sure it will work. Good luck!

The #1 Reply when developers programs don't work: "I thought I fixed that"

GeneralRe: Updating a control's text from another class...? Pin
Gadjuka22-Apr-08 21:43
Gadjuka22-Apr-08 21:43 
GeneralRe: Updating a control's text from another class...? Pin
drgbg23-Apr-08 0:22
drgbg23-Apr-08 0:22 
GeneralRetrieving Html code of web site Pin
sumit703421-Apr-08 20:58
sumit703421-Apr-08 20:58 
GeneralRe: Retrieving Html code of web site Pin
Steven J Jowett22-Apr-08 22:30
Steven J Jowett22-Apr-08 22:30 
GeneralPage SetUp in DataReport (VisualBasic) Pin
Vignesh Krishnan21-Apr-08 20:20
Vignesh Krishnan21-Apr-08 20:20 
GeneralRe: Page SetUp in DataReport (VisualBasic) Pin
r_mohd21-Apr-08 23:08
r_mohd21-Apr-08 23:08 
GeneralRe: Page SetUp in DataReport (VisualBasic) Pin
Vignesh Krishnan22-Apr-08 0:48
Vignesh Krishnan22-Apr-08 0:48 
GeneralOpening multiple web sites Pin
sumit703421-Apr-08 18:23
sumit703421-Apr-08 18:23 
GeneralRe: Opening multiple web sites Pin
Christian Graus21-Apr-08 18:34
protectorChristian Graus21-Apr-08 18:34 
GeneralRe: Opening multiple web sites Pin
sumit703421-Apr-08 18:52
sumit703421-Apr-08 18:52 
GeneralRe: Opening multiple web sites Pin
sumit703421-Apr-08 19:08
sumit703421-Apr-08 19:08 
GeneralRe: Opening multiple web sites Pin
Christian Graus21-Apr-08 19:19
protectorChristian Graus21-Apr-08 19:19 
QuestionTable adaptor row changed Pin
ziperzappper21-Apr-08 11:24
ziperzappper21-Apr-08 11:24 
QuestionBug with Directory and File Info? Pin
Dominick Marciano21-Apr-08 8:42
professionalDominick Marciano21-Apr-08 8:42 
GeneralRe: Bug with Directory and File Info? Pin
Luc Pattyn21-Apr-08 10:19
sitebuilderLuc Pattyn21-Apr-08 10:19 
GeneralRe: Bug with Directory and File Info? Pin
Dominick Marciano23-Apr-08 5:18
professionalDominick Marciano23-Apr-08 5:18 
QuestionHow to enable/disable a splash screen at runtime in VB.NET 2005 ? [modified] Pin
Delnet21-Apr-08 6:28
Delnet21-Apr-08 6:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.