Answer Questions
Long Yan Generic math functions
I want to create some functions that operate only on the numeric types but I don't particularly care what those types are. I'd rather rely on the invoker or .NET's automatic casting rules to create the answer in the appropriate type. I could declare two versions of every funciton one taking and returning doubles and the other decimals but that seems excessive and slow. Is there a way to make a function generic yet restrict its parameters to nume ...Show All
dhtroy Windows application to mobile phone application
can anyone help me to publish my project of a calculator to my nokia 6600 in a way so that it will work there because right now it wants to install .NET on other computers if i want the program to work there, lol, and i dont really want the whole of .NET installed on my phone... so can anyone help me can i just use the .exe file i dont think that i can, but have not actually been able to try yet... i am very certain that i cannot. Thank ...Show All
Syed Faraz Mahmood trace of function call
hi, how can i trace source (class or namespace) of function call inside of code Here's a code snippet System.Diagnostics.StackTrace trace = new System.Diagnostics.StackTrace(); System.Diagnostics.Debug.Assert(trace.FrameCount > 0); Console.WriteLine(trace.GetFrame(0).GetMethod().Name); This will give you the Method name in which the code is currently executing. trace.GetFrame(0).GetMethod().DeclaringType.Namespace &n ...Show All
Raghavendra RAV Components parameters
Hi everyone, In here; (object sender,System.EventArgs e) I do not understand anything from the parameters of C#'s components. What is the logic of using these paramater for all components in C# Would you please explain them to me Thanks, Mert mert-1 wrote: Can it be said that all components(objects which make the events released) in C# has one unique method and when they relase their event, then the method which is unique ...Show All
Bill_Yeager Threading in C#
Hello Everyone, I have a tab application, which initially I made single threaded....I added a dll which has a form. Now when I change to a tab method in that dll gets fired and form comes up, which makes everything else unresponsive.... Whats the best solution to implement thread to solve that problem.... Secondly, I tried doing something this way..... namespace something { public partial class Some : Form { public Some() ...Show All
SuganDave Show Method
I want to be able to press a button and is shows form2 and hides form1. how would I go about doing this Hmm... form2.Show(); form1.Hide(); Nevermind, I got it. I had to create an instance of the form first and call Show on that. I'm having the same problem. I'm creating the new form by right-clicking under the Solution Explorer and selecting "add new item" and ...Show All
Somnath Drawing shapes
Hi I want to draw a shape on a bitmap but not by clicking... but like in a paint or something... i will explain it... I can draw my shapes on a component. I do it by clicking in one point (for a ractangle) and then move my mouse and i release the mouse button. When i release the mouse button the rectangle is being shown on the compnonent (i use a bitmap for remebering when i do repaint). Oh and my problem. When i move my mouse after clicking i ...Show All
chairuou Controling windows Volume
Hi, Is there a way to make an application control the windows volume Thanks Check this out : http://www.geekpedia.com/tutorial176_Get-and-set-the-wave-sound-volume.html Thanks... It works with VS2003 also.. ...Show All
Ramrakhaini Shanker Application.Exit
Ok. Can someone tell me how to when the application closes to perform a function..maybe something like this. if (application.exit == true) { MessageBox.Show("Are you sure"); } Take a look at the Application.ApplicationExit event. You cannot cancel the exit because the Application.Exit will kill your forms without raising the Closing event. If you need to have the ability to cancel, then do NOT call Application.Exit. Instea ...Show All
Zerd how to plot a graph?
Hi, I wanted to plot a graph by reading numbers from a file. How would I actually plot anything Thanks Bruce Hi, Check out the following article: http://www.codeproject.com/csharp/ZedGraph.asp Regards, Vikram ...Show All
Yoann what is ADO.net??
I know nothing about ADO.net, Is it something about DataBase Access What can I do with ADO It is helpful , say, do I need learn someting about ADO I work on windows client programming mostly. Any help will be appreciated. ADO.NET is a set of classes and interfaces that abstracts the acces to a database. For instance you can work with Oledb* and work with ayn database or you can use Sql* for accessing the SQL server or you can use Oracle ...Show All
keredc Master form DataGridView overprints Detail forms - how to put in background?
I've got an MDI app with a Master form (SHIFT table) set up as IsMDIContainer = True, and child form with their activation from the Master form set similar to: DataRowView SelectedRowView; DrilTracDataSet . SHIFTRow SelectedRow; SelectedRowView = ( DataRowView )sHIFTBindingSource.Current; SelectedRow = ( DrilTracDataSet . SHIFTRow )SelectedRowView.Row; Equipment EquipmentForm = new Equipment (); // Equipment forms table is ...Show All
Jose Simoes complier generating tools in C#
there are complier wirting tools in Unix like Lex and Yacc, even in java there is javaCC, I wanted to know if there is some tool in C# ANTLR is one tool you can use: www.antlr.org. I'm not aware of anyone porting Lex and Yacc (or Flex and Bison) to C# although I'm sure some academic school or PhD candidates are working on it. However the language a tool is written in is almos ...Show All
aodeng Error during installing after publishing the app
After publishing the app, i have errors during install this app. It look like some problem with manifest file The application appears to have installed correctly. (No failures in the component store transaction details.) The only error is: Activation failed due to a Windows Side-by-Side error. System Event Log may contain some more information about this failure. Any additional details in the S ...Show All
adisingh Detection of thread executing
I have read up some on utilizing threads, being a newbie to programming in C# and converted a major function in my application to execute in a background thread (to stop the display from freezing up if I switched to another application). The threading worked perfectly and it even terminates itself after completion. The only complication I have is that I cannot update the various text boxes on my form because they are part of other system thre ...Show All
