Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

IMWindow is other Form

---------------------------------------------------------

Code in main Form

Dim imw As IMWindow

 

 

imw = New IMWindow(objRTCClient, objProfile, RTCCORELib.RTC_SESSION_TYPE.RTCST_MULTIPARTY_IM, Buddy.PresentityURI, Buddy.Name)

-------------------------------------------------------

how to set the variables in the other form by passing this variavbles.

how to declare it in IMWindow and where to declare.

 

i am getting error too many Parameters in Public Sub New()

I am using RTCDLL.DLL file in this project:confused:

I cannot make these variables as Global as it will effect the program coding.

  • *Experts*
Posted

You need to overload the constructor of the IMWindow class to

accept all those parameters. Make sure that you call

InitializeComponent() in the constructor, too.

 

This will go in the IMWindow class (this is just an example, you

will obviously have to change the parameter names and types):

Public Overloads Sub New(client As Object, profile As Object, _
 something As Something, somethingElse As SomethingElse, name As String)
InitializeComponent() ' Required

' Then store all the arguments in local variables here
End Sub

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

Posted

Error on Compile

 

hi

i tried that but i am getting error it says

 

Sub New() cannot be declared Overloads.

 

 

and another error stating..

Overload resolution failed because no accessible 'New' accepts this number of arguments.

 

 

so i am stuck up again can u get me out of this riddle...

  • *Experts*
Posted

Okay, leave out the Overloads keyword then. I also realized that,

instead of calling InitializeComponent, you should instead call

MyBase.New().

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...