Hi All,

I have two frames.viz., frm1 and frm2.
On click of a button on frm1, I want frm2 to pop up and frm1 to hide. Presently I am using the following code:

[TEX]self.Hide()
self.frm2=frm2.clsFrame2(self)
self.frm2.Show()[/TEX]

clsFrame2 is the class present in frm2.
The above code if written on the click event of the button present on frm1. Some how the above code is not working!... Can anyone suggest?...
Any help is much appreaciated.

Regards,
Dinil

sorry.. I goofed up in wrapping the code.
its here:
self.Hide()
self.frm2=frm2.clsFrame2(self)
frm2.Show()

On click of a button on frm1, I want frm2 to pop up and frm1 to hide.

Use a normal function callback for the click on the button. The function will raise frm2 and/or lower frm1. How that is done depends on the toolkit you are using. Some sample code would help.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.