Answer Questions
SeekTechHelp Can not set value to variable...
Ok this problem is wird to me, so please help... I have an Struct... public struct PointStruct { public Point FirstPoint; public Point FinalPoint; public string Tipo; public string MuebleTipo; } [in my form] PointStruct [] Lista = new PointStruct [99]; // guide public string tipodibujo = "" ; public string tipomueble = "" ; then ...Show All
Keegan7 How can I use the delegate to update the user interface from a thread?
hi:) I make a thread to do some work, here I want to see how the thread is going on. How can I use the thread to update the label text(used to display the message from the thread). I am a newer in c# , any advance will be helpfull! thanks in advace. Thank you for your help! But I cannt really understand you. If the method 'AMethodInYourThread' is writen in the thread class,how can it use the label1,which is created in the ...Show All
Twil1ght Logic Problems
How come when i run this i get 62 but i am trying to get the average...The average is 15.4 but when i compile it i get 62...why is that can some one help using System; class Average { public static void Main() { int num1; int num2; int num3; int num4; int num5; num1 = 10; num2 = 12; num3 = 15; num4 = 22; num5 = 18; float average = num1 + num2 + num3 + num4 + num5 / 5; Console.WriteLine("Average is {0}",aver ...Show All
Joel Poiron 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
Sergey_12345 How to get USB Bluetooth Adapter information ?
--Dear All, Using WMI, I managed to get information about device ID and manufacturer of my USB Bluetooth adapter. However, I CANNOT GET Blueooth Device Screen Name ! ------------------------------------------------------------------------ (I tried with many diffrent WMI classes by the follwing code foreach(ManagementObject mo in new ManagementClass("Win32_PNPDevice").GetInstances()) { ProperyDataCollection.PropertyDataEnu ...Show All
GreenSiAX Passing Data Between Forms
Ok. I posted this question before, but I didnt get a response. I can I access objects from one form to another Hi, Yes you can. All you have to do is declare the object as public in the class declaration. class test { public object yahoo = new object(); } cheers, Paul June A. Domag Hi, You can definately access object from another form but still your question is not so clear that what exactly you want to do ...Show All
techbd What are some things to remember when drawing in Window Forms?
Hi all, I'm a beginner developer. I'm writing an application and draw many object like as Ellipse: private void timeout(float x, float y, float k, float z) { Graphics Cerchio; Pen MyColor = new Pen(Color.Red); Cerchio = this.CreateGraphics(); Cerchio.FillEllipse(new SolidBrush(Color.Red), x, y, k, z); Cerchio.Dispose(); } And I draw a timer countdown like this: private void EggTimerForm_Paint(object sender, ...Show All
sjayachandran77 Tips on posting
Here are some tips on posting, so that your questions could likely be answered quickly. 1. Make your Title as significant as possible . Compose it in a way that you would ask an expert. example - "How could I change a Buttons Background " instead of "button background problem" 2. Explain in detail the nature of your dillema . But please make it short, straight to the point but descriptive. 3. Provide steps on reproducing your proble ...Show All
Christian van der Ree how to track and count printouts
hi all i need to track printouts taken from a printer using C# code.actually i need to count printouts taken in a particular time.Is this possible Can we use eventlog if so how to do it .plz help me....;-) thanks in advance pubs ...Show All
Pawel Pabich Get the font filename (like tahoma.ttf)
Hi, Is there a method that can retrive the font filename e.g. tahoma, by passing it the font family Hello, I am just getting started in C# and I thought this would be a good project to learn with. It's somewhat more complex than I thought it would be. Anyway, i am getting compile errors on the two lines where the little thumbs up icons appear. "Cannot implicitly convert type byte[] to byte" and "Cannot implicit ...Show All
Rajesh Kumar T how do I do this? (sorting)
Hi. I feel terrible asking this but i cannot figure it out. I think my mind is all over the place. OK, I will be reading elements from an XML file. File has "Start Time" which has h:m:s and "End time" which has h:m:s What I want to do is sort the start time in order. Sure, I could put them in an arraylist then call the sort method, but I want to match the start time with the end time sorting in the start time order. any i ...Show All
AussieBear Slow IDE with Winforms/C# - Solution
Hey all, I was having problems with a Winform in C# using the release version of 2005. Anytime I tried to resize a control in design view, the IDE dragged bad if I resized or moved anything. It was so bad I could see the refresh occuring (screen would flash white). After trying everything in this forum for "Slow IDE" and not finding the solution I recreated my form and started playing around. I finally removed the background on ...Show All
Anthony Alvarado c# a function if my service terminate by the task manager
hy there I have made a windows service in c# now you can not stop or pauze/resume the service but you can stop the service in the windows task manager. i want that if a user try to terminate my process(service) in the windows task manager that hi or she fill in a password end if its not good then that my service will continuo working or if its good then that my service will stop i cant figuring out wat i should do i'm sorry that my english ...Show All
Julian Jewel Open Files and Reading Certain Offsets.
What I'm trying to do is create a tag editor for a game, now the problem is that I have no clue how to make an app read certain offsets, say 0x04, 0x08, 0x0C and 0x20, and then to get thoose offsets to display in a certain text box. before a tag is opened: after a tag is opened: do you know of any good tutorials on the StreamReader.Read method im fairly new to Visual C# -_- ...Show All
Tryst style and height/width
What's the difference between this two property style="width:100%" width="100%" Thx http://msdn.microsoft.com/library/default.asp url=/workshop/author/dhtml/reference/properties/width_2.asp When you use the Style property, the width is specified by CSS. When you use the Width property the width element of the HTML will be used. ...Show All
