Questions tagged as 'c#'

1
answer

WPF C # Outlook MailItem insert image in body of email

I'm using the code below and I can insert an image into the body of the email. How would you like to add more images? Is it necessary to create multiple "imageCid"? The code below only shows the last image. Microsoft.Office.Interop.Outlook.Att...
asked by 23.08.2017 / 00:07
1
answer

Identifier in grid lines

Could you tell me if there is any simple property or way of putting an identifier in the rows of the grid but without being the ID in the table, for example I have 5 records with id 32,45,99,100ee 200. But I want to put on the grid 1,2,3,4 and 5...
asked by 22.08.2017 / 22:49
1
answer

WPF C # datagrid create header multiple columns

I am creating dynamically columns for a datagrid, however I need to create headers like below, any tips on how to do using C #? --------------------------------------------- | Person 1 | Person 2 | | Column 1 | Column 2 |...
asked by 10.08.2017 / 20:26
0
answers

MetroFramework - scrollbar only stylizes after click event

Good luck, there is a bug in the layout that when I load the Grid, scrollbar (horizonal and / or vertical) is only stylized after some click event. For example: Scrollbar before the event: Scrollbarafterevent I'musingtheframework Modern U...
asked by 10.08.2017 / 20:59
1
answer

c # Silent install from localDB

My program needs SqlLocalDB.msi to run. I downloaded this file and put it on the CD that I'm going to distribute the program. The question is: Is there any way to make my setup.exe run this SqlLocalDB.msi right after I finish installing my pr...
asked by 08.09.2017 / 21:31
0
answers

How to leave a maskedbox

How do I leave the values as value in Reais, not a common number. Ineedthesevaluestobe2.00,ifpossible,leave$2.00MyController:publicActionResultAdiciona(AbastecimentoModelviewModel){viewModel.TotalGasto=viewModel.Litro*viewModel.VlrUnit;if(Mo...
asked by 08.09.2017 / 23:48
0
answers

Writing in TextBox freezes the form

I have a form that has a TextBox and would like to write to it but give a typewriter effect so that the text is not added "dry" completely. I've created a method that gets the text I'd like to add and does the effect as expected. However, the...
asked by 08.09.2017 / 21:45
1
answer

how to read a Json result of google directions API

I'm getting this json from the google directions API link I need to read it But it's difficult. What I have so far: (even though awareness is wrong) public static async Task<List<Model.Localizacao>> GetDirectionsAsync(L...
asked by 09.08.2017 / 18:19
1
answer

How to use POST in a json for an Http server

I was wondering how can I do a POST from a json to an http server. The code I am using to do json is as follows: Person person= new Person(); product.FirtsName = "Ola"; product.ID = 1;...
asked by 24.08.2017 / 12:10
1
answer

What is the function of this MainWindow file?

According to the project below: link I know that the purpose of the Main function is to be the main function, but in the example above the MainWindow file is also doing the function of presenting the layout function should it not belong...
asked by 25.08.2017 / 13:49