Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

a few c# simple windows application questions

Posted on 2011-03-04
8
Medium Priority
?
253 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 2000 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 2000 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 53

Assisted Solution

by:Dhaest
Dhaest earned 2000 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
 
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 2000 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 2000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

773 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