473,378 Members | 1,500 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

.NET being a %^&^%

15
Hello

Currently im programming with VB.NET using Microsoft Visual Studio 2003.

I'm trying to design and develop a small questionnaire of say, 10 questions, and then I want to also expand this into a huge module, with multiple choice questions.

I took an idea from this forum before and that was to just have seperate panel controls, which I could 'hide' and 'unhide' when it comes to whatever question...

So they way it would work is say you have the first panel which I give the name 'p1' and the second panel 'p2, and so on, so then I'd code a button control to say:

Me.p1.Hide
Me.p2.Show
End Sub (etc)

And it works fine, but for some reason on the seventh panel - it just goes a bit loony and skips a question, I've double, triple, and qudrauple checked the coding to see if I'm showing or hiding the wrong panels and it all seems fine, but for some reason the app decides to skip panels or just go completely haywire after displaying the seventh panel... If I take away this panel and the coding for it it works fine - I don't know why this is happening! Please help me its SERIOUSLY important and really will affect my future (its a very simply problem but trust me it will!)

Thank you
Mar 23 '08 #1
2 993
Musty
15
Hello

Currently im programming with VB.NET using Microsoft Visual Studio 2003.

I'm trying to design and develop a small questionnaire of say, 10 questions, and then I want to also expand this into a huge module, with multiple choice questions.

I took an idea from this forum before and that was to just have seperate panel controls, which I could 'hide' and 'unhide' when it comes to whatever question...

So they way it would work is say you have the first panel which I give the name 'p1' and the second panel 'p2, and so on, so then I'd code a button control to say:

Me.p1.Hide
Me.p2.Show
End Sub (etc)

And it works fine, but for some reason on the seventh panel - it just goes a bit loony and skips a question, I've double, triple, and qudrauple checked the coding to see if I'm showing or hiding the wrong panels and it all seems fine, but for some reason the app decides to skip panels or just go completely haywire after displaying the seventh panel... If I take away this panel and the coding for it it works fine - I don't know why this is happening! Please help me its SERIOUSLY important and really will affect my future (its a very simply problem but trust me it will!)

Thank you
Actually... It seems I have rectified the problem... God willing its working fine... for now... :S

Thanks for any efforts guys/gals
Mar 27 '08 #2
Plater
7,872 Expert 4TB
I would suggest using the TabControl object, then telling it to hide the "tabs" part.
All the functionality for switching between them is built in, and at design time you get the ease of being able to "change" tabs so that you can create the GUI.
Mar 27 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Collin VanDyck | last post by:
I have a basic understanding of this, so forgive me if I am overly simplistic in my explanation of my problem.. I am trying to get a Java/Xalan transform to pass through a numeric character...
1
by: DrTebi | last post by:
Hello, I have the following problem: I used to "encode" my email address within links, in order to avoid (most) email spiders. So I had a link like this: <a...
0
by: Thomas Scheffler | last post by:
Hi, I runned in trouble using XALAN for XSL-Transformation. The following snipplet show what I mean: <a href="http://blah.com/?test=test&amp;test2=test2">Test1&amp;</a> <a...
4
by: Luklrc | last post by:
Hi, I'm having to create a querysting with javascript. My problem is that javscript turns the "&" characher into "&amp;" when it gets used as a querystring in the url EG: ...
4
by: johkar | last post by:
When the output method is set to xml, even though I have CDATA around my JavaScript, the operaters of && and < are converted to XML character entities which causes errors in my JavaScript. I know...
8
by: Nathan Sokalski | last post by:
I add a JavaScript event handler to some of my Webcontrols using the Attributes.Add() method as follows: Dim jscode as String = "return (event.keyCode>=65&&event.keyCode<=90);"...
11
by: Jeremy | last post by:
How can one stop a browser from converting &amp; to & ? We have a textarea in our system wehre a user can type in some html code and have it saved to the database. When the data is retireved...
14
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
12
by: InvalidLastName | last post by:
We have been used XslTransform. .NET 1.1, for transform XML document, Dataset with xsl to HTML. Some of these html contents contain javascript and links. For example: // javascript if (a &gt; b)...
7
by: John Nagle | last post by:
I've been parsing existing HTML with BeautifulSoup, and occasionally hit content which has something like "Design & Advertising", that is, an "&" instead of an "&amp;". Is there some way I can get...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.