Controls loaded notification

78 byte By cabasm at 2007-11-25 10:38:54
How can I receive when all of a user control's controls finished loading?

Missiing toolbox items

1081 byte By zhshqzyc at 2007-11-25 10:38:55
It seems to be a bug.https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=144156 I have struggled it for days. My software: Microsoft Visual Studio 2005 Academic Edition. I have started a project, and now when I open the project, I get a messagewhen I open the toolbox th...

Help figuring out why my program doesnt run on another computer

371 byte By DeepT at 2007-11-25 10:38:57
I have this C# application I wrote which runs fine on my computer. When I copy it to another computer (that has .NET installed) and run it, nothing happens. No errors or warnings. It momentarily appears in the process table and disappears.How am I supposed to figure out what is wrong if I do no...

How can I initalize a static array member from a base class

1548 byte By DeepT at 2007-11-25 10:38:58
I have been writting these SQL database query objects and decided to try and make a single base class for them all because they are 95% identical.The various methods use an array of structs that have a static initalization (there may be 100s of instances, but they table is the same for each kind of...

Versioning a Web Service

306 byte By rossini at 2007-11-25 10:39:06
Is there a way to get the version # of a web service?I'm writing both the program and the web service and I'm not sure the best way to return the version # because the web service doesn't have an AssemblyInfo.cs file with the AssemblyFileVersion setting.thanks,John....

C# and sql7

236 byte By atuvy at 2007-11-25 10:39:07
I am writing an application in C# that needs to read and write into an sql7 database, I am looking for some code samples which show how to do that. If anybody has a link to a site which has such code samples please respond to this post.

Collection class in C#

236 byte By Saeed at 2007-11-25 10:39:14
IHow do you collect a series of texts , values in a collection object.<br/>Each entity in this object may have up to 5 elements and the number of rows in the collection is UNKnown so static array is not a good idea.<br/>Cheers

The right way to offset Location?

1048 byte By w0lfshad3 at 2007-11-25 10:39:18
I intended to display a control(picture box actually but i might manipulate it from the control it sits upon)not from the upper left corner but from its center. Since i cannot override Location property i planned to offset it like in the following code. I need to know wether is there a better way or...

Design pattern

391 byte By shuvo at 2007-11-25 10:39:20
Design patterns have come up as a great obstacle in my career as a c# programmer, the more I read about them, i become more confused.Please can anyone suggest me any site or any book where common design patterns are explained with easy to understand examples in a easy language.It would be best if th...

Calling Skype API in C#!

321 byte By Frank100 at 2007-11-25 10:39:36
Hi, I am a beginner to learn about API's. I am just confused about how to use skype api using C# programming langauge. Do i need to register any dll's. Can anyone help me regarding this issue. I would appretiate if any body has a small example and documentation of how to access SKYPE API....

new in c#

172 byte By djai at 2007-11-25 10:39:44
i'm new in c# and want to develop application using DirectX. i'm well versed in vc++. Can anyone please tell me exect approch about it.<br/>Thanks in Advance

ApplicationID in ASP.NET

66 byte By gregory82gr at 2007-11-25 10:39:54
I can,t obtain the ApllicationID of an ASP.NET applcation .NET 2.0

How to write good code

1254 byte By architect at 2007-11-25 10:39:57
A mount and a half about, I work with c#, for now I read only MS Press c# 2005 book, and use google mostly, but one thing I cant find anywhere:- Whenever I make a program and post code to someone,that one give me a tons of critics about my code quality, and say "..you have a lot to learn.." and that...

datagridView CellFormatting and cellParsing for formatted values and stored valu

2132 byte By sarama at 2007-11-25 10:40:14
I am using VS2005 datagridview. I am programming in C#. The datagridview is bound to a table in a dataset.I have a column that has temperature units. The unit stored in the dataset table is in Kelvin, but users can choose their displayed units and the displayed values will change accordingly.For...

Save/Convert to TGA File Format

378 byte By mariocatch at 2007-11-25 10:40:17
Hi All,Was looking through some documentation about image classes/bitmap classes and I can't seem to find any way of converting a bmp/jpg to TGA, or perhaps even saving as a TGA from the getgo. Is this possible?Edit: If not, does anyone know of any 3rd party dll's that have this functional...

Types in C#

764 byte By Suzi167 at 2007-11-25 10:40:18
Hello everyone,I am working with C# and generics.I have a class called BaseType and three classes that inherit from it.For Examplepublic class BaseType{}public class A:BaseType{}public class B:BaseType{}public class C:BaseType{}then imagine I have an object and I want to determine if it is of type A...

Msdnaa

298 byte By RickyD at 2007-11-25 10:40:19
I am a college student studying c sharp this semester. One awesome thing about being a student is I get all of this software for myself through the MSDNAA program for free and keep. About 10k worth of software according to ebay prices<br/> http://img406.imageshack.us/img406/6177/msdnaary5.jpg

Tricky C# COM debugging problem

952 byte By carrolls at 2007-11-25 10:40:21
Hi Folks,I have implemented a C# COM library object with a simple interface that seems to be working fine.The only problem is that I can't debug it using Visual Studio 2003. I have set a breakpoint at the beginning of the method that is being called.I am calling the C# COM component from a VC6...

I am stuck on a program, and I need some help Please.

8143 byte By mixmastasalad at 2007-11-25 10:40:35
Ok so my program is supposed to be a console application for this class im taking, but I kinda suck at it. The program is supposed to ask for 5 peoples' names, the grades for 10 assignments (2 per person), and then do a printout of the names, every grade, and the averages. SO yeah if anyone kno...

System.Net/Sockets, How do I modify this?

2864 byte By DanDandy at 2007-11-25 10:40:36
Hi. I am using the code guru article. I think this code I have sends a string over the port. I don't understand it completely, but I need to be able to send an object, or other data besides a string. I've modified it a little but I can't figure out how to send an object. I want the cl...

what is wrong with this class?

2279 byte By Saeed at 2007-11-25 10:40:38
public class DBInterface { private OleDbConnection connection; public DBInterface(string strcon) { connection = new OleDbConnection(strcon); } public DBInterface() { this.connection = new OleDbConnec...

how to Modify HTML document and redisplay?

498 byte By try.test.abc at 2007-11-25 10:40:56
Hello all, I want to create one application which keeps track of the IE running. when any new url is navigates.., it find in the database that the particular url is in database. if yes then the application should modify the back color, background image and font etc.. Currently what i th...

problems dynamically moving a control

1939 byte By w0lfshad3 at 2007-11-25 10:41:00
EDIT: solved @ MSDNEDIT: added whole project: http://www.filefactory.com/file/2e3287/ http://files.filefront.com/MyMoOrar/;8536933;/fileI have this array of picture boxes that hold bitmaps representings stars. I made a textbox that resizes itself as i type text in it or delete it(representing the name...

How to call a .WSF in C#?

271 byte By naddynaresh at 2007-11-25 10:41:06
Hi,<br/>I have a .WSF file which in turn calls .VBS file and .WSF files. I am developing a UI for Windows Application. I want to call this .wsf in C#. Can anyone throw me some light how to go about this requirement. Thanks in advance.<br/>Thanks,<br/>Naresh KKK

How to replace command line options with UI using C#

250 byte By naddynaresh at 2007-11-25 10:41:08
Hi,<br/>I am new to C#. I have a tool with .WSF and .vbs which runs in command line options. I want to replace the Command line options with UI. Can any one tell me how to go about this requirement in C#? Thankyou<br/>Thanks,<br/>Naresh KKK

Error using SqlDataReader in C#

735 byte By Marco Leon at 2007-11-25 10:41:10
I have nextint[] TablaCuentas = new int[iMaxCuentas];... try { SqlCommand comando =new SqlCommand(consulta.ToString(), conexion); SqlDataReader reader = comando.ExecuteReader(); while (reader.Read()) { TablaCuentas[i]= (int)reader.GetValue(0); i++;...

UTF-8 conversion problem

771 byte By JohnIdol at 2007-11-25 10:41:35
Hi All,I've been trying to figure this out, but no luck.I have an xml file with UTF-8 encoding.I am parsing it so my C# strings are showing the unicode (UTF-16) representation for the UTF-8 encoding.i.e. [&#39;] instead of ['] Now, I am trying this:byte[] bytes;byte[] uniBytes; bytes =...

Reflection

685 byte By Suzi167 at 2007-11-25 10:41:40
Hi I am using reflection and I need to get the properties out of my typeBut I only want to get the properties that have both Get and Set Accessors.How can I accomplish that using the BindingFlags enum?Here is my code: foreach (Type type in assembly.GetTypes()) { foreach (PropertyInfo propInfo i...

DB Oracle connection

382 byte By skuanet at 2007-11-25 10:41:44
Hi all,when I try to connect the application to an Oracle DB I get this error (ORA-12560 ) but only if the DB is in a remote machine otherwise everything works fine.I am using System.Data:oracleClientIt seems that in the remote machine the Oracle Service doesn't start automatically...Did you ex...

using MessageBox. Problem related to System.Windows.Forms.Timer?

535 byte By MikeHanson at 2007-11-25 10:41:56
Hias far as i know, execution of current thread stops as long a the user does not deal with the message box. However, my messageboxes keep on popping up. I got System.Windows.Forms.Timer firing every 100ms or so. I think the new Messageboxs appear in that "rythm". I dont understand this because i...

C#/.NET Application Interaction

919 byte By clarkster at 2007-11-25 10:41:58
I'd like to build a suite of applications that individually perform a low level service and when brought together can perform a higher level service. For example, one application may go to a database and pull out details of some financial securities. Another may interface into and manipulate ma...

Lines in strings?

163 byte By dahwan at 2007-11-25 10:42:01
How can i detect "lines" in a string? Like for instance:<br/>foreach("line" e in MyString)<br/>{<br/> StrWriter.WriteLine();<br/>}<br/>Thanks in advance!

[RESOLVED] Forms

1209 byte By Fishdawg65 at 2007-11-25 10:42:16
I was looking for a way to dynamically find all forms in a project and add them to a combo box so they can be loaded when selected from the drop down list.I couldn't find anything good until I looked in Reflection. If this way is not very good then let me know. I'd like to know the best...

printing from a text box

314 byte By michig54 at 2007-11-25 10:42:18
I have a NotePad like program in which i am printing from a textBox. Everything works fine, except when it goes to print a string that contains a tab "\t", it just ignores it and doesn't do anything. The tab shows up in the textbox correctly but not on the printed paper. How can i resolve thi...

returned objects

523 byte By mickey0 at 2007-11-25 10:42:23
Hello, I'm a newbie and my problem is this://mainBuild build;build.childs.Add(new Build());build.childs.Add(new Build());Build TENTH = build.getTenthBuld();class Build { public ArrayList b = new ArrayList(); }public Build getTenthBuild() { if something() return (Build) b[10];...

destructor

403 byte By Saeed at 2007-11-25 10:42:24
public DBInterface() { this.connection = new OleDbConnection("blaa blaaa.mdb"); } ~DBInterface() { // Destructor logic }in teh destructor i need to delete teh meory allocaed for connection.in C# what...

destructor

403 byte By Saeed at 2007-11-25 10:42:25
public DBInterface() { this.connection = new OleDbConnection("blaa blaaa.mdb"); } ~DBInterface() { // Destructor logic }in teh destructor i need to delete teh meory allocaed for connection.in C# what...

if statement question

468 byte By Anti-Rich at 2007-11-25 10:42:31
Hello everyone, i have just started on a project at my new job, and i notice that when they check for null they useif (null != param)as i would useif (param != null) im just wondering if there would be a reason that they do this, or is it just a perculiarity of whoever originally wrote the app? i re...

Authenticated Email sending

2601 byte By Vinod S at 2007-11-25 10:42:32
Dear all, i have created an application to send authenticated email with attachment. Now what i want is to include the attachment in the message body. can any one help me in this regard. i am sending the mail sending code with attachment. if (String.IsNullOrEmpty(sServerName.Trim()))...

How to create Application like Flowchart?

214 byte By nirav5884 at 2007-11-25 10:42:40
How to create application like Flowchart?<br/>Can anybody help me?<br/>Is anyone have drag and drop functionality?<br/>Is anyone have resize and delete functionality on Visual Elements like ellipse, rectangle etc.?

Getting Information of a class at Runtime

463 byte By maverick786us at 2007-11-25 10:42:46
The ability to determine the class of an object at run time is useful when extra type checking of function arguments is needed, or when the user wants to write special-purpose code based on the class of an object.So does C# provide the ability to determine the information of a class at runtime? If y...

[RESOLVED] Controlling selection in a TextBox

917 byte By w0lfshad3 at 2007-11-25 10:42:47
solved @ MSDN: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2139978&SiteID=1&mode=1I've made a couple of attempts but they flicker and i wonder if there is a better way(as in disabling selection functionality altogheter). Also i wonder how could i implement SelectionChanged event just l...

Using Scroolbar for panning in Graphics Editor

916 byte By david123 at 2007-11-25 10:43:01
Dear AllRegards! i m going to develop a Graphics Editor in C# and OpenGL, now i am going to display my drawing on a canvas, and the canvas display area variables r display_min_xdisplay_max_xdisplay_min_ydisplay_max_yand i m going to display using the following code for zooming------code-----...

setup and deployment!

302 byte By Frank100 at 2007-11-25 10:43:02
I want to deploy my .NET desktop application through (setup and deployment).With in this deployment I want to merge SQLAdvace,DotNetframework,CrystalReport installers.I think am doing something wrong during merging files. Is anyone can help me out and can tell me the write steps to do that?...

File Security

390 byte By honeysoft at 2007-11-25 10:43:06
How can i stop an user from deleting a file?We have an application which when saved will save the data to an XML file.The user again can open the application and before the process completes,can delete the file. This deletion has to be stopped. When i tried using FileSecurity,GetAccessControl and Se...

Working with form

295 byte By highton at 2007-11-25 10:43:10
Hi all, <br/>I working with form now, and had a problem with those forms. For example, I click the button, and the new form will appear, how can I make a restriction that people should close the new form before continuing work with the form that used to open the new form? <br/>Thanks.

File Security

390 byte By honeysoft at 2007-11-25 10:43:11
How can i stop an user from deleting a file?We have an application which when saved will save the data to an XML file.The user again can open the application and before the process completes,can delete the file. This deletion has to be stopped. When i tried using FileSecurity,GetAccessControl and Se...

Connect to events from Script

699 byte By patrickcbrown at 2007-11-25 10:43:15
Hello Everyone I am trying to figure out how to enable this type of Event Sink connectivity between a C# application and VBScript. How do I configure my application to allow this? I will skip the explanation of why unless anyone is interested.Thanks for your time and ideasPatrickSet IExplore = W...

Issue with not being able to enumerate a collection because it was modified

1646 byte By DeepT at 2007-11-25 10:43:28
I have this run time error happening where it is saying:An unhandled exception of type 'System.InvalidOperationException' occurred in mscorlib.dllAdditional information: Collection was modified; enumeration operation may not execute.I figured that different threads might be changing the co...

TextBox - Enter click - DING

61 byte By dahwan at 2007-11-25 10:43:33
How do i stop a textbox from going "DING" when i click enter?