Answer Questions
Andy McDonald can we access form controls from an external assembly (dll assembly not within the project)
Thanks When I need an object from another assembly I just reference the dll in my other solution or project. This is a good approach for reusable(independent) components and more managable for team development. There is a performance penalty for big assembly. In fact, it won't load if an assembly gets too big. Run-time loading using LoadFrom is a good idea when you have to implement some sort of plugin capability to your application. At work we use it for Assembly Remoting. We have a very, very thin main application that will hardly get updated. This is the one that gets installed on the user machine. The actual worker assemblies(those that will change quite often) are place ...Show All
SJWhiteley How can I make update version for application which was signed with certificate now expired?
If I change expired code signing certificate to new one and publish updated application, client will fail to launch. And code signing fails if I try to use expired certificate. How can I make update version for application signed with old certificate If anyone else is having this same problem, please report and comment about it at the following link as this will become a major issue for people whose code signing certificates are expiring over the next few months. If you have this issue and go to the link, hopefully, they will have a fix or a workaround by the time you go there. Nothing yet. https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=207513 ...Show All
Fahad349 combo box
any kind soul can help me, i really appreciated. i am using c#. and access DB. i have a table with 3 columns: ID, NAME, AGE. is it possible to have the 3 colunms in one combobox what is the code and let say i have a combobox which shows the ID. it is possible to have 2 textbox that shows the NAME and AGE for example when a person choose an ID from the combobox, the 2 textbox will change accordingly to the selected ID how do i do that. pls help me urgently. i sincerely thanks in advance. hi, 1) for your first question, you will need to write your own code , like to iterate through you datatable rows something like this Foreach(DataRow dr in Mytable.Rows) { combobox1.items.Ad ...Show All
Behn26 CryptUIDlgSelectCertificate function
Hi, I need to use the function "CryptUIDlgSelectCertificate" in my application. I am new to security in .NET. Can someone please advise me as to how I can use it my application, a short example. I need to authenticate the client at the start of the application(which is obvious). The application is a windows application. All help is very much appreciated. Thanks! Solved! ...Show All
cb3431 datagrid columns details in new window
i have a datagrid carDatagridView where i show 2 tables from my car database table. Now i want that when the user double click on a cell there appears a new window with al the details of my car. How can i make this pass the parameters to the new window Hi, JohnBurton here is an example for you ,I hope it will help you. and how do i pass the items to the new form can you give an example It's better to use datagridview (.NET 2.0) instead of datagrid control which has more events to catch and it's good. in CellContentClick event of Datagrid view do the fallowing private void dgvMap_CellContentClick( object sender, DataGridViewCellEven ...Show All
Bidhu P.M. Rowediting does not work?
Hi there, I am not sure if I am right within this forum but it's worth a try: I try to build a GridView and receive the data from SQL Server 2005 - if I implement the source within the .aspx-file it works fine to make the rows able to be edited ( < asp : SqlDataSource ID ="SqlDataSource1" runat ="server" ConnectionString =" <%$ ConnectionStrings:ACUConnectionString %> " SelectCommand ="SELECT * FROM [Access_level]"> </ asp : SqlDataSource > But if I try to implement the datasource within the pageload nothing happens on a edit-click. Therefore I implemented an event onRowEditing but now I do not know how I make the fields editable Hopefully you know a solution ...Show All
Davids Learning Datagrid
Hi everyone, May i know how to read all the values in a datagrid one by one. I want to add all the values in each row in a particular column in the datagrid. Is it possible to do so Well, a datatable is not a real control like a repeater. In ADO.NET, DataTable objects are used to represent the tables in a DataSet . A DataTable represents one table of in-memory relational data; the data is local to the .NET-based application in which it resides, but can be populated from a data source such as Microsoft SQL Server using a DataAdapter Hi, Is dataTable similar with repeater May i know what verysion of visual studio does support datatable as i could not find datatable in the toolbox. In addition... ...Show All
KenHerman Load data after show the form
Hello all I am working in a big windows forms project and we are getting troubles with the load times of some objects. In some situations, the view going to background to appear again when the data is already loaded. My question is: Is there any way to give priority to the paint method of the view and then begin the load process Is it a design problem of our system Thanks in advance to all. Cheers Hi. I have a windows application with a similar problem. The application contains many tabs with many controls that are bind to a DataSource. what I've done to minimaize the long loading is to load controls and data only when needed. When the user opens a selected entity, it loads only the first ta ...Show All
aria8 Black label and persistent wait cursor
Hi everyone! I have a problem with a GUI, which has a label and a panel. When executing, the label is always black and the cursor is wait cursor (until the program ends). Moreover, in the Windows XP toolbar doesn't appear the label of the running program until it ends. Could this problem be due to the fact that the gui class even has the responsibility to update the graphics of the panel Maybe it is better to delegate this task to another class Thanks Use a separate thread for your simulation loop. It looks like your loop is blocking the UI thread. The dirty way is put a DoEvents() method inside the simulation loop. I mean insert {...} block Can you pos ...Show All
VuaCorona Help in getting all the controls in a form
I want to know how to get all the controls in a form beside using "for each control...next control" can anyone help me Dim allControls As New Collection(Of Control) EnumerateControls(Me, allControls) Private Sub EnumerateControls( ByVal container As Control, ByVal controlCollection As Collection( Of Controls ) ) For Each currentControl In container.Controls controlCollection.Add( currentControl ) EnumerateControls( currentControl, controlCollection ) Next End Sub You *could* store them in a collection: Dim theControls as ControlCollection = Me.Controls but it only stores them in the array. To go through each control, you would need to iterate through eac ...Show All
Tharindu Dhaneenja Refresh DataSet
Hi There, I have created a simple form containing a DataGridView. DataGridView displays the detail of an account from database. Details updates every 4-6 seconds in the database. My question is that how can I refresh the data displayed in DataGriedView every 5-6 seconds. And how can I retrieve the data into Dataset every 5-6 seconds from the database, which is DataSource for DataGridView control. Here is my code. ------------------------------------------------------------------------------------------------------------------------------ namespace DataGridViewSample { public partial class AccountForm : Form { public AccountForm() { InitializeComponent(); DataTable dataTable = GetAccountDetails().Tab ...Show All
Marius S Make selected node in treeview remains highlight after loosing focus
hi, I have a treeview in my project, when i leave tree view and focus on another control, selected node in the treeview no longer remains highlight. Is there any way that selected node stay highlight even after loosing focus Set the HideSelection property to False. ...Show All
MarilynJ how can I best deliver the HUGE .NET 2.0 download to customers without causing them to quit!!??!?
I am writing a chat application. I am confused by a few things and hoping anybody can shed some insight. 1. How many users are running .NET 2.0 vs 1.x 2. If your exe requires .NET and the user doesnt have it installed WHAT is the best way to get the user to install the 25mb .NET files without freaking file without laughing at you and quitting. 3. Is there not a LIGHT VERSION that isnt so large and doesnt take 12 MINS to install on my FX 57. Has anybody tried a web deployement FRUSTRATED. 1) well, some people are using both. I would say about 50% of people are using .NET 2.0. .NET 3.0 will be as standard in Vista, Windows XP SP2/MCE2005 and WS2003 have .NET 1.1 built in I believe. 2) Well, you ca ...Show All
Chris Lang Having to disable Virus Scan to use an application that has smpt email
I have an application with email code in it. the code creates an csv file attaches it to an email then sends it to a supplier. loop next supplier...... my problem is that my virus scann is blocking some how error the message could not be sent to the smtp server. the transport error code was 0x800ccc15. the server response was not available Any help would be great I’m afraid that you are going to have to be much more specific on the problem you are having as you’ve given only the what of what the end problem is but left out the context of where this is happening and what you are doing to see this problem. Without more information there is little chance of anyone being able to help. ...Show All
Thibaud events keep on occuring
Hi, i have 2 datatables with events. I am using Handles dt1.TableNewRow methods for both tables to insert the id for each created row. now it works fine if i am creating a row for each table seperately. the tables are linked by a filter. now if i add a new row to dt1 , then leaving focus on dt , i add a new row to dt2.. the event keep occuring.... why is that basically i need new records in dt2 to take the same multiplicity id as in dt1 current row. it works if the record in dt1 is not a new record. I cant understand why it is doing so for new ones - the id has been generated, i checked. Private WithEvents dt1 As DataTable Private WithEvents dt2 As DataTable Private Sub ForceChangeRow() If ...Show All
