Solved

a few c# simple windows application questions

Posted on 2011-03-04
8
246 Views
Last Modified: 2012-08-13
hi all, im just about to begin converting my asp.net cms to a windows application

jsut a few dumb questions as this is my first effort...

1. so i have one main form then all other forms are childforms?
Ans:

2. how do i preview a a form? i keep pressing debug but it only loads the first form i created and i have no menu on that yey
Ans:

3. theres no repeater! i heard you can customise the datagrid to do the same though? can we make it look pretty?
Ans:

4. once ready to deploy do i create a package then distribute? also how would i preform updates?
Ans:

5. would the app be fine having to remoteley connect to an sql server?
Ans:

6. when i was creating a dataset it gave me a warning about no security on the connection, how do i apply it or is this not nessecary?
Ans:

Thanks alot guys
0
Comment
Question by:awilderbeast
  • 5
  • 3
8 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 500 total points
ID: 35036436
>> so i have one main form then all other forms are childforms

That's depending of your application. Mostly we speak of childforms in an MDI-environment
http://msdn.microsoft.com/en-us/library/aa983667(v=vs.71).aspx

>> how do i preview a a form?

Or you have to set it as startup-form (Right click on the project go to properties. Under "Startup Object" select which form you want to use) or add a button/menu/... where you call the new form
0
 
LVL 53

Assisted Solution

by:Dhaest
Dhaest earned 500 total points
ID: 35036449
>> once ready to deploy do i create a package then distribute? also how would i preform updates?

Deployment possibilities:
http://msdn.microsoft.com/en-us/library/6hbb4k3e.aspx
0
 
LVL 1

Author Comment

by:awilderbeast
ID: 35036466
ok so for example in a website id have

MAIN MENU
Home
Companies
Clients

SUB MENU - COMPANIES
Info
Staff
History
Attachments

so would i have one main form with main menu in
sub menu with the comanpanies sub loaded on click

then child forms for info, staff, history, attach...

or would everything have its own form?

Thanks
0
 
LVL 53

Assisted Solution

by:Dhaest
Dhaest earned 500 total points
ID: 35036494
>> Some c# windows questions --> and now you say: example in a website  ... :)

It's all depending of your own design... You can work with mainforms, you can work with other forms. It's all depending of the interaction that you need between your forms ....
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 1

Author Comment

by:awilderbeast
ID: 35036513
well im converting from website to app arent i :P

well for example after a company is loaded, the company ID needs to be available for all sub company forms

if i used main forms for all my pages, when i click a button to go to a different form the screen doesnt flicker or open another form ontop does it, it opens it in place (like a webpage would? lol)
0
 
LVL 53

Assisted Solution

by:Dhaest
Dhaest earned 500 total points
ID: 35036553
You can do something like that, fe by using an MDI-application (see link earlier).

You than have a mainwindow, in wich you can show the subforms
0
 
LVL 1

Author Comment

by:awilderbeast
ID: 35036676
remaining questions

datagrid can i customise/style it?

remote connection to sql, is that good practice?

sql intergrated security how do enable that?

Thanks
0
 
LVL 53

Assisted Solution

by:Dhaest
Dhaest earned 500 total points
ID: 35036700
>> remote connection to sql, is that good practice?
What exactly do you mean with this ? Mostly I work with another server that is hosting the database (not local)

Customizing the Windows Forms DataGrid
http://msdn.microsoft.com/en-us/library/ms996485.aspx

How to: Access SQL Server Using Windows Integrated Security
http://msdn.microsoft.com/en-us/library/bsz5788z.aspx

0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now