Answer Questions
Marzullo deployment not work on different machine please help
Dear All I have very bad bug in my program as when i run it on where full visual studio 2003 then project work ok and deployment kit also work ok. when i change machine where .net not load i load first framework then deployment kit then i run project.exe then it shown error message trayed error Just-in-time debugging anexeception 'System.Runtime.interopservices.comexception' has occured in project.exe An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in system.windows.forms.dll Additional information: Class not registered please tell me in what is this and how deployed windows application different ...Show All
dellthinker IExtenderProvider doesn't work for ToolStripMenuItem
Hello All! I want to add some properties for ToolStripMenuItem (VS2005 - WinForms): [ProvideProperty ("TestID",typeof(Control)),ToolboxItemFilter("System.Windows.Forms")] [ProvideProperty("TestDesc", typeof(Control))] public class Test : System.ComponentModel.Component, IExtenderProvider { ...... public virtual bool CanExtend(object target) { return (target is Control); } ..... } it works almost for all controls but not for ToolStripMenuItem. I cannot make it work, although CanExted return true for it.I have tried to use Component, Control and ToolStripMenuItem in property "ProvideProperty" attribute and in CanExtend, but without the result. Can someone help me I cannot find solution ...Show All
PeterVrenken Convertinn from hexadecimal to string in C#
Helloz all, am writting a project using C#, i have a data stroed in the SQL DB where some fields are in hexadecimal format, i want to show them on datagridview on the windows form, how can i convert them to the string values of them The following code could inspire you: static void Main( string[] args ) { string byteMsg = "3C-68-74-6D-6C-3E-0D-0A-20-20 -20-20-3C-68-65-61-64"; string[] parts = byteMsg.Split( new char[] { '-' } ); StringBuilder stringBuilder = new StringBuilder(); for( int i = 0; i < parts.Length; ++i ) { stringBuilder.Append( (char) Convert.ToInt32( parts , 16 ) ); } Console.WriteLine( "msg: {0}", stringBuilder.ToString() ); Console.WriteLine ...Show All
remedios_ Form paint while OnLoad processing ...?
I have a form with various controls on it. I have some code that runs on the form's OnLoad event, but while that code is running, the form doesn't fully paint itself. There's got to be something I'm missing to tell the form to go ahead an draw itself regardless of running code. Any pointers appreciated. Thanks in advance! How about assigning your processing part to an asynchronous "background worker" (.NET 2.0) Hi this is due to the fact that the code that is processing is done on the form thread. if the code you are processing takes a long time, and you need to display the form before the code is run, you should use an asynchroneous approach: - backgroundworker example http://msdn2.mi ...Show All
Neo the 1 Cannot Reflect on custom Attribute
hallo, i am creating some PuginFramework. I use a CustomAttributes to sign Methods to be later invoked from a Delegate. When reflecting over the Assemblies to load i cant get this CustomAttributes. Here is some Code: i hope somebody can give me an advise... Thanks Arnold ================================================ //ObserverAttribute Class [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] public class ObserverAttribute : Attribute {...} ================================================ //ObserverAttribute assigned to Method [ObserverAttribute(some Parameters...)] private void ThisMethodShouldBeCalled(object sender, EventArgs e) {} ================================================ //Reflecting to get the Custom Attribute Assem ...Show All
Handi Error Code: 0x80070643
I have tried to install Windows and Office updates utilizing the Automatic installation tool; but, the initialization takes place and none of the updates are intalled. I ran WinDoctor and I am told that I am missing file "ORUN32.exe" and it cannot access "learn32.dll" and "pctree32.dll". I have searched my computer and found the orun32 and pctree32 files but not the learn32 file. I don't know how it got deleted and not sure how to get it back in place to use the automatic update. What do I do to get my Automatic updates to run again Please help me! In the toolbar Icons on the left you should have a small yellow sheild with an exclaimation mark in the middle. Jusk click on sheild icon in th ...Show All
St&#233;phane Beauchemin Open close save
Hi i realy need help i want to create a alternative to word but my save featcher dose not save the things in my text box how do i set it to save the text box please help me Giggig guy Hi, You're right, JWesley, but if it's an altenative to MS Word, you'd also need a dialogue box too. I'm sure that you know, Giggig guy, how to create a dialogue box, but if you don't, I've stated it below: Firstly, add this in your "Save" or "Save As" button code: DialogResult buttonClicked = saveFileDialog.ShowDialog(); if (buttonClicked.Equals( DialogResult .OK)) { // Your block of code will go here. } I hope that this helps, and I hope you succeed making your application. Eragon. ...Show All
troy2000 VB 2005 SignTool Publish Error
I am working on a program that I have been able to build and publish before but now when I try and publish I get an error saying the project failed to build and: "SignTool reported an error "Keyset does not exist." Any thoughts Thanks Try to refer the pfx file in each project that you have, if that doesn't work too, right click PFX in explorer and install it and try to publish again. I had the same problem as you, and also on the a projet to which publishing worked perfectly a couple of times. Don't know the root cause of the problem, might be a certificate issue, but all I did was to click on the signing tab of the properties window of my pro ...Show All
srinivasintouch I can't update with GridView
I use The data base oracle Table name : student Query SELECT (exam1+exam2+exam3) sum,return_status(student_no),STUDENT_NO,STUDENT_NAME, STUDENT_ADDRESS,STUDENT_BRITHDAY,STUDENT_TELEPHON,EXAM1,EXAM2,EXAM3 FROM STUDENT; use "vb I use the manual code that's successful but I can't update and delete this data any suggestions ------- this code ------- <asp:GridView ID="GridView1" DataSourceID="oracle" EnableSortingAndPagingCallbacks="true" autogeneratecolumns="true" autogeneratedeletebutton="true" autogenerateeditbutton="true" AllowPaging="false" AllowSorting="false" datakeynames="student_no" Runat="Serve ...Show All
PARVAIZ Binding 2 Forms
Hi All I'm sure this question has been asked a 100 times over but could someone please help me with this in a detailed way. I have a form, with a datagridview which is linked to binding source. For our purposes let's call it BindingSource1. This datagridview shows a list of patients which are currently in my database by displaying only patient numbers. What I would like to happen, is i select a patient number from the list and click a button on the same form which which opens up another form which will display the information about the patient. I only want to display this information and not allow the user to edit it. How do I go about passing the information on the patient, ie. the unique_id or whatever is used to the second form ...Show All
billcoke How to organize a field with "Last changed date/time"?
I have a field in my datatable to record the last date/time the record has changed. My problem is how to update this field programmatically. When I use the TextChanged event of a control, this also fires when the record is accessed. I have tried to use the DataTable.Rowstate, but also this is modified when I don't make any changes. With a DataGridView I have no problem, only with the detailView. Who has a suggestion Or should the rowstate work, but is the something else that causes this modified state Maybe the use of a flag to indicate that a process to modify has been performed by the user solves this issue. This flag can be set to true only when the user press a button or link to modify an spe ...Show All
SaloS String with color
Hi all, Anyone knows how to put some color to string output For example, I have this output in my listbox: string value1; string value2; myListbox.Items.Add(String.Format("{0} - {1}", value1, value2)); and now I want to color value1 red and value2 blue. How can I do that Idea/suggestion are very much appreciated. Regards. You need to make your listbox ownerdraw, list box items don't have colors, I don't think. Hi, The string itself will not record the information of color. It's the responsibility of its container to draw the color. Here is an example, but if you want different color in one item, you need make the effort to draw it by youself. private void For ...Show All
parlance Forms in different dlls needs to communicate
hi, I am fairly new to Visual Studio (2005, c++) and I have a large application that needs to be ported to this plattform. Most of the application we need to rewrite from scratch (as it contains very bad code). But since this application is large, I need to devide it into several dlls (assemblies) and I also need to put forms in the dlls. I have tried to search the Internet for this, but I can't find out how the forms can communicate with eachother! Do you understand my problem Well, I have three dlls; A,B and C. In each dll I have one form AF, BF and CF. AF is a mdiparent and BF and CF are childs. This works and I can show them and operate with them, but I cant get BF and CF to send data to eachother. I tried to u ...Show All
szolDat Updating an unbound DataGridView at Runtime
I am a beginner programmer, so please bear with me. Say you have a DataGridView. You dock it to a Window Form. You set some properties such as AllowUserToAddRows and AllowUserToDeleteRows. So far, so good. Now, according to MSDN, a DataGridView can be eighter bound to a Data source, or it can be used as is. If it's not bound, you simply add rows, fill them with data and it should work just fine. My problem is this. I build the solution, add a Setup project to it and then I deploy it ( that is, install it ) on my machine. Now, I open the application and start populating the rows with data. Everything is fine. I close the application. When I open it again, bingo! All the data is gone. There must be some king ...Show All
Greg Beech Error launching Clickonce app from intranet
I have an app which is deployed on an intranet site. When I try to launch the <app>.application file, I get the error below. BUT, if I do a RUNAS and run under a admin user of the webserver, the app will launch. Running framework 2.0 Windows Server 2003 Here is the error: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES ...Show All
