Answer Questions
TheMagic \r\n in a resource string
When I create a string like You have made changes.\r\n\r\nWould you like to save this file and put it in the resources, the \r\n\r\n show up in MessageBox.Show(). If I hard code the string, I get the line breaks as I expect. What gives How do you put it into the resources And one hint, use Environment.NewLine instead of using "\r\n\r\n" I usual use something like this: string message = strin ...Show All
pradeepp Cineform HD
Cineform HD is a video format which plays under Windows Media----want to know if Windows DRM can be used on top of this propreitary encoding technology Hello Ravi, Media Foundation is the new multimedia platform that we are shipping in Vista . It consists of the new audio and video pipeline, Protected Media Path, and DXVA 2.0. This forum has been created to answer questions pertaining only to Media Foundation. It looks ...Show All
nigeljsy How to make certain classes accessible to your own developers only?
Hello, since almost 2 years my company is playing around with .NET and there is one question none of us few .NET developers could answer good enough to make us satisfied. If I develop a shared class library that contains classes that 3rd party developers should be able to use, how can I make some of the classes inaccessible to these 4rd party developers though keep them available to ourselves I know that we can use internal class SomeClass { } ...Show All
Al_Ski Custom 3D, Irregular Shaped Buttons
What needs to be done in order to create a Non-Rectangular, Ireegular shaped button (from a Bitmap) --Yatharth-- When you don't want to do to fancy stuff you can just inhire the Button class and override the Paint method. Then just paint the Bitmap on the Button and you are done public class MyButton : Button { private Image _image; public MyButton() { _image = Image.FromFile( @"c:\image.bmp" ); } prote ...Show All
Panks !!! IF MICROSOFT HEAR US!!!
I just saw another thread with "Can i make a app that doesnt use the .NET. The framework is too big 23 MB".. SO... Can Microsoft create a .Net Framework just for c# not for asp or j# or visual basic providing only the neccesary dlls Please!!!! ya it would be... for people like us That have internet.. but what if the user doesnt have Internet connection Just make it a "security" update at Windows Update.... ...Show All
Rube Access Web Form member from it’s hosted windows user control
Hi. I have a web app that uses a IE hosted windows user control. I would like that, somehow, lounch an external event from that hosted control that I could catch in my web form’s code behind or set a web form’s member value. Does anybody know how to do that I would appreciate any suggestions! Thanks in advance! I am getting the same thing. Plus one other interesting feature. I modified the control to ...Show All
Albert Yen -MS ToolTip Control on HelpControl Button Click??
Hi..All, I want to show tooltip for each control in my Form..when i Click on Help Button on the corner and i want to show tooltip on every control i press it..with that button Best Regards Bassam Basamad Hi..Thanks for you Url..it was very usefull.but one more question in the same isssue..i have applied that example in msdn..but it does not show arabic words..!!! it show the arabic words like unreadable words..!!! kind rega ...Show All
JPasqua command prompt return immediately when running console application
By default, a console C# app will hold the command-prompt until the app exits. Is there a setting in the .NET framework that will cause the command-prompt to return immediately This is sort of analogous to running a command in the background in unix by appending & to the command. sean_n wrote: when i run other apps from the same shell (win xp command prompt), i get the prompt back immediately. how do i make my C# app work ...Show All
Matt Milner Unassigned Varibles???
private void menuItem15_Click( object sender, System.EventArgs e) { MenuItem mnuItem = (MenuItem) sender; mnuItem.Checked = !mnuItem.Checked; FontStyle fsStyle; switch (mnuItem.Text.Replace("&","")) { case "Bold": fsStyle = FontStyle.Bold; break ; case "Italic": fsStyle = FontStyle.Italic; break ; case "UnderLine": fsStyle = FontStyle.Regular; break ; } rtbText.SelectionFont = new Font(rtbText.Selection ...Show All
Scott Snyder Using an Array in a Property
Is there a way to get/set values in an array using a property, by passing an integer representing an index This is what I have: public double GetSideC(int index) { return _hexabotLeg[index].SideC; } public double SetSideC(int index) { return _hexabotLeg[index].SideC; } This is what I would like to accomplish: public double[] SideC { get { return _hexabotLeg[index]; } set ...Show All
Antoine64 Events
Hello, I want to learn how can I realize if an eventhandler is attached or not For ex, I want to learn if something is atteched to PutFileProgress or not. private void button1_Click(object sender, EventArgs e) { if (m_object.PutFileProgress == null ) MessageBox.Show("Available"); } Compiler complains about this code,stating that only += or -= operators can be used with an event. Thanks. Only the class ...Show All
william_wallace good c# book for window form and ADO
I have read Jesse Liberty's Programming C# third edition. Now I am working on C# 2005 ( window , ADO ,database) , and looking for a good book with more pratical codes inside. Please give suggestion. Thanks so much for quick response.I just reviewed comments on Amazon.com. Looks ok. But I hope more detail windows and database focus if possible. I reviewed comments for Windows Forms Programming in C# - by Chris Sells.Looks great , b ...Show All
OratIos Paint
Hello, I want to create free lines like this: good f ree line , I have figure out this: private void pic_MouseMove( object sender, MouseEventArgs e) { if (shouldpaint) { if (BPen.Checked == true ) { Graphics graphic1 = Graphics .FromImage(Tmp1); graphic1.DrawLine( new Pen (Color1), e.X +1, e.Y, e.X, e.Y); pic.Image = Tmp1; } } } But that gives this lines: bad line , can somemoene help me to make ...Show All
De los Palotes Juan Convert a string from a buffer
Hi,I have a long saved data in Buffer and I want to take all that chars into a long string..I have implement the follow: private string GetBufferValues(SByteBuffer byteBuffer) { string values = ""; foreach(byte temp in byteBuffer.ByteArray) { values += temp.ToString()+ " "; } values = values.TrimEnd(' '); return values; } but it takes so long time to finish the procedure ...Show All
Dennis Quintela FindControl() Windows Forms Equivalent??
Hi all, I would like to be able to search adn retrieve all the Controls (or types of Controls) that are based on my Windows Form. Is there a function that does this I know in ASP.NET you have the FindControl() method, and was wondering if there was something similar Thanks Tryst Hi Tryst, I appreciate your prompt response. : ) If you have any other concern, please feel free to post back. I am always very happy to be of assistance. ...Show All
