Click here to Skip to main content
15,860,943 members
Home / Discussions / C#
   

C#

 
QuestionVS2015 designer resizes my main form on different development PCs Pin
LenHodder22-Jun-16 6:53
LenHodder22-Jun-16 6:53 
AnswerRe: VS2015 designer resizes my main form on different development PCs Pin
BillWoodruff22-Jun-16 18:12
professionalBillWoodruff22-Jun-16 18:12 
GeneralRe: VS2015 designer resizes my main form on different development PCs Pin
LenHodder23-Jun-16 0:38
LenHodder23-Jun-16 0:38 
AnswerRe: VS2015 designer resizes my main form on different development PCs Pin
Luc Pattyn23-Jun-16 11:12
sitebuilderLuc Pattyn23-Jun-16 11:12 
QuestionWhenever code shows "Console.WriteLine..." replace with textbox Pin
Agewiz22-Jun-16 6:46
Agewiz22-Jun-16 6:46 
QuestionRe: Whenever code shows "Console.WriteLine..." replace with textbox Pin
Eddy Vluggen22-Jun-16 7:00
professionalEddy Vluggen22-Jun-16 7:00 
AnswerRe: Whenever code shows "Console.WriteLine..." replace with textbox Pin
Agewiz22-Jun-16 11:50
Agewiz22-Jun-16 11:50 
AnswerRe: Whenever code shows "Console.WriteLine..." replace with textbox Pin
Afzaal Ahmad Zeeshan22-Jun-16 7:12
professionalAfzaal Ahmad Zeeshan22-Jun-16 7:12 
What you need to do is you need to re-write your Console application to Windows Phone application. If I understand your problem, it is more like this (forgive the difference, but I am keeping it to ensure that the concept is clear)
C#
Console.WriteLine("Enter your age: ");
int age = Convert.ToInt32(Console.ReadLine());
Console.WriteLine($"Your are is {age}.");
Now, this can be re-written in Windows Phone application like this,
C#
// Add the label from the UI designer

int age = Convert.ToInt32(ageTextBox.Text); // Get the value from textbox
ageLabel.Text = $"Your are is {age}.";
This way, the above code can be changed to be used in Windows Phone, which worked similarly in a Console application project. Of course, you cannot replace Console with other objects, you have to write their names in the code to get the controls as objects. I would recommend that you learn more on MSDN: How to create your first app for Windows Phone 8[^]
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

PraiseRe: Whenever code shows "Console.WriteLine..." replace with textbox Pin
Eddy Vluggen22-Jun-16 8:04
professionalEddy Vluggen22-Jun-16 8:04 
GeneralRe: Whenever code shows "Console.WriteLine..." replace with textbox Pin
Agewiz22-Jun-16 12:02
Agewiz22-Jun-16 12:02 
AnswerRe: Whenever code shows "Console.WriteLine..." replace with textbox Pin
Afzaal Ahmad Zeeshan22-Jun-16 12:04
professionalAfzaal Ahmad Zeeshan22-Jun-16 12:04 
AnswerRe: Whenever code shows "Console.WriteLine..." replace with textbox Pin
BillWoodruff22-Jun-16 19:23
professionalBillWoodruff22-Jun-16 19:23 
SuggestionRe: Whenever code shows "Console.WriteLine..." replace with textbox Pin
Richard Deeming23-Jun-16 2:09
mveRichard Deeming23-Jun-16 2:09 
GeneralRe: Whenever code shows "Console.WriteLine..." replace with textbox Pin
BillWoodruff23-Jun-16 3:05
professionalBillWoodruff23-Jun-16 3:05 
GeneralRe: Whenever code shows "Console.WriteLine..." replace with textbox Pin
Richard Deeming23-Jun-16 7:14
mveRichard Deeming23-Jun-16 7:14 
GeneralRe: Whenever code shows "Console.WriteLine..." replace with textbox Pin
BillWoodruff26-Jun-16 4:48
professionalBillWoodruff26-Jun-16 4:48 
QuestionDevExpress.XtraGrid.Views.Grid.GridView changing the data by Mouse Scrolling Pin
po_saa22-Jun-16 5:46
po_saa22-Jun-16 5:46 
AnswerREPOST Re: DevExpress.XtraGrid.Views.Grid.GridView changing the data by Mouse Scrolling Pin
Dave Kreskowiak22-Jun-16 6:01
mveDave Kreskowiak22-Jun-16 6:01 
QuestionMeaning of errors logged by FileSystemWatcher.Error Pin
srikrishnathanthri22-Jun-16 1:24
srikrishnathanthri22-Jun-16 1:24 
AnswerRe: Meaning of errors logged by FileSystemWatcher.Error Pin
Eddy Vluggen22-Jun-16 1:50
professionalEddy Vluggen22-Jun-16 1:50 
GeneralRe: Meaning of errors logged by FileSystemWatcher.Error Pin
srikrishnathanthri22-Jun-16 19:47
srikrishnathanthri22-Jun-16 19:47 
GeneralRe: Meaning of errors logged by FileSystemWatcher.Error Pin
Eddy Vluggen23-Jun-16 1:31
professionalEddy Vluggen23-Jun-16 1:31 
QuestionThe database type “GenericDatabase” does not support asynchronous operations Pin
srikrishnathanthri22-Jun-16 1:13
srikrishnathanthri22-Jun-16 1:13 
AnswerRe: The database type “GenericDatabase” does not support asynchronous operations Pin
Eddy Vluggen22-Jun-16 1:48
professionalEddy Vluggen22-Jun-16 1:48 
AnswerRe: The database type “GenericDatabase” does not support asynchronous operations Pin
Dave Kreskowiak22-Jun-16 3:44
mveDave Kreskowiak22-Jun-16 3:44 

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.