By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,300 Members | 1,795 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,300 IT Pros & Developers. It's quick & easy.

How how to create frames in a windows forms?

P: n/a
I was under the impression that frames could be used in Windows forms in
earlier version of VB. However, in VB 2005 Express I don't see any such
tool/control. Is SplitContainer used for this purpose in VB 2005?

I want to create a frame in a Windows form because I'd like button clicks on
the left side of the form to change the form elements shown in the right
side of the form. Would each of the buttons on the left require a
corresponding form for the right container of the frame?

Thanks,
J.S.

--
Nov 21 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
JS,

Can you next time direct tell in the subject that it is about VB 2005
express, that saves others time when trying to help you.

I know nothing about the VB2005.

Thanks in advance.

Cor
Nov 21 '05 #2

P: n/a
Ok, I used a splitcontainer with a treeview control in the left pane and the
listview pane in the right pane. Now if only I can show different forms in
the right pane when different parts of the treeview are clicked on the left.
:)

--

"J.S." <js*@nospam.com> wrote in message
news:OD**************@TK2MSFTNGP10.phx.gbl...
I was under the impression that frames could be used in Windows forms in
earlier version of VB. However, in VB 2005 Express I don't see any such
tool/control. Is SplitContainer used for this purpose in VB 2005?

I want to create a frame in a Windows form because I'd like button clicks
on the left side of the form to change the form elements shown in the
right side of the form. Would each of the buttons on the left require a
corresponding form for the right container of the frame?

Thanks,
J.S.

Nov 21 '05 #3

P: n/a
Certainly! I'll mention that in the subject in future.

Thanks,
J.S.

--

"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:eL**************@TK2MSFTNGP09.phx.gbl...
JS,

Can you next time direct tell in the subject that it is about VB 2005
express, that saves others time when trying to help you.

I know nothing about the VB2005.

Thanks in advance.

Cor

Nov 21 '05 #4

P: n/a
Hi,

At one of the orlando dot net user group meeting Billy Hollis
did a demo on loading forms on the fly. He made a dll which contained the
form and loaded the form from a listbox. Here is a link to the vb.net 2003
code. I hope it helps.

http://dotnetmasters.com/SampleCode/...msOnTheFly.zip

Ken
----------------------
"J.S." <js*@nospam.com> wrote in message
news:OD**************@TK2MSFTNGP10.phx.gbl...
I was under the impression that frames could be used in Windows forms in
earlier version of VB. However, in VB 2005 Express I don't see any such
tool/control. Is SplitContainer used for this purpose in VB 2005?

I want to create a frame in a Windows form because I'd like button clicks on
the left side of the form to change the form elements shown in the right
side of the form. Would each of the buttons on the left require a
corresponding form for the right container of the frame?

Thanks,
J.S.

--

Nov 21 '05 #5

P: n/a
Good luck with that. I would reccommend docking the treeview and
listview as dockstyle.fill. Anyway, there should be a template...
Explorer style, if I'm not mistaken..

J.S. wrote:
Ok, I used a splitcontainer with a treeview control in the left pane and the
listview pane in the right pane. Now if only I can show different forms in
the right pane when different parts of the treeview are clicked on the left.
:)

Nov 21 '05 #6

P: n/a
That's what I did, Matt, but I had two problems. One, when I double clicked
on the Treeview nodes in design-view it didn't open up the code view like it
does when you double click a button. Two, one the right side I need to show
different textboxes and buttons for each node so I suppose I need something
like a form instead of listview. Anyway, I am still trying to read MSDN.

--

"Matt" <ba*******@hotmail.com> wrote in message
news:%vlOe.7675$0U6.7540@trnddc09...
Good luck with that. I would reccommend docking the treeview and listview
as dockstyle.fill. Anyway, there should be a template... Explorer style,
if I'm not mistaken..

Nov 21 '05 #7

P: n/a
Hi Ken,

Thanks for that link; I'll download it right away and take a look at it. It
seems to be something that should work for me. In the meantime, I have just
been using the TabsControl.

J.S.

--

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:O5**************@TK2MSFTNGP12.phx.gbl...
Hi,

At one of the orlando dot net user group meeting Billy Hollis
did a demo on loading forms on the fly. He made a dll which contained the
form and loaded the form from a listbox. Here is a link to the vb.net
2003
code. I hope it helps.

http://dotnetmasters.com/SampleCode/...msOnTheFly.zip

Ken

Nov 21 '05 #8

P: n/a
> http://dotnetmasters.com/SampleCode/...msOnTheFly.zip

When I double click on any of the form names in the left pane it gives me an
error message which these details:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.FileNotFoundException: File or assembly name TestJustify.dll, or
one of its dependencies, was not found.
File name: "TestJustify.dll"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef,
Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence
securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at FormsOnTheFly.Form1.LoadForm(Object sender, EventArgs e) in
C:\Demonstration\OnTheFly\FormsOnTheFly\Form1.vb:l ine 216
at System.Windows.Forms.Control.OnDoubleClick(EventAr gs e)
at System.Windows.Forms.ListBox.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)

=== Pre-bind state information ===
LOG: Where-ref bind. Location = C:\Storage\TestDeployment\TestJustify.dll
LOG: Appbase = D:\Documents and Settings\MyName\Desktop\My
Downloads\LoadingFormsOnTheFly\FormsOnTheFly\bin\
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Attempting download of new URL
file:///C:/Storage/TestDeployment/TestJustify.dll.

************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
FormsOnTheFly
Assembly Version: 1.0.1580.15963
Win32 Version: 1.0.1580.15963
CodeBase:
file:///D:/Documents%20and%20Settings/Jag/Desktop/My%20Downloads/LoadingFormsOnTheFly/FormsOnTheFly/bin/FormsOnTheFly.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
System.Data
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase:
file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.


Nov 21 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.