Questions tagged as 'c#'

3
answers

Set minimum number of characters in Textbox

How can I set a minimum amount of characters that should be set to a textbox ? I'm using Visual Studio 2013, creating a site in aspx.     
asked by 29.07.2016 / 21:13
1
answer

Remove Null Item from a ComboBox c #

Hello, I need to develop an advanced search filter. I created some comboBoxs for the keywords, but whenever I need to fetch the contents of a column that eventually has less content than another column, the comboBox is populated with Cells in Nu...
asked by 29.07.2016 / 20:51
1
answer

'Game.Server.GameObjects.GamePlayer' does not implement interface member 'Game.Logic.IGamePlayer.AddPrestige (bool)'

Error:    'Game.Server.GameObjects.GamePlayer' does not implement interface member 'Game.Logic.IGamePlayer.AddPrestige (bool)' Code: public class GamePlayer : IGamePlayer { public void AddPrestige(bool isWin, eRoomType roomType)...
asked by 30.07.2016 / 18:10
1
answer

View a Youtube video through videoView through Xamarin

I need to display a video by a URL , such as a YouTube link using the VideoView tool, I did some research on this, and I got this code, but it did not work, I always get the message that the video could not be executed. I already gave pe...
asked by 07.09.2016 / 20:23
1
answer

Dynamic filters using lambda

I have a table    ErrorsProduction_Registros that links to another table called    ErrorsProducao_Tipos. I need to perform dynamic filters in the ErrorsProductionRegister table using lambda expressions. If I run the filters like...
asked by 13.09.2016 / 22:34
1
answer

Header reading in WebApi

I have a code that makes a post for a url and adds some parameters to the request Header HttpWebRequest req = WebRequest.Create(new Uri(url)) as HttpWebRequest; req.Method = "POST"; req.ContentType = "application/x-www-form-urlencoded"; req.He...
asked by 15.09.2016 / 04:38
1
answer

Performing Submit Form using C #

The following HTML login form is available <form action="/Home/Login?ReturnUrl=%2f" method="post"> <input name="__RequestVerificationToken" type="hidden" value="W3ndyLx5kkFIy_QKjOGhEYQoHFtF4kIMFxLIG42t2r5tJJKwnzCy1iMmLw8SFH6yIm...
asked by 15.09.2016 / 14:46
1
answer

XmlSerializer generates file with empty space before the closing tag

I'm using the following code to generate an xml: public bool SerializarObjeto(object o, string pathArquivo) { var xns = new XmlSerializerNamespaces(); XmlSerializer writer = new XmlSerializer(o.GetType()); StreamWriter file = new...
asked by 20.07.2016 / 07:23
1
answer

GetWindowText in C #

How can I use the GetWindowText function in C #? I need to convert this function into delphi for C # function FindWindowExt(partialTitle: string): HWND; var hWndTemp: hWnd; iLenText: Integer; cTitletemp: array [0..254] of Char; sTitleT...
asked by 21.10.2016 / 13:44
1
answer

Insert data into a real-time text box with Timer [duplicate]

I'm using timer as follows: System.Timers.Timer aTimer = new System.Timers.Timer(); aTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent); aTimer.Interval = 1000; aTimer.Enabled = true; In the OnTimedEvent method I do the...
asked by 20.10.2016 / 13:27