-
- Inheriting Graphics
by Jan Kučera
- 2 Replies
- Last post
by Jan Ku?era
- Hi,
I would like to have my custom Graphics object, which will represent, say, a 2D array of booleans in memory and let the developer use well-known methods like DrawLine to modify the values.
However, the System.Drawing.Graphics class is marked as sealed, so any ideas how should one do this Anything other than creating new graphics class
Thanks,
Jan
-
- use of Debug folder's Database ?????
by Deep_p_patel
- 5 Replies
- Last post
by Peter Ritchie
- what to do with copy of debug folder for the database file
is it important for Database point of view
Dabase copy...
1. in local folder. (path)
2. debug folder's copy
3. main project's folder.
what is the different use of this copyies
-
- If condition
by Azurewrath
- 14 Replies
- Last post
by CalvinR
- Hi,
In the book I am reading it shows examples like this:
if (!SourceFileExists()) return;
System.IO. File .Copy(txtSource.Text, txtDestination.text);
MessageBox .Show( "The file has been successfully copied." );
Isn't it better to write it like this:
if (SourceFileExists())
{
System.IO. File .Copy(txtSource.Text, txtDestination.text);
MessageBox .S
-
- create PDF file
by il drugo
- 3 Replies
- Last post
by OmegaMan
- Hi, i have a problem. I could create a file pdf from a TIFF file, or another file. I using c# but i can use c++.... at moment i have the acrobat 7.0 and usind SDK 7.0.5 how i make to using that in the code c# or c++ i don't know... what i include in c# what com i using
I use c#, i make a pdf file from file tiff for example. when i use ACROBAT REARER 7.0 i can CREATE PDF (menu toolbar), and i
-
- Debugging System.AccessViolationException
by TanTS
- 8 Replies
- Last post
by jlac1024
- Hi all, I noticed that from time to time, my program that calls C++ native functions tends to generate System.AccessViolationException. However, the reproduction of the exception is almost next to impossible and that it seems to happen so randomly. The full message is as follows: Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an i
-
- Growing Dynamic Arrays
by Mystagogue
- 2 Replies
- Last post
by Mattias Sjogren
- I read an article that said:
In C#, arrays can be declared as fixed length or dynamic. Fixed length array can stores a predefined number of items, while size of dynamic arrays increases as you add new items to the array. A dynamic array:
int [] intArray;
Can somebody show a code example of a "dynamic array increasing in size as items are added "
-
- Calling a class function from inside a worker thread
by rodniko
- 6 Replies
- Last post
by rodniko
- I have a class, which creates and starts a worker thread, i want from inside the worker thread to call one of the class functions, how do i do that
i called the function from inside the worker thread but it is still the same thread......
if i can't then, generally,how do i notify/update the class that started the thread, from inside the thread
-
- Capture Console Output to CLipboard
by AlexBB
- 11 Replies
- Last post
by AlexBB
- I just tried to run a small Console app demo which closes the Console as soon as the output is flushed out and you cannot read anything. The human eye is not that fast, you know. It is a problem I want to solve expertly not the way I did by putting in a statement that threw an exception. That allowed me to copy the Console to the Clip. This is my lame attempt. I want to know how the standard outpu
-
- How to return a string[] from a function?
by mshvw
- 4 Replies
- Last post
by Matthew Watson
- Hello,
Each time that function MyFunc is called, MyFunc fills a string[] with
a unknown number of items. (all serial ports on my computer)
How do I define MyFunc, to have it return this filled string[]
//MyFunc tryout:
public string[] MyFunc(){
string[] PortNames=System.IO.Ports.SerialPort.GetPortNames();
return PortNames;
//calling
string[] MyString=someclass.MyFunc()
-
- name from array to button
by Willempie
- 4 Replies
- Last post
by GNS
- Hi all,
What I need is this:
I have a windows form. In this form there are 10 buttons, these buttons need to contain the name's of a view persons wich i stored in an array. I need to put the name's in an array through another windows form.
When a button is pressed, the name placed on that button needs go to the next form.
My problem now is I don't now anything about array's or how
-
- Determining a Generic Baseclass
by Arne Claassen
- 2 Replies
- Last post
by fmether
- I'm trying to do the equivalent of
if( x is EventHandler) { } for the generic EventHandler<T> but that only works if I already know what T is, which means I already know it's an event handler. Best I've come up with is this: Type t = x.GetType(); if (t.IsGenericType && t.BaseType == typeof(MulticastDelegate) && t.FullName.StartsWith("System.EventHandler&quo
-
- Index was out of range?
by AlexBB
- 10 Replies
- Last post
by AlexBB
- I really hate to bother anyone with this seemingly simple question but it appears I am at the dead end.
I got this message this morning: Index was out of range. Must be .... Parameter name: startIndex .
There are three problem with it. Number one: I have almost debugged this massive application and it seems everything has been working for some time. Unless somehow the input stream's format c
-
- Adding Web References at Run Time
by Chrisql
- 5 Replies
- Last post
by Chris Bardon
- I'm working on a program and need to be able to add web references at runtime and haven't been able to find anything that would let me do this. Basically this is the way the program will work:
1. Allow user to enter asmx URL.
2. During runtime process the web service so it is accessible.
3. For now lets just say I want to print out all of the methods available from the Web Service.
-
- "Handle" unhandled exceptions of another process?
by Thomas Danecker
- 5 Replies
- Last post
by TaylorMichaelL
- Hi,
Does anyone know how to "handle" an unhandled exception of another process The AppDomain class has an UnhandledException event but I hadn't found a way to get the default app domain of another process.
In my project I've an application which launches another process, waits for it's exit and does some operations according to the process's ExitCode. In the case of an unhandle
-
- StackOverflowException with TypeDescriptor.GetProperties(...)
by windsim
- 6 Replies
- Last post
by Mark Dawson
- Hi, I have a project based on .Net 1.1 and VS 2003,now I am trying to upgrade it to .Net 2.0 and VS 2005.The project passes the 'Build Solution',but When I start Debug, it suddenly comes StackOverflowException and Debug stops. The main Exception point is the function below: public System.ComponentModel.PropertyDescriptorCollection GetStatefulPropertyDescriptors() { DataObject.StatefulPropertyAtt
-
- Inconsistent accessibility
by Saji
- 4 Replies
- Last post
by Saji
- Dear All,
I am getting an error as follows while i work with windows application. My code is also given below.
" Inconsistent accessibility: return type 'SouthSquare.DBLayer.OrderList[]' is less accessible than method 'SouthSquare.Screens.ScrnOrderList.GetOrderDetails()' C:\ProjectFrom Saji\SouthSquare\SouthSquare\Screens\OrderList.cs 139 36 SouthSquare"
public DBLay
-
- Error: "No overload for method "foo" takes '4' arguments"
by DevanL
- 10 Replies
- Last post
by DevanL
- I have referenced a C++ project to call a function from a class within but I get the error message "No overload for method "foo" takes '4' arguments" when I compile.
if I go to the deinition for the class of the following call: myClass.foo(a, b, ref c, d) I can see the following metadata:
namespace SPTI { public class myClass
{ &nb
-
- TLB registration isue - how to register TLB with GUID with regtlibv12 or C# solution
by jv_getmore
- 4 Replies
- Last post
by jv_getmore
- Hi all,
I have created .NET classes, compiled it as DLL and registered via REGASM. Regasm created TLB file, saying that "TypeLib was registered".. i also created REGfile with regasm and added it to the registry manually, BUT - the TLB specification is in fact NOT registered in the registry.
What is in the registry after using regasm:
HKCR\ CLSID \{GUID}\...
-
- Windows Service
by chrisc12345
- 1 Replies
- Last post
by OmegaMan
- I have a situation where I am using UniObjects (for .NET) from a .NET App to connect to a Pick Universe system on UNIX. They work fine, except they do not have connection pooling for the version I am using and because of licensing issues, I need to "reserve" (i.e. keep open x number of connections).
I have a crude prototype that does this, but I would like to create a Windows Service
-
- Databinding in a list View
by Bryan Kardisco
- 1 Replies
- Last post
by Chunsheng Tang - MSFT
- Maybe someone can help me , as I'm suck and have been searching for about 8 or 9 hours. I want to have a listView with multiple columns where the columns would be for example: name , age , status I want to have a class called Person and use ObservableCollection But I'm just not sure how to throw this all togeather or how to add to the collection and have it be reflected through the use of INotify
-
- Optimization techniques
by Azurewrath
- 7 Replies
- Last post
by Azurewrath
- Hi all, Is there a website where I could find some optimization techniques to improve the performance of a C# code Thanks, Aw
-
- abstract class inherit from interface
by enediel
- 1 Replies
- Last post
by Lluís Montero
- Hello I created an interface, and I need an abstract class to inherit from that interface, also I don't want to declare implementation of the inherit methods because they will be declared on classes that inherit from the abstract class. Visual Studio 2005 complains that I don't give implementation to these methods Is that necessary or I'm making a mistake Thanks in advance for any suggestion
-
- Create Publication, Subscription and Replication using c#2.0 for sql server 2000
by prashant mulay
- 2 Replies
- Last post
by Peter Ritchie
- Hi,
I want to create a C# application where I want to create a Publication for a database and subscription for other database in sql server 2000. Then I want to replicate the data.
Please guide me how to solve this.
Thank you,
With Regards,
Prashant
-
- how to run a c# program in visual web devolper 2005 express edition
by sri111
- 1 Replies
- Last post
by Kirankrb
- Im new to .net technology.I have visualwebdevoper 2005 express edion .I dont know how to run c# programs using this edition.could anyone pls help me
-
- Constructor calling another issue
by Gergi
- 5 Replies
- Last post
by Gergi
- I have a class Process that i call from a console application that goes to the database and gets info and loads the properties of the class. the method below calls the startnewtransaction which is a method in an abstract class.
class Program
{
static void Main( string [] args)
{
Process Cls = new Process (93);
StartNewTransaction(Cls);
}
public static