Software Development Network Logo
  • Microsoft ISV
  • Visual FoxPro
  • Visual Studio
  • IE Development
  • Smart Devicet
  • .NET Development
  • Audio and Video
  • Game Technologies
  • VS Team System
  • Visual C++
  • Windows Vista
  • Visual Basic
  • SQL Server
  • Visual C#
  • Windows Forms

Software Development Network >> Windows Forms

Windows Forms

New Question

TextBox Forecolor change when disabled
.net 2.0 visual style
View images in a Image List - List View
ToolStripProgressBar/progressbar
Cross thread error?
listview problem
ListBox - Number of visible items?
PropertyGrid description pane size
Rogue objects in Form.Designer.cs file
WebBrowser and BindToMoniker

Top Answerers

ofer ebert
Furby
lissbpp
olgaF
Alan S
Dipendra
ChrisB999
amiga
Korgman
Fradam
SAX (Simple API for
Only Title

Answer Questions

  • GConst How to color specific rows in DataGrid (.NET framework 1.1)

    Hello! I am still using .NET framework 1.1 and Visual Studio 2003 and I have DataGrid object binded to a DataTable. Everything is fine, the problem is that I would like to color just specific rows (fonts) (depends on some field in DataTable if the row will have different color or not) in DataGrid. I could not find any way to do this. I found out that it is possible to color rows (fonts) in Paint event of DataGrid. Is there any way to color just specific rows in DataGrid Thanx for any advice, Ziga You would have to create a custom column style to do this. Maybe this sample in the windows forms faq will help. ...Show All

  • SiddCF Custom Action dll in C#?

    Is it possible Getting entry point not found when building. Wow. Yet it can be done with VB Net and a Module. That's a custom action installer class call where Visual Studio provides infrastructure to call predetermined Installer class methods in an assembly. This is a custom action Dll of the kind that existed before .NET: http://support.microsoft.com/kb/253683/en-us You cannot create custom action Dll like this in C#. Not possible, no. It needs to be a C++ Dll for a direct call into a Dll custom action function. http://msdn2.microsoft.com/en-us/library/d9k65z2d(VS.80).aspx No it can't. Well let's put it this way. If you use .NET Installer classes in any managed code language, Visual Studio setup ...Show All

  • tasleemarif Possible DataSources for a TextBox (Help Please)

    My question is this: What can be used as a DataSource for Formatting Text a Certain way The type of Text Formatting i'm working on in my project is a Casscading Style Sheet Generator,for a Site already In use(sorta like myspace.com)... Can you have a TextBox Read & Apply the text on a StyleSheet (CSharp) or would it have to be say a XML file Than the Form Controls will Edit the right sections of the CSS Example : table.user_aboutme { border:2px dashed #6694cf; <----------- Auto Insert of Color from CSS Supplied to the program text-align:left; padding: 2px; } td.user_aboutme_hdr { text-align:left; color:#2d7bbb; <------------------- In Every Spot threw out the CSS Supplied(DataSource) background-color:transparent; ...Show All

  • yazoox installation folder & windows installer

    hi all, is there a way to check the installation directory of msi package and prompt the user if the folder they choose is not valid. if so can anyone point me to the right direction ,i tried custom action or installer class c# and i am not getting no where. any help is greatly appreciated. thanks for answering, what I meant is : my setup project will install (add ) a new folder(ex:folder B) to an existing application installed previousely(at folder A), i know that windows installer will create a new folder by default but what i need is if the user enter a folder different then the one where the application(folder A) was installed, i should prompt them the enter the right one. is there ...Show All

  • Simon Dahlbacka Datgridview / C# problem

    Hi, I have classes: public class role { string _roleName; ... public string RoleName { ... } } public class person { int _age; string _firtstname; string _lastname; role _role; public role Role { ... } } I try bind properties to datagridview but (person) Role.RoleName doesn't work. Example: person p = new person(); p.FirstName="Niko"; p.LastName="Jalkanen"; role r=new role; r.RoleName="It-Designer"; p.Role=r; dataGridViewTextBoxColumn1.DataPropertyName = "Role.RoleName"; ... datagridview1.DataSource = p; every other bind works but not Role.RoleName, what I'm doing wrong --Niko  Is possible make via databinding Or some other way I haven't tested it but in this ca ...Show All

  • Shepherd_85 I can't reach my program with using keyboard.

    I can't reach my program with using keyboard. I want my program is being shown when I click "A" key whenever. I am waiting your help... Do you mean a shortcut key for start your application from the desktop Ah, okay. You didn't mention anything about a NotifyIcon. A application gets notified of keys being pressed when the application has focus. When you hide your form and use a system tray icon your application does not have focus and will not be notified of key presses. If you want your application to watch for key presses when it does not have focus you'll have to write a system-wide keyboard hook--which is not trivial, even in .NET. I wouldn't suggest watching for such a generic key as 'A' though. ...Show All

  • Leon Mayne How to detect printer status?

    I need to build a small application that will print files dropped into a directory and display a status window during the printing that includes the current status of the printer and any printing errors that may have occurred. The printer will be a network attached printer and not a local printer if that makes a difference. I also cannot use the built-in Windows print dialogs for this (it's an overlay over a Flash application and thus needs to look like the Flash app). I'm not sure where to look in the .net API to get started with the code design and implementation. I suspect using something in the System.Management namespace will give me the info I need, but I'm not sure yet. So basically I'm just looking for a little nudge in the right d ...Show All

  • Badri Narayanan Disable TreeView node selection?

    Hi, I have a requirement where the treeview needs to get populated in a readonly mode. I tried using treeview.Enabled = false but it also freezes the scrollbar. The user should be able to navigate through the treeview using scrollbar but it should not allow node selection. How can I do this Please help.... Thanks in advance, Narendra. Hi Narendra The easiest way is in the AfterSelect event of the treeview, unselect the node if in read only mode. This causes a tiny little flicker but gets it done. HTH Hi, Can i know how to unselect the treeview node Thanks V.Narendra ...Show All

  • js06 Designer randomly changing the size of controls. This is NOT good!

    I have a large app with MANY dialogs and forms. Recently, when I open up many of them, the size of the form or internal controls has changed. Seems to be random. Funny thing is, the compiled version of the app shows the dialogs at the right size. Then, I can check one out from src control and it is the WRONG size. Check it back in and recompile, and it shows up WRONG. I can revert to latest version of the dialog and recompile. Everything looks good, but it is still screwed up when I open it back in the designer. Anybody ever seen this This is going to cost me a LOT of time to fix... I have had the same issue when controls are set to auto size. I ended up just manually setting the controls size (set autosize to false) and then lo ...Show All

  • GRK Both DataSource and DataSourceID are defined in Gridview1

    By the way you guys in this C Forum ROCK. Other forums may take weeks or months before you get an answer. I have a problem using C# on a ASp.NET site. I have a Table Adapter with two queries. 1 to return all projects and the other to return projects on ProjectID parameter. I use GridViewProject bound to ObjectDataSource1 to return al projects, but have a search textBox with a button on the same page. I have included in my page_load event some code to do as follows: if (textBox == "") // I have used == null to no avail as well. GridViewProject.DataSource = myAdapter.GetProjectData(); else GridViewProject.DataSource = myAdapter.GetProjectDataByProjectID(textBox); //textBox = TextBox1.Text I have alre ...Show All

  • Jason Zhang Access to the path 'e:\System Volume Information' is denied.

    whenrever i am trying from root path of drive i am getting following error other wise its working fine Access to the path 'e:\System Volume Information' is denied. how to solve this problem foreach ( FileInfo fInfo in directory.GetFiles("e:\", SearchOption .AllDirectories)) { // do some work } thanks As you've found, GetFiles() is pretty unforgiving because it assumes that you’ve got nearly unrestricted read access to all of the files and directories you are trying to access and doesn’t offer an option to override that. In order to not break down in this manor, you might be better served by writing your own code at a slightly lower level that can handle a single directory fail ...Show All

  • Alias Culture of DatePicker

    Hello Is it possible to change culture and language of DatePicker Thank you (Moderator: Thread moved to this forum for better responses) Hello All. worldhello: Yep, to whichever you want: private void Form1_Load( object sender, EventArgs e) { dateTimePicker1.Format = DateTimePickerFormat .Custom; CultureInfo ci = new CultureInfo ( "de-DE" ); DateTimeFormatInfo fi = ci.DateTimeFormat; dateTimePicker1.CustomFormat = fi.ShortDatePattern; } I've coded it but the language on calendar did not changed to desired language. Waiting for exact solution... Hello All. worldhello: Well, then by all means, tell us your exact requirements. ...Show All

  • Holistic DataGrid expand/collapse button rectangle

    Hi, I have to write an application which expands or collapse the row of the datagrid. My application gets the datagrid object reference, row index and action(expand/collapse) as the input information. I cannot call any datagrid public members of the datagrid directly , but I have a utility which mouse clicks on the screen if point is provided.So now I need a way to find the rectangle region for the + button on the DataGrid control. I tried using the AccessibilityObject of the DataGrid object to get it as the child but it doesn't come as the child of it. Is there any way to get the expand button rectangle. I am thinking of looking for the relative location of the + symbol on the RowHeader, and use that info to calculate the + symbo ...Show All

  • kinki Windows Forms source code availability

    This is a lazy question, but is the source to classes in System.Windows.Form available If so, where Thanks for the tip. But I thought there was some process by which we can get access to the source - this is dissapointing. The source code in IL can be extracted (or at least most of it) using the ildasm.exe tool! However, be warned, MSIL is not an easy language to understand! Yet, its specification is also available i guess. You can also view shunks of the IL code by selecting only classes/methods ... etc that you want from the very same tool. Use the dump menu and play with the options of the dump, or read the documentation of the tool on MSDN. Hope this helped! ...Show All

  • allison_h Access Web through Excel?

    Hi I'm still new to VBA in Excel, I was wondering if anyone knows how to access the internet content through Excel using VBA coding Is there are a library that allows you to do that, if so how do I get the library and it's detailed functions Many thanks nevermind everyone, I've figured out how to do it. I find an article called CONNECTION INTERNET VIA VBA http://www.vbfrance.com/codes/CONNECTION-INTERNET-VIA-VBA_35329.aspx ...Show All

424344454647484950515253545556575859

©2008 Software Development Network

powered by phorum