Answer Questions
DogAss80 How to cancel form load, if error is detected during constructor execution or load event
I am looking for a way to stop the form from loading if problem occured during load (constructor/Load event). If I use this.CLose I get an error message stating you cannot close an object that has not been created. Any suggestions would be ...Show All
SwissToni Problem with C++ Forms in .net 2003
I've recently started a project at work using forms, only some thing simple using a few controls. When i press F5 to run the program in the ide, my program takes about 10 seconds to appear, debugging is also very slow. Although when i run it as a standalone exe...double clicking the exe it appears straight away and runs fine. Regards. Jimmy. I take it nobody has an answer for this then Regards. Jimmy. ...Show All
Juan Carlos Trimino Beginners trouble
Just trying my hand at my first Forms application, converting an old VB6 program I did a few years back. My problem is as follows I have 2 forms, the user selects a csv file in form1 and clicks a button, a new form, form2, then l ...Show All
Barrtee.s richtextbox and treeview problem
i am currently developing an XML editor with a tree view and a richtexbox. The tree view is populated depending on the XML format you typed in the richtextbox. What I wanted to do is everytime I click a node in the tree view,&n ...Show All
francis_zk databinding combobox AFTER combobox has been displayed, has no effect
If I do the combobox databinding during form initialization time (c'tor), things work OK, I see the column I specified in the DisplayMember, and the values are the expected ones. However, I don't always know which table, or even database a user&nbs ...Show All
tchavez Templated emails using ASP.NET User controls
Is there some way to render a user control or an .aspx page from a windows service, console app or windows form without using ASP.NET or IIS I would like to use ASP.NET's built in templating/parsing capabilities, data binding, data grids, etc ...Show All
BryanHood Design patterns and best practices for rich clients
Hello All - I have been developing an n-tier application with a .net windows based rich client (rather large MDI app) sitting on the front end for about 8 months. Hindsight once again being the case, I wish we would have spent more time up front investigating patterns and best practices to apply when developing this rich client. We have gone through phases where we thought it best to keep ALL logic out GUI components (user controls, etc) a ...Show All
Jaroslaw Pekala Nodes and trees
Ok, need a little input here. I have been searching around for something so simple, it's driving me crazy. I need to create some nodes and leaves (NOT a treeview). These nodes will contain strings. The info in the nodes will come from a text file - or xml, haven't decided yet. Reading the text file or xml is not a problem. Writing to the nodes then reading the info inside is. Anyone have a link with a good C# sample An ...Show All
HankHuf datagridview bit column - display something other than True/False?
Can I get a bound datagridview to display something other than True or False for a bit column eg Yes/No or Correct/Incorrect so no ideas then No, the Boolean column only shows the checkbox, not true/false. If you have a database and you have Correct/Incorrect in a record you can show a check for Correct and a uncheck for Incorrect. To do this set the TrueValue and F ...Show All
LukeParker settingskey property
SettingKey property In the msdn library, the explanation of The settingskey property for the toolstrip item gives no worthwhile explanation. What does it signify What is it used for If I create a new button, how do I set it Etc. Tha ...Show All
waifoong Microsoft.mshtml.dll for .NET 2.0
I've got an application which runs on .NET 1.1 and uses a reference to Microsoft.mshtml.dll. On machines that have .NET 1.1 this works fine, however there seems to be some oddities with rendering html code through it. However, I'm in the process of migrating all my existing projects to the .NET 2.0 framework, and this Microsoft.mshtml.dll does not appear to exist in the .NET 2.0 library list....machines with 1.1 also installed can run my conv ...Show All
CraigGuyer Console.WriteLine
I forgot how to sent the output to a text file when calling Console.WriteLine. Please advise. Thanks. You can redirect your standard output like so: C:\>MyConsoleApp.Exe >myLog.txt this will redirect any console write or writeline calls to a  ...Show All
Andrew Purnis how to protect the screen??!
I'm working on an application which contains images which are valuable for my boss,I should somehow prevent the users from screen-capturing .I noticed that in windows media player ,while using overlays,if we capture the screen ,the panel which shows the ...Show All
Tareq1176 Scrolling a DataGridView
Hi, I'v done a little C# WinFormApp with B2. The App loads data to a BinddingSource via List<myClass>. This BindingSource is bound to a DataGridView. Everything works as expected, when I navigate via a BindingNavigator the DataGridView marks the selected row.... BUT: I can't find a way to scroll the selected row into the visual part of the DataGridView. So I watch the selector going down - and must follow him wiht manual scrolling. The thi ...Show All
jagxx Code for adding new entry to Access DB not working (Vb6 to Vb.Net 2005)
Ok, I know I'm posting lots of questions, but I really figured this code would work, or be easy to hack around and get to work, as loading the information successfully was relatively simple to convert from Legacy to .NET. Dim rs As ADODB.Recordset Dim com As Object Dim dbPath As String   ...Show All
