Answer Questions
Sajith multiline linklabel ???
hi, How can i have a multilined linklabel thanks Visual Studio 2005 already supports multiline link labels. In the linklabel's properties, just select the "Text" field then click the dropdown arrow next to it. Then just enter the lines that you want. thank you but it generates following error: The type or namespace name 'Gtk' could not be found (are you missing a ...Show All
bill_chapin CodeDomProvider.CreateCompiler - need a replacement.
I am posting it second time today. For some strange reason the first post disappered after an hour or so. It is about the method: CodeDomProvider.CreateCompiler(). The method appears to be obsolete but it is used in a code sample I have copied from MSDN. There should be a replacement for this method. I would like to know what it is. Thanks. Yeah, thanks again! I think a lot of the confusion is because the error message generated by trying ...Show All
DennisV in .Net 2.0 where is System.Web.Mail
Hi. I am working on a method to send emails, but when I try to compile this is what I got: Error 1 The type or namespace name 'Mail' does not exist in the namespace 'System.Web' (are you missing an assembly reference ) C:\Desarrollo\Visual Studio 2005\Projects\WF_BCCR\WF_BCCR\correo.cs 4 18 WF_BCCR What is the problem Thanks, Lorenzo Jimenez I go ...Show All
jmramirez Deleting IE Cache
I was trying to delete the Temporary Internet Files with this code: #region IECache private void IECache() { string pasta = Environment.GetFolderPath(Environment.SpecialFolder.InternetCache); DirectoryInfo di = new DirectoryInfo(pasta); FileInfo[] fi = di.GetFiles(); foreach (FileInfo fiTemp in fi) fiTemp.Delete(); } #endregion IECache but it doesen't delete anything from the temporary folder. ...Show All
Przemo2 Covert String or Object to Hex
Hello Everyone, I have something like this .... object var = property.Value; I want to change var to hex, how can I do it.... In C or C++ we use to do something printf("%x, var)....does the trick.... I'm sure will be really simple, I'm not doing something correct..... Thanks, Harsimrat In C#, it's string.Format, and items to format are specified as {0}, {1}, etc. There are also forma ...Show All
PinkNation Creating A Folder
Ok. Can someone tell me how to create a folder using code. In a button clickevent I would like to create a new folder on my desktop. Can someone tell me how You can do this using System.IO.DirectoryInfo. Full documentation for this class is available on MSDN: http://winfx.msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/T_System_IO_DirectoryInfo.asp It's best to search msdn.microsoft.com and the forums before post ...Show All
G4Danny Having a common class!
Hi, I'm facing a small problem and it would be great if someone could help me out. I'm creating a class for my project. The project is of two parts. One part is done using ASP.NET and the other part is a windows application developed using C#. The class is common to both the asp part and the windows app part. Now I need to know if the client's browser supports activeX. I know this can be done using "Request.Browser.ActiveXControls" ...Show All
Nick Jovanelly The IDE often automatically changes the file subtype from "Form" to "Code" in the .csproj file
The IDE often automatically changes the file subtype from "Form" to "Code" in the .csproj file, which renders the forms unviewable in design view until that change is undone. Is there any way to prevent the IDE from doing this automatically Thanks, Wilfred Hi Anson, I remember the bug when dll's got over 64K that the intellisense would fail or lock a dll. The problem I am describing is the same one ever ...Show All
drewex HD DVD Drive to use
We are looking for a PC-based HD DVD drive - preferably one with writing capabilities. We also are on the Vista Beta to "drive" it, but we cannot find a recommendation for one. Internal or external will do. What are you guys using for development Thanks. Regards, =D- Derek R. Flickinger Interactive Homes, Inc. Where can you buy that HD-DVD recorder Because I can not find a single (web)s ...Show All
nielaldous Form Instances
Ok. I have three forms. What I would like to know is when I make an instance of Form1, how to make it accessible from any form without having to create another instance. If you don't want to go down the MDI route, you'll need a 'form manager' of some sort. Just create a static class that stores a form collection that you can Add() to etc. HTH Form1 myForm = (Form1 ) Application .OpenForms[ "Form1" ]; myForm.Show(); ...Show All
Eddie H Passing arrays from unmanaged DLL code to c#
Hi, I pass my dll the filename (string) to an image and it returns a list of points which are detected faces on that image. What I have done is pass a parameter from c# which is a pointer to an empty array. The dll code then allocates the array for the list of points and returns the size of the array. I then copy the array for use in c#. This does work - but is it the right way to do this (seems like a bit of a hack) If I wanted t ...Show All
A fok Windows Service that watches the keyboard
Hi there, I have a working windows application which implements a global-system-hook-class to watch the keyboard and log the pressed keys. The statistics are used for language analysis. In order to automate this process a little bit more, I want to write a windows service which does the same monitoring. I worked with servies before, but last time, I used a timer, because the service was supposed to work in a certain interval. This time, ...Show All
Putta 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
hawklixingyi Questions about threads, events and a server application
Hi, I got a thread question. I have a server application in a PC which hosts a remoting object, singleton. This objects once it receives remote calls from several clients, will raise an event. The server application catches the event and do some processing. But i notice that while the server is processing (cos need to return some data from the event call), the server is unable to receive other events. It will be blocked. But i looked at ...Show All
in_need_of_combobox Checking values of variable at runtime.
I have created a C# project using Visual Studio 2003. I have declared a string variable 'strTest'. I want to check the values of strTest.Substring(0, 2) at runtime. I tried checking its value in quickwatch window but getting the following error: error: 'strTest.Substring' does not exist I get the same error for strTest.ToUpper() etc. but its working fine in vb.net. Can anyone plz suggest a solution. Thanks. Ashok ...Show All
