Answer Questions
morpheus3230 Order Matters
Today I found what was probably not the best of coding but for sure should have been flagged by the compiler and not the exception handler - especially the type of exception. Here's my class: public class foo { // ... other definitions here public static readonly Font CellStyle_UnacknowledgedAlarm_Font = new Font (CellStyle_Font, FontStyle .Bold); public static ...Show All
Hindin set the Text value from another Form
Hi, I am using this code to set the Text value of a Label on WorkingAreaForm from the FindForm but nothing is changing.. why frmWorkingArea WorkingAreaForm = new frmWorkingArea(); WorkingAreaForm.txtName.Text = "HELLO"; Thanks... it worked fine from Form1 when Form1 is the frmMain but when Form1 is not frmMain i don't get any error but it dosen't update the Text. so let me put it th ...Show All
John Seal How to debug a localized application?
(Visual C# Express) I have created a localized application (so far with two cultures), translated the strings, but now I would like to run the application with these non-default culture strings to see how it looks (and whether I have to adjust sizes of labels etc.). However, I can't find any debug settings, that allow me to switch culture when running the app. How do I do that Well, I must say, that I am disappointed. Really a m ...Show All
Paul Hendley sgen.exe failed
I have been working on the same app for 16 months, and I was not the first to work on it. I moved to VS2005 months ago. Suddenly ( as in, this morning ) I can't do a release build anymore. I recently moved to VSTS for source control, nothing else has changed. Now, when I do a release build, I get this error: Error 1 "sgen.exe" exited with code 1. Unless I go into the properties and turn "Generate serialization assembly" ...Show All
MSJ radio button's "selected" event
am using 2 radio buttons in my form. rAdmin and rDesigner. < input type =radio id =rDesigner runat =server name =userType onserverchange ="rDesigner_ServerChange"> < input type =radio id =rAdmin runat =server name =userType onserverchange ="rAdmin_ServerChange"> when the user selects either radiobuttons, data is displayed based on which radio button is selected. where should i write the code for d ...Show All
DynesSGR How to determine the size of data in a struct?
I need to determine the size of the data / contents in a structure and not the size of the structure including the data which can be determined by using sizeof or SizeOf. example: struct { int data1; double data2; } sizeof or SizeOf returns "16" but the actual size of the data is 12 - how to determine that Thanks Ole Hi Ole I think that's because of the struct member alignment (def ...Show All
zekia Need good tutorial for Query Builder
Where can I find a really good tutorial on the VS 2005 version of Query Builder using C# I have limited SQL knowledge and no experience at all with previous versions of the Query Builder. Query Builder. I know enough SQL to get by. I guest no. You need a Query builder tutorial, or a TSQL tutorial You see the documentation I've read the documentation but I'm lookin ...Show All
Hytham SerialPort - .GetPortNames method is missing
The .GetPortNames method of the SerialPort class seems to be absent in my freshly installed C# 2005 Express and .Net 2.0 The documentation refers to it, and code samples show its use, but in my installation Intellisense doesn't know about it and I get a compile error if I type it in by hand. Peter Typical! I have resolved the problem as soon as I asked (having been puzzling for days) I was thoughtlessly expect ...Show All
rafaelc Try Catch Finally
Hi Does Try,Catch,Finally block slow down application's performance Why Where I can find the documentations or EBook about C# 2.0 Thanks. Yes, it absolutely slows it down. You should not use it to control program flow, only to catch exceptional circumstances, such as errors. amazon.com has plenty of books on C# 2.0, some of the Microsoft published ones are terrific. Fair enough. I agr ...Show All
naeem khan exception as "security exception was unhandled"
hello guys, im new to the c# ,when im doing windows forms i got this exception . " Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed . " im not able to find the solution for this n i need to finish this problem asap. help would be appreciated. thanks in advance. This excpetion says you are making a ...Show All
smartmani Interop and Struct
Hello all, I try to call another dll from C# but so far it's not returning the result that I want. And I think the problems are reside on the way I declare the unmanaged code. So If I have following class in C++. How should I declare the unmanaged code in C# typedef void * MQISDPCH; /* Connection Handle */ /* Information required for MQIsdp server connection */ typedef struct struct_SVRS { long portNumber; char ipAddress[MQ ...Show All
pattygaribay Custom File Types
I have created a steup project for my program and have a series of file type I wish to associate which is fine. I just don't quite understand how to get the program to open these files when I click on them I assume you can setup parameters to send to the program Will I need to modify my main method to allow parameters to be passed to it as well cheers Jason, That's correct, you will need a main method tha ...Show All
Camalot Working with images : help needed!
Hello, guys. Let's say that I load a image in a picture box. What I want, is to slice the image into sqares [eg: 10x10]. After the image has been sliced I want to replace each sqare with another image from the current directory...I hope that you get my idea! Any help would be greatly appreciated! regs: KC mmhh try http://www.c-sharpcorner.com/winforms/ImageViewerST.asp http://www.gamedev ...Show All
GeorgeKumpuckal Sending a message to all clients
Hopefully someone here can help me and or point me in the right direction. I am writing a non-blocking server and client. I can currently connect to the server - send it a message and have the server send that message back. I can also have multiple clients connect and send messages to the server; however, I am unsure how I would have the server send the message recieved to all the clients. I have some code here and maybe it will provide some ins ...Show All
Pencilcheck Outlook-esque minimize control
hey howzit. i am looking for a control that mimics the functionality of Outlook 2003. When you are viewing emails in inbox, one can minimize the previous days emails. Where can I find such a countrol Hi PJ, I need the control to mimic the functionality provided by OUTLOOK. i.e: the email can be group by DATE, FROM, TO etc. and each group can be collapsed and expansed to reveal more information. So for example in our application. ...Show All
