Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
AnswerRe: Unassigned local variable Pin
dan!sh 29-Jun-09 21:37
professional dan!sh 29-Jun-09 21:37 
GeneralRe: Unassigned local variable Pin
gwithey29-Jun-09 21:41
gwithey29-Jun-09 21:41 
GeneralRe: Unassigned local variable Pin
OriginalGriff29-Jun-09 21:53
mveOriginalGriff29-Jun-09 21:53 
GeneralRe: Unassigned local variable Pin
gwithey30-Jun-09 0:38
gwithey30-Jun-09 0:38 
QuestionWIA Video Problem...?? Pin
S K Y29-Jun-09 20:44
S K Y29-Jun-09 20:44 
AnswerRe: WIA Video Problem...?? Pin
Nuri Ismail29-Jun-09 21:08
Nuri Ismail29-Jun-09 21:08 
GeneralRe: WIA Video Problem...?? Pin
S K Y29-Jun-09 21:38
S K Y29-Jun-09 21:38 
GeneralRe: WIA Video Problem...?? Pin
Nuri Ismail29-Jun-09 22:01
Nuri Ismail29-Jun-09 22:01 
GeneralRe: WIA Video Problem...?? Pin
S K Y29-Jun-09 22:16
S K Y29-Jun-09 22:16 
AnswerRe: WIA Video Problem...?? Pin
Nuri Ismail29-Jun-09 22:22
Nuri Ismail29-Jun-09 22:22 
AnswerRe: WIA Video Problem...?? Pin
Christian Graus30-Jun-09 0:13
protectorChristian Graus30-Jun-09 0:13 
QuestionMediaplayer version checking Pin
rakeshs31229-Jun-09 20:24
rakeshs31229-Jun-09 20:24 
AnswerRe: Mediaplayer version checking Pin
stancrm29-Jun-09 20:41
stancrm29-Jun-09 20:41 
GeneralRe: Mediaplayer version checking Pin
rakeshs31229-Jun-09 20:50
rakeshs31229-Jun-09 20:50 
AnswerRe: Mediaplayer version checking Pin
Akhmad Suaidi29-Jun-09 21:41
Akhmad Suaidi29-Jun-09 21:41 
QuestionHow can i convert a List to Dataset? Pin
Alim1234529-Jun-09 20:04
Alim1234529-Jun-09 20:04 
AnswerRe: How can i convert a List to Dataset? Pin
himanshu256129-Jun-09 20:53
himanshu256129-Jun-09 20:53 
QuestionDatabe create by Programmatically but Password not create Pin
khosnur29-Jun-09 19:01
khosnur29-Jun-09 19:01 
I try to develop windows mobile application. Pro grammatically i create database but it does not crate password. so it show password mismatch.

Plz help me this is my first windows mobile application...

My code is given below:

DataTable dt = new DataTable("ServerSettings"); dt.ReadXmlSchema(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + ("\\ServerInformation.bin"));
dt.ReadXml(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + ("\\ServerInformation.bin"));


SqlCeReplication repl = new SqlCeReplication();

repl.InternetUrl = @"http://" + dt.Rows[0]["PCName"].ToString() + "/DBRestaurant/sqlcesa30.dll";
repl.Publisher = dt.Rows[0]["PCName"].ToString();
repl.PublisherDatabase = @"DBRestaurant";
repl.PublisherSecurityMode = SecurityType.DBAuthentication;
repl.PublisherLogin = @"sa";
repl.PublisherPassword = dt.Rows[0]["PublicatrionPassword"].ToString();
repl.Publication = @"DBRestaurant";
repl.Subscriber = @"DBRestaurant";

repl.SubscriberConnectionString = @"Data Source=""My documents\DBRestaurant.sdf"";Password=" + dt.Rows[0]["SubscriptionPassword"].ToString() + ";Max Database Size=128;Default Lock Escalation =100;";

try
{
if(!System.IO.File.Exists("My documents\\DBRestaurant.sdf"))
repl.AddSubscription(AddOption.CreateDatabase);
repl.Synchronize();
}
catch (SqlCeException e)
{
System.Windows.Forms.MessageBox.Show(e.ToString());
}
AnswerIgnore repost Pin
Manas Bhardwaj29-Jun-09 22:00
professionalManas Bhardwaj29-Jun-09 22:00 
QuestionCreate database in windows mobile but dont create password Pin
khosnur29-Jun-09 18:48
khosnur29-Jun-09 18:48 
AnswerRe: Create database in windows mobile but dont create password Pin
himanshu256129-Jun-09 20:57
himanshu256129-Jun-09 20:57 
QuestionCreate Custom Control Pin
satsumatable29-Jun-09 17:34
satsumatable29-Jun-09 17:34 
AnswerRe: Create Custom Control Pin
dan!sh 29-Jun-09 17:50
professional dan!sh 29-Jun-09 17:50 
GeneralRe: Create Custom Control Pin
Rajesh R Subramanian29-Jun-09 22:39
professionalRajesh R Subramanian29-Jun-09 22:39 
GeneralRe: Create Custom Control Pin
EliottA30-Jun-09 2:55
EliottA30-Jun-09 2:55 

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.