Posts by megaultron • 170 points
7 posts
-
8
votes2
answers139
viewsQ: What is the default (Object) for in C#?
Sometimes I come across the keyword default in the C#: object obj = default(object); string str = default(string); int number = default(int); What good is? In which scenario can I apply this?…
-
1
votes2
answers99
viewsA: Do not let insert same value in a Datagridview C#
Go to your event DataGridView and choose the option CellEndEdit. Within this event method enter the following code: private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e)…
-
1
votes1
answer95
viewsA: How to add an icon inside a Textbox using Material Design?
Use the Canvas, as it allows moving the elements to any corner. Use the padding in his textbox to leave a space on the left side. It is important to leave the materialDesign on the top line to…
-
0
votes1
answer119
viewsA: Effect of fading Windows window to (Minimize, Maximize and Close)
I got a solution to this problem. As a window without edge doesn’t have the same animations as a window with edge, so I need to leave on XAML: WindowStyle="SingleBorderWindow" ResizeMode="CanResize"…
-
0
votes1
answer119
viewsQ: Effect of fading Windows window to (Minimize, Maximize and Close)
I left the WindowStyle="None" and that eliminates all the animation of the window. A normal window edged has the excitement of fading to the (minimize, maximize and close). I wish that same effect…
-
0
votes1
answer61
viewsA: How to fill empty space on the Grid with Textblock?
The VerticalAlignment has to be in Stretch. Only thus the TextBlock will fill in the blanks. <Window x:Class="ambiente_teste.MainWindow"…
-
3
votes1
answer61
viewsQ: How to fill empty space on the Grid with Textblock?
I have the following XAML <Window x:Class="ambiente_teste.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"…