Click here to Skip to main content
15,884,838 members
Home / Discussions / C#
   

C#

 
AnswerRe: Browser Close Pin
ashok@techxygen23-Jul-08 0:03
ashok@techxygen23-Jul-08 0:03 
GeneralRe: Browser Close Pin
Agweet23-Jul-08 0:56
Agweet23-Jul-08 0:56 
QuestionwebBrowser Control Pin
mahmoud wafy22-Jul-08 22:32
mahmoud wafy22-Jul-08 22:32 
QuestionDeployment WinForm, SqlExpress, DB Pin
franz.pilgerstorfer22-Jul-08 21:41
franz.pilgerstorfer22-Jul-08 21:41 
AnswerRe: Deployment WinForm, SqlExpress, DB Pin
Jimmanuel23-Jul-08 3:24
Jimmanuel23-Jul-08 3:24 
GeneralRe: Deployment WinForm, SqlExpress, DB Pin
franz.pilgerstorfer23-Jul-08 21:27
franz.pilgerstorfer23-Jul-08 21:27 
QuestionAttaching database Pin
hadad22-Jul-08 21:21
hadad22-Jul-08 21:21 
AnswerRe: Attaching database Pin
franz.pilgerstorfer22-Jul-08 22:52
franz.pilgerstorfer22-Jul-08 22:52 
Hi
Right-click your project and add a new installer class. Within your installer class add following code

Public Overrides Sub Install(ByVal stateSaver As _
  System.Collections.IDictionary)

    MyBase.Install(stateSaver)

    Try
        ' Creates the database.
        ExecuteSql("master", "CREATE DATABASE dbTest")

        ' Creates the tables.
        ExecuteSql(strDBName, "CREATE TABLE .....")

    Catch ex As Exception
        ' Reports any errors and abort.
    End Try


End Sub


I found this code in the net. Although it is written in vb.net it may help you.

Franz
GeneralRe: Attaching database Pin
hadad22-Jul-08 22:59
hadad22-Jul-08 22:59 
AnswerRe: Attaching database Pin
mark_w_22-Jul-08 23:05
mark_w_22-Jul-08 23:05 
QuestionSMTP server capacity Pin
hadad22-Jul-08 21:15
hadad22-Jul-08 21:15 
AnswerRe: SMTP server capacity Pin
eburud22-Jul-08 22:30
eburud22-Jul-08 22:30 
QuestionLINQ query performance Pin
Lutosław22-Jul-08 21:00
Lutosław22-Jul-08 21:00 
AnswerRe: LINQ query performance Pin
leppie22-Jul-08 23:54
leppie22-Jul-08 23:54 
GeneralRe: LINQ query performance Pin
Lutosław23-Jul-08 0:01
Lutosław23-Jul-08 0:01 
QuestionRun an Win App from UNC Path Pin
cloud92k22-Jul-08 20:50
cloud92k22-Jul-08 20:50 
AnswerRe: Run an Win App from UNC Path Pin
eburud22-Jul-08 22:39
eburud22-Jul-08 22:39 
AnswerRe: Run an Win App from UNC Path Pin
Jiangug22-Jul-08 23:52
Jiangug22-Jul-08 23:52 
GeneralRe: Run an Win App from UNC Path Pin
cloud92k23-Jul-08 8:26
cloud92k23-Jul-08 8:26 
Questionrotating a winform control Pin
Faysal22-Jul-08 19:11
Faysal22-Jul-08 19:11 
AnswerRe: rotating a winform control Pin
John Ad22-Jul-08 20:03
John Ad22-Jul-08 20:03 
GeneralRe: rotating a winform control Pin
The Cake of Deceit23-Jul-08 8:04
The Cake of Deceit23-Jul-08 8:04 
QuestionPlease help with xml reading Pin
Medp3722-Jul-08 18:42
Medp3722-Jul-08 18:42 
AnswerRe: Please help with xml reading Pin
Srishti Mathur22-Jul-08 19:14
Srishti Mathur22-Jul-08 19:14 
QuestionThread problem Pin
Mogaambo22-Jul-08 18:36
Mogaambo22-Jul-08 18:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.