microsoft.public.dotnet.languages.csharp Archive - June 2004
Post a message to this list
Messages
Page: 1234567891011121314151617181920
212223242526272829303132333435363738
Bitmap.MakeTransparent OutOfMemoryException (4 replies, VIP)
microsoft.public.dotnet.languages.csharp
Whenever I use this method I get out of memory exception, even when using tiny bitmaps (100X100). Does anyone know why this is? From what I remember OutOfMemory Exception is a default for other exceptions, does anyone know what it might be? I am of course using try catch and finally blocks to ensure in cases of exceptions resources get released, I just can't understand why i'm always getting this ...
myPen.Width does not take 2 param (4 replies)
microsoft.public.dotnet.languages.csharp
Hi all, i am new at this area and have a question about the pen class. i am not able to set the width for the object: Pen bluePen new Pen(Color.Blue, 3); and giving me an error: Projects\MyProgram\Display.cs(65): No overload for method 'Pen' takes '2' arguments i am probably missing something?! thanks Erwin
CDO 1.21 AddressEntry.Fields (7 replies, VIP)
microsoft.public.dotnet.languages.csharp
Hello, I am trying to read information from the GAL using C# .NET. I am able to return a list of all the addresses and names, however, when I walk through each address I cannot access the MAPI.AddressEntry.Fields(proptag) property. VS .NET will not allow the code to compile. I am looking to pull out more info than just the addresses and names. My environment consists of the following: CDO 1.21 Exc...
XPath problem (6 replies)
microsoft.public.dotnet.languages.csharp
Hi, I am new to XML. I have the following C# code, which cannot make work: if (xml.getNodeText("servers:server[servers:name '" this.cboServers.Text "']/servers:forums/servers:forum[servers:name ['" forum "']", m ServersDoc) "1") I am trying to access the next sibling (called "subscribed") in the following XML file. forums forum name BSIT1 /name subscribed 0 /subscribed /forum forum I tried "follow...
newbee confused with and () (2 replies, VIP)
microsoft.public.dotnet.languages.csharp
Hi, I am confused about when to use bracket and parenthesis, say the following code snippet: for (int i 0; i Request.Form.Count; i ) Label1.Text Label1.Text Request.Form.GetKey(i) " "; will give me all names of elements in a form, however to get element's values I have to do: for (int i 0; i Request.Form.Count; i ) Label1.Text Label1.Text Request.Form[i] " "; Both Request.Form.GetKey and Request.F...
Static? (17 replies, VIP)
microsoft.public.dotnet.languages.csharp
Hi In a class with simple methods like: Products.Insert(string name, string desc) Products.Update(int id, string name, string desc) Products.Delete(int id) What is better? Static or common methods? This objects do not need instances. I have a lot of classes, and my only fear is the cost. Thanks, Bruno Rodrigues
Defining methods for a class that are accessible when declaring arrays of that class? (8 replies)
microsoft.public.dotnet.languages.csharp
Hello, this may seem a strange question, but is there a way of being able to call methods of a class through an array of that class when not referencing a specific object in the array. In other words, defined a class class A I'd like to be able to do the following: // defining an array of class A objects class A myArray[] new class A[10]; // calling MyMethod on the array myArray.MyMethod(); where ...
how to integrate "Windows Picture Viewer and Fax Viewer" (shimgvw.dll) of Windows XP in my c# app? (3 replies, VIP)
microsoft.public.dotnet.languages.csharp
hi all, i want to use "Windows Picture Viewer and Fax Viewer" in my c# app to manipulate images, picture viewer is found as a DLL (shimgvw.dll) in System32 folder of WinXP. can some one tell me how can i use it in my C# app? TIA sci
no value given for one or more required parameters (2 replies)
microsoft.public.dotnet.languages.csharp
Hi there, I have taken over this project from someone thats left the company. There were about 5 other projects included in the solution explorer and every time I opened the project, something was trying to connect to a SQL server machine that no longer exists. Because this was taking so long every time I fired up C# I decided to delete the other projects (Big mistake). That didnt help I still get...
how to destroy array (3 replies, VIP)
microsoft.public.dotnet.languages.csharp
Hi, I have created an array of Objects in a collection. I was wondering is there a way to destroy the array to free up the space in the memory ? or they are automatically destroyed and garbagge collected by .Net framework? Sarfraz
Creating Object (2 replies, VIP)
microsoft.public.dotnet.languages.csharp
How can I check if the object is created?
How to Split a XML file to multiple small XML Files (2 replies)
microsoft.public.dotnet.languages.csharp
Hello, I am trying to split a XML file to multiple small xml files in vb.net and am trying to get the best possible approach to this. Any help on this will be great... Sample example on what I am trying to do... Any help on this will help me a lot. Thank you KB Source XML document ?xml version "1.0" standalone "yes"? SynchronizationObjectsDocument ApplicationArea DocId dea9593b 4c60 4c1a ab7f 004a...
C# on Linux (or other platforms)? (3 replies)
microsoft.public.dotnet.languages.csharp
Hi, Is it possible to run C# on other OSes, such as Linux, etc.? I heard about a "Mono" project, but could not find any useful information. Thanks Mike
Retrieving items from XML file (2 replies)
microsoft.public.dotnet.languages.csharp
Hi, I am new to XPath and I am stuck with an expression. I would like to select all servers which the user subscribed to. Here is my XML: forums forum name AAA /name subscribed 1 /subscribed /forum forum name BBB /name subscribed 0 /subscribed /forum ..... ..... I would like to retrieve "AAA" since it is a server with "subscribed 1". I tried various syntaxes, unsuccessfully. This is the last one: ...
Invoke method (2 replies, VIP)
microsoft.public.dotnet.languages.csharp
How can I Invoke method in my application from other application? Also how can I expose method from Windows Application?
Hash table sorting? (5 replies, VIP)
microsoft.public.dotnet.languages.csharp
Does anyone know how to sort a hash table?
How to receive all incoming and outgoing network packets in C# (2 replies)
microsoft.public.dotnet.languages.csharp
I cannot handle this.I can receive incoming but I cannot detect outgoing packets. I am using Windows XP no SP present. Thanks a lot for answers.
SQL Bulk load - creating Schema file (4 replies, VIP)
microsoft.public.dotnet.languages.csharp
Hi, I want to back up my data in some table in SQL server and import it back using Bulk Load of SQL server 2K. I can use the following code to backup the data in XML dataset.WriteXml(@"C:\Data.xml"); dataset.WriteXmlSchema(@"C:\Schema1.xml"); and following code to bulk import the same data SQLXMLBULKLOADLib.SQLXMLBulkLoad3 x new SQLXMLBULKLOADLib.SQLXMLBulkLoad3Class(); x.ConnectionString "PROVIDE...
GetPriorityClass in Win2003 (2 replies, VIP)
microsoft.public.dotnet.languages.csharp
Hi, My goal is to verify that a process is alive, therefore I use the GetPriorityClass function, if this API function succeed it means that the searched process is alife, otherwise it died. The problem is that in Windows 2003 this function returns success even if the process is dead. Why it happens in Win2003? What is the way to solve this problem? Is there any other way to check if the process al...
Project dependencies - ? - (2 replies, VIP)
microsoft.public.dotnet.languages.csharp
Hi, I have problem with project dependencies. I have made new setup application and everything works perfectly on my comp with VS 2003. On another computer with VS 2002 it does not work. Normally it does not work on computer without VS framework. I am not sure what proper way is to include dependencies. I know how VS automatically discovering all dependencies and add it to Detected Dependency dire...
Convert C# to Java (and viceversa) (4 replies, VIP)
microsoft.public.dotnet.languages.csharp
Hi, Does anyone know of reliable programs that convert C# to Java and viceversa? Thanks Mike
Enum Question (2 replies)
microsoft.public.dotnet.languages.csharp
Hi, How do I pick the correct Enum value at runtime (without hard coding) with the string name of the enum value? Thanks
Exposing Method (2 replies)
microsoft.public.dotnet.languages.csharp
Hello. How can I expose some mehods from my Windows Servise application as Web Service and access thm from other application?
newbi question (3 replies)
microsoft.public.dotnet.languages.csharp
Hi all and thanks in advance, I have written a class library in C# (a set of cs classes) which I would like to install on our production webserver. It is used by some of the asp.net pages that I have written. Everything ofcourse works great on my local system. I have the class library set up as a different project with a different path from the website addresses. I can see when I change the config...
c# as ActiveX (2 replies, VIP)
microsoft.public.dotnet.languages.csharp
Elo, how to put my own form as object on a web page. (you know, as activex, 4example simple game) how to write form. how to write index.htm. Please help, on private if you please dariuszbz nothik @wp.pl Reag @ big tnx debe
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification