Answer Questions
mtsman HtmlElement Mouse Events
Does anyone know what the difference between the MouseOver and MouseEnter events of HtmlElement I have a web page that has a menu bar. The menu bar displays sub menus when the onhover event fires. I am using a web browser control and would like to know when the sub menu is displayed. Thanks for your help! Mark Hi, You can also post your question to forums.asp.net. Thnx, Michael Castillone ...Show All
Ramazan Acar how to write a correct regular expressions?
how the regex should be written if i want to subsitude the value into it for example this is the regex i have.. (\\w\\d+ *Months) *( \\d+\\. \\d *) i want to replace the word Months with exactly a certain string, like string subsitude ="2Months"; then the regex would be something like this... (\\w\\d+ * subsitude ) *( \\d+\\. \\d *) wat is the proper way to write this Hi check your last ...Show All
vanitaverizon ?? What Does 'Strongly Typed' xxx Mean ???
Hi again everyone, I'm sorry for two questions in one day but this has been on my mind for a long time. I understand what it means for C# to be a strongly typed language but I often read about one object or another being strongly typed. A good example is the documentation for System.Windows.Forms.Binding, which refers to: A strongly typed IList of strongly typed objects I have also heard this term ( strongly typed ) when referri ...Show All
GPAustralia Decompiled DLL
Hello. I've downloaded decompiled version of one dll writen on C#. And when i try to use the code in C# there is the following errors: "Error 1 The type 'dotnetWinpCap' already contains a definition for 'OnReceivePacket' C:\Documents and Settings\Owner\My Documents\Projects\MBwpcap\MBwpcap\Class1.cs 233 46 MBwpcap ", "Error 2 Inconsistent accessibility: field type 'dotnetWinpCap.ReceivePacket' is less acce ...Show All
Thiago willian How to Play Sound in Windows Application?
Hi everybody, Is anybody knows how to play sound (*.wav) files in windows application I tried using Microsoft media Player it works but the DLLs are huge. Is there othe way to do this Thanks. denpsia Thanks, Karen, Daniel and Chris. Karen and Daniel, the approach you mentioned is in .Net Framework Ver 2.0 Right Which is included in Visula Studio 2005. Right I am still using ver 2003 of VS and currentl ...Show All
metasquier Generics and Polymorphism
Hey Everyone I need a little help with Generics and I am hoping one of you will be able to help me. I am wondering if you can a List<baseclass> if I can add derived types to the list. For example: public class Shape { public string Name; } public class Triangle:Shape public class Circle:Shape List<Shape> shapes=new List<Shape>(); shapes.Add(new Triangle()); Would something ...Show All
EricPatterson Instanciate class from independent assembly
Hi, I'm trying to do a somehow dynamic application. It's like a calculator of functions. A function has parameters (in an XML file) and a class that loads them and does some tricks. So the scenario is: the user opens an xml file and the app instanciates the class it refers to. Now, this works just fine if the class is in my original assembly (by Type.GetType("name of the class in the XML"). But, what if the user wants to add another class i ...Show All
Tim Bederka Marshal.PtrToStructure
When responding to the WM_NCLBUTTONDOWN message in WndProc, the LParam of the message points to a POINTS struct. I use this structure to get at the LParam struct MyPoint { short x; short y; }; And I use this line to marshall the lparam: MyPoint point = ( MyPoint ) Marshal .PtrToStructure(m.LParam, typeof ( MyPoint )); point now contains x and y both equal to zero (0,0) The mouse was clicked in the middle of the caption ...Show All
Jan V&#38;&#35;237&#59;t How to read JPEG in .NET
Posting it for Vijay L ... How can I read JPEG, GIF and PNG in .NET if I am using J# I know one solution: I can use System,Drawing.Bitmap to read JPEG/GIF. Use Bitmap to do further processing and then save back as JPEG. Problem with this solution: - Bitmaps take more space than JPEGs. - This is not an elegant solution, Is there any other way I can read these different formats Reg ...Show All
JasonSacks Adding link buttons to a Browser menu strip.
I am very new to c# and am working on my first real program. A web Browser. I have everything done but now I want to add some buttons to the menue strip that I can click and go to a specified web page. I know how to add the buttons to the form and then click them to get the click event. But what do I add for code to make them open the web url in the browser. private void fRTHomePageToolStripMenuItem_Click( object sender, EventArgs ...Show All
rosiew1956 Profiling and Optimizing class
Hi, I'm finding 'Profiling and Optimizing class', but i don't have it. If you know it, please tell me. Vu, Thanks a lots. hi duckling, I could not understand your question. Can you please elaborate it. cheers!! pradeep_tp ...Show All
Luis Esteban Valencia MCP. Creating WallPapers using c#
Tell me how to create WallPapers using c# What do you mean with creating wallpapers Just creating images You can create and manipulate images with GDI+. Probably what you mean is how to set the wall paper programmatically, right if so, you can achieve this by P/Invoke: [DllImport("user32.dll", CharSet = CharSet.Auto)] private static extern Int32 SystemParametersInfo(UInt32 uiAction, UIn ...Show All
Sumo Multiple references
project1.dll has several public methods (COM visible). project2.dll has a reference to project1.dll and can access project1 methods (COM visible). project3.exe has a reference to project2.dll (I can't add reference to project1) How to access project1 methods from project3 I can explain more, For example: Project1 - BusinessObjects.dll In this project we have "Product" object with properties, such as ProductId,&n ...Show All
wally666 How to Read/Write DBF file In C# use OleDb
See the topic! Give me an example to show me how to do this ,thx! And my msn is i_will_communicate_through_this_forum@msdn.com I can't insert a Datetime Object into the DBF file,why Do you get an exception If so, provide us the Stack-trace and the relative code. Hi pj. I Try it by use Hard-code to insert data.It can insert new rows into DBF files. but when I change it to use Ol ...Show All
cnewbie ValueType arrays
I'm trying to copy a cutomized valuetype to string type. string source[10]; // bcString is a ValueType that hold a string object and implicit // conversion from string type to bcString bcString target[10]; target = source; I have tryed with the syntax target = (bcString[])(System.Array)source; but I get an execution error (cannot convert...) Any hints Thanks, Felice Russo Din' ...Show All
