Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 16th, 2005, 7:52 AM   #1
HappyTomato
Newbie
 
Join Date: Jun 2005
Posts: 4
Rep Power: 0 HappyTomato is on a distinguished road
Unhappy Can't open a different form...

hi all..

C# is new to me so I'll be grateful if somebody can give me a hand on this

I'm workng on a C# application that works with a database.. I originally started it as a 'window form' (so normally it is displayed as an icon of a grey window in the treeview solution explorer), but somehow it 'converted' itself into another type of form, displaying itself as an icon that could be for a 'Component class' or 'window service' etc.. so here's my problem:

I created a new window form (lets call it Form2), and added a button in Form1 so the user can navigate themselves to Form2 via a button click from the Form1... however because the two forms seem to be of different 'type' now I can't seem to make a link between them for the users to be able to navigate from one form to another. Here's what I tried:

Form f = new Form2;
f.show();

etc etc..

..which i know works if i had two simpe window forms to work with rather than the two forms that are apparently of different types i've got at the moment:

the trouble is, I have no idea why Form1 had turned into another (unknown) type (I know because the icon is no longer the normal grey window), unfortunately i think this could be the reason why i can't open Form2 from Form1...

I hope this is clear enough.. I really dont know how else to explain it..

Any help is appreciated! thanks in advance :p
HappyTomato is offline   Reply With Quote
Old Jul 17th, 2005, 1:31 AM   #2
kurifu
Expert Programmer
 
kurifu's Avatar
 
Join Date: Jul 2004
Location: Halifax, Nova Scotia (Canada)
Posts: 784
Rep Power: 5 kurifu is on a distinguished road
Send a message via ICQ to kurifu Send a message via MSN to kurifu
I don't think anyone understands the problem, can you post some code which demonstrates what you are trying to explain maybe?
__________________
Clifford Matthew Roche <geek@cliffordroche.com>
Web Hosting: http://www.crd-hosting.com
Consulting: http://www.crdev-consulting.com
kurifu is offline   Reply With Quote
Old Jul 18th, 2005, 8:03 AM   #3
HappyTomato
Newbie
 
Join Date: Jun 2005
Posts: 4
Rep Power: 0 HappyTomato is on a distinguished road
got the problem sorted..turns out i've overlooked the fact that they were in different namespaces! lol... thanks anyway !
HappyTomato is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:46 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC