Solved

a few c# simple windows application questions

Posted on 2011-03-04
8
248 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
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
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
 
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

803 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