Reputation: 0 Apprentice
- Active Posts:
- 21 (0.07 per day)
- 12-September 12
- Profile Views:
- Last Active:
- Nov 17 2012 12:55 AM
- Dream Kudos:
Posts I've Made
Posted 26 Oct 2012Make them 2 divs that are inline-block:
margin: 3px; display: inline-block; vertical-align: top; /*or middle, etc - whatever you prefer*/
margin: 3px; display: inline-block; vertical-align: top;
if you add 'border: thin groove black;' in the divs, it's an easy way to debug and see where exactly the boxes are showing up
This should make it look something like this (Let D = a div block):
that didnt work for me. I'm going to try something a little different.
Thank you for taking the time out to help me I appreciate it.
Posted 20 Oct 2012You need to close your tag with </a>
If I am understanding the description correctly, you need to start the opening <a> tag before your text 'Laboratory' and then close it as mentioned by IJET.
<div class="LA11" style="width:image width px; font-size:100%; text-align:center;"> <img src="C:\Users\Mark\Pictures/lab.png" width="90" height="90" alt="Laboratory"><br /> <a href="URL" target="_blank">Laboratory</a></div>
By opening your link before the image, you are giving the link effect to both your image and your text.
Hope this helps. Best I can do without more code/info/working link.
That worked. Thank you for your help
Posted 10 Oct 2012
Posted 10 Oct 2012Simply copying and pasting event handlers between forms is not going to work. You need to make sure you wire the events to the correct UI elements. So, even though you copied button2_Click event to Form3, if you don't have a button on the screen or that button's Click event handler isn't button2_Click, then your code isn't going to run.
Form 3 is exactly the same as form2 I just couldnt find a way to hold information in form2 and show a certain piece of info based on the users actions. So form 2 has exactly the same properties as form3 that's why I copied and pasted it.What do you mean with "not working"? What outcome do you receive? Crash, compile time error or incorrect result?
Have you tried debugging it?
Make sure you have TextBox called textBox1 on Form3, as well as button2 (and button2's Click event is set to button2_Click method).
sorry I should've explained a bit better. On form 2 if I type any number lets say 7 and click button2 the result is 1. Yet I type in any number on form3 and when I click button2 the result doesnt show up in the popup box
Posted 28 Sep 2012did you create the method SetTown in form 2?
I did yes and that was all fine no squiggly lines
I've been doing some research and what I really need (I think) is a switch statement for each town but all I see is switch statements for integers. Is there a way I can use switch statements for the message box i.e displaying the info associated with the town they clicked on.
- Member Title:
- New D.I.C Head
- Age Unknown
- Birthday Unknown
- Click here to e-mail me