Select all text in a Winforms Infragistics ComboBox
Is there a way to do this? I want to mimic the behavior of a the UltraTextBox.SelectAll method in windows forms. ...
Is there a way to do this? I want to mimic the behavior of a the UltraTextBox.SelectAll method in windows forms. ...
Let's say I've got a control and I want to prevent it from being edited. Setting the Enabled property of the control to False will work but the control appearance will change accordingly, usually to a difficult to read black over gray font. When readability is still important, this is a real problem. For a TextBox, there are a few obvi...
public IEnumerable <Country> ListPopulation() { foreach(var continent in Continents) { var ids = context.continentTable .where(y=>y.Name == continent.name) .select(x=>x.countryId) } return GetPopulation(ids);// ids is not available here } Public IEnumerable<Country>GetPopulation(IQueryable<int> idnumbers) { } /...
I have a series of controls, but mostly textboxes and labels that need to be properly globalized. Is there an easy to way to bind them to the appropriate resource file like there is in ASP.Net? ...
I have a problem with binding data using BindingSource, typed dataset and DataGridView. My problem is: BindingSource, therefore grid, is empty after binding data (bindingSource.Count is 0). I couldn't figure out what I'm doing wrong and I'd be very happy if anyone could help me with this. My application structure is like this: I have two...
I have an UltraCalendarCombo calendar control that I need to disable a set of dates in (weekends and public holidays basically). I iterate through the list of dates for that month and set all the corresponding dates to disabled, this makes the current month look alright, but when I click the next month button on the control and try to a...
The desired functionality of the 'enhanced' combo box is a quick find method. Each item in the combobox has a ToString() method, such that they can be displayed in the drop down list. On clicking an item in the drop down list, the combobox's observers are notified of the selection. Also, every time the typed text in the combobox changes...
I want to show some graphics in a Winform app, it will be a stock's chart drawing tool. I think (but I am not sure...) I have to use a PictureBox, and using the System.Drawing.Graphics class' drawing primitives to draw the chart. I have started coding it, now it works more-or-less, but I have a problem with the resizing feature, as follo...
When an application icon is displayed, is it Windows who decides which version (bit depth) to use or is it somehow set in the ICO file? If I create an ICO file only with 32bit colors (24bit + 8bit transparency), the icon displays fine on Win XP. If I add for example 4bit version, Windows use always this 4bit version, even if there are 3...
I have a control which I have to make large modifications to. I'd like to completely prevent it from redrawing while I do that - SuspendLayout and ResumeLayout aren't enough. How do I suspend painting for a control and its children? ...
Ok, this is bugging me, and I just can't figure out what is wrong... I have made two forms. First form just has a simple button on it, which opens the other as a dialog like so: using (Form2 f = new Form2()) { if (f.ShowDialog() != DialogResult.OK) MessageBox.Show("Not OK"); else MessageBox.Show("OK"); } The s...
To start off with, a little context for the question... I have a C# .NET 2.0 program that generates web pages... I am looking for a control that allows the user to pick web friendly fonts for use in generating the web page to run on as many computer as possible. I'm currently useing the MS font dialog, but I have not found a way to fi...
In several places in our code, we notice that if running under debugger it'll show that there's an unhandled exception in the code, however if running outside the debugger it will just ignore the exception completely as if it were caught. We have an exception handler that pops up an error submit dialog that's hooked up to Application.Th...
I am developing a winForm App in C# and I have come across something that has always bothered me. Is it better practice to use a Label or a TextBox when displaying data to the user. Things like Name, Phone #, etc. My gut says to use a TextBox and just set it to read-only until the time comes that I need to allow editing from that par...
Hi there guys, i need some of your programming experience, here is the issue: When a user logging into a WinForm application (C#.NET), how can i Assign dynamically a defined Menu (differ the menu depending on the user logged into my appz) according to a Role in the DataBase? Thanks in advance for your support, time and for share your k...
I have an MDIChild form that needs to show a dialog. I'm currently doing it like this from inside the mdichild form... f.ShowDialog(Me) Should I be using f.ShowDialog(mdiparent)? What is the difference when setting the owner before calling showdialog()? Thanks. ...
As far as I know, I have added no internet access in my .net windows forms application. But every so often it attempts an outgoing connection to 239.255.255.250. I have no idea why this is happening. Is it something in the .net framework? Info for 239.255.255.250: OrgName: Internet Assigned Numbers Authority OrgID: IANA Addres...
I have a DataTable which is populated from a CSV file then, using a DataGridView the data is edited in memory. As far as I understand the programmatic editing of the data should be done on the DataTable where the user editing is done via. the DataGridView. However when I add columns programmatically to the DataTable, it is not reflected...
I'm writing a new Windows Forms 2.0 application. This application is going to have a data file. The user will be able to open the data file, do some work and save it to disk. Then he'll be able to open it later, to continue working. Same thing as Microsoft Word and .doc files. I'd like to use SQLite for the data file. However, I don't w...
My use case is this, I want to call out to a webservice and if I am behind a proxy server that requires authentication I want to just use the default credentials... WebRequest.DefaultWebProxy.Credentials = CredentialCache.DefaultCredentials; Otherwise I'll just simply make the call, It would be very nice to determine if the auth is ...