Questions tagged as 'winforms'

1
answer

Convert UTF-8 string to standard C #

I'm downloading a string via WebClient() and I get a string with badly formed accents. Example:    {"fíddiesticks":{"id":4078584,"name":"FíddIesticks","profileIconId":946,"summonerLevel":30,"revisionDate":1475092874000}}...
asked by 28.09.2016 / 22:59
2
answers

Trigger event when changing value of a textBox C #

Well, I'm starting in C # and I'm having a problem. I'm working with Windows form. I'm using the TextChange event in a textbox, and with each key pressed in the field it fires the event. I need the event to be triggered only when the field value...
asked by 12.04.2016 / 14:29
1
answer

tabpage - textbox read-only

Good night guys. How are you? I have a form, with a tabpage, and with some textbox, I'm trying to deploy in the load of the page, that the property isreadonly is true. But I'm not getting it, I'm using the following link: private void Comerc...
asked by 08.07.2016 / 01:52
1
answer

Change the FormBorderStyle property to None without losing the Sizable functions in C #

Hello, I'm a little problem, because I need to change the design of my Form referring to its border, and the way I found it in doing this was to change the property FormBorderStyle to None and make the necessary changes in the desig...
asked by 15.03.2016 / 14:12
1
answer

The multi-part identifier "System.Data.DataRowView" can not be associated

try                 { if (cmbFavorecido.SelectedValue != null ) { txtID.Text = cmbFavorecido.SelectedValue.ToString(); cn = conexao.ConectarSqlServer();...
asked by 25.02.2016 / 12:29
1
answer

BackgroundWorker does not get selected value from ComboBox

I have a ComboBox of objects and I'm creating a BackgroundWorker to add these objects to my database. Without using the BackgroundWorker I can get the selected object but when I use the BackgroundWorker it returns an exception and the object is...
asked by 11.03.2016 / 20:46
1
answer

Text inside a picturebox

I want to do this in PictureBoxes so when I move the mouse it shows the message that I wrote. How can I do this? Remembering I use the Visual Basic 2010     
asked by 11.02.2016 / 04:53
1
answer

Using Dynamic Connection String in Asp.Net Webforms and Windows Forms

I'm working on a project with 4 layers ( Banco , RegraNegocio , Webforms and Windows Forms ). I made the following references:    Webforms > Business Rule > Bank winforms > Business Rule > Bank...
asked by 19.02.2016 / 18:18
1
answer

Different windows (xaml) for Landscape and Portrait

I'm programming in C # using Visual Studio Enterprise 2015 applications for Windows Phone 8.1. I was able to make a simple application, a calculator, however I would like to know: how do I use a xaml for landscape mode and one for portrait...
asked by 12.01.2016 / 00:20
1
answer

Load DataSource from ComboBox using asynchronous method

I have a combo box of cities that populate it every time I start my form. I would like someone to help me create an asynchronous method using SqlDataAdapter to fill this combo.     
asked by 26.02.2016 / 14:23