Answer Questions
Rab Lucas Create thumbnail
hi there im new in this forum.... sup... well i have a problem creating a thumbnail to my C# windows application.... heres the problem: i got this code from msdn: Image image = new Bitmap("C:\\Dibujo3.bmp"); Image pThumbnail = image.GetThumbnailImage(50, 50, null, new IntPtr()); e.Graphics.DrawImage(pThumbnail,50,50,pThumbnail.Width,pThumbnail.Height); i think i alllready have the thumbnail there but how can i show it on a picture ...Show All
JW How to change the color of a substring?
for example: string newStr = "The color is red"; label1.Text = newStr; output: The color is red A label won't do this, not in a winforms app ( in a web app you can insert HTML to make it work ). You'd need to write your own control, I don't think there's a multi font or multi color label in the framework. The other alternative is just to draw the text yourself, or use two labels with 2 colors. yes tha ...Show All
Paul Wheeler Playing a resource sound on form load?
have imported a .wav audio resource into my Visual C# 2005 Beta IDE and want the sound to play on form load. The documentation I've read gives a sample: private void playSoundFromResource() { SoundPlayer sndPing = new SoundPlayer(SoundRes.GetType(), "Ping.wav"); sndPing.Play(); } SoundRes = A sound resource name. How do I get my sound to have a name Forgive me for being stupid - I'm new to C# and .NET. ...Show All
JohanFr Nunit
Hi all, i want to ask about Nunit. Is there anyone there in this forum use Nunit and does it make a significant improvement to c# codes What about Exception Handling What is the difference between Nunit and Exception Handling Thanks :D Hi! I think NUnit is such a tool that all .NET developers should know I can't really tell how much usefull is it - trust me, try it! Exception handling is for catch ...Show All
Allways Open Shopper 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 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=83764&SiteID=1 Thanks, Karen, Daniel and Chris. Karen and Daniel, the approach you mentioned is in .Net Framework Ver 2.0 Right Which is in ...Show All
ReNeLaDy Cannot focus my own window
Hi, I have written a C# dialogue application that runs other programmes (via a COM interface) that bring themselves to the front. After they've finished and hidden again, my own window should be focused again, but it isn't. Even when I call Focus() or BringToFront() on the form, nothing happens. Any other window that's been there, too, will be focused in the end. Doesn't Focus() work for windows How can I focus my window then Running Wi ...Show All
torras The remote certificate is invalid according to the validation procedure
Hi! First off all I'm not sure if this is the right forum to ask this question but I'll give it a go, hope it's ok. Anyways, I'm coding a ASP.NET (in C#) web app running in IIS 5.1 but when I try to open a link using: "System.IO.StreamReader Reader = new System.IO.StreamReader( new System.Net.WebClient().OpenRead(url)); " I get the following error: "The remote certificate is invalid according to the validation procedur ...Show All
Carl72 web forms or html forms
hi, i may sound so stupid but i really want to raise this question. i'm using visual studio .net and C#. i am doing a web page and i noticed in the toolbox the Web Forms and HTML which contain some same controls. what should i use does the controls in WebForms have big differences with the controls in HTML thanks. Hi, Basically, if you want to be able to access your control in a ...Show All
OX We're sorry, but WDS has detected a problem...
wiwth your desktop index and cannot continue. Please reinstall WDS here: ... So I goes to the toolbar.msn.com site - download it, and it (the installer) tells me that it is earlier than the WDS I have installed. WDS is not indexing Outlook (I have a connection to Exchange Server - but store emails in a pst file). I also have an archive pst file. Nothing in Outlook is, nor has been, indexed. I would like to remove WDS - but can't!! ...Show All
momsonrikky datagrid in vs2005
In VS 2003 there was Datagrid1.Columns or Datagrid1.Rows, in vs 2005 none. I want to define width of a column, so i can't use Datagrid1[0,0]. My question is: Is necessary do datagrid1.Tablestyle[0].gridcolumnstyle[0].width or there is another way Thx I see, I thought of WinForms. Can't help with WebForms right now, but in WinForms DataGridView working fine yet. Can you list the bugs you see in Win Forms, will see i ...Show All
dberkov Comboboxes datasets, text and values
I'm a newb to c# programming I usually work in php.. I have a combo box in my project, that I use to get a list of options from another table for an insert querry, uses a dataset when I set the textmember to the name field of the table it works great, but I can't figure out how to get the id for the row without either using another a querry stored proc or trigger but I know there must be a simpler way to get this for when I insert into the table ...Show All
Stefano.Gallotta Separating data access form code.
Greetings All, This inquiry is regarding the separation of data access from a windows forms application. I currently have a class called Data which exposes static methods that basically take in the form variables and then creates, updates and deletes those variables from a sql database. So in my form class I can call this: Int Success = Data.UpdateDate(DateTime date); (return -1 if unsuccessful) My question is – ...Show All
Michael Hotek ?porting to VC++?
I have heard about ppl doing it but how can it be done, im guess porting vc++ to C# would be a nice trick to know how to do. can someone explain or point me into a direction of where I can read about it. thanks There is a commercial software that convert C# to C++, you can get it from here: http://www.tangiblesoftwaresolutions.com/Product_Details/Instant_CPlusPlus/Instant_CPlusPlus.htm Or try the demo version. ...Show All
jeremymarx outofmemory exception
hi...i have an array like this item = [10,100,100,100,100] the indexers of the array are all int...when i run the program i get this excpetion...how can i resolve it Can you post a complete program we can run to reproduce the problem There's not enough information in your post to say for sure why you're getting an exception. that's only the function incriminated...the whole program is too big to pos ...Show All
Flyrod Why can't I use the Escape Key as shortcut?
Hello people, how are you I hope fine. I'm trying to set the Espace key (char 27) as a shortkey in a ToolStripMenuItem in the Visual Studio 2005, through the Shortcutkey property. But the VS says that: "The value of argument 'value' (27) is invalid for Enum type 'Keys'. Parameter name: value" Is this a bug Or is it not possible to do Thanks Andre I think this is by design, try assign a shortcut of just 'A". It also fails. Howeve ...Show All
