-
- Vista doesn't start .sln and .csproj-files
by Wuschba
- 14 Replies
- Last post
by BT Mike
- I just installed a Windows Vista and Visual Studio on it. Everyting seems to work fine except of that I'M not able to double-click on a .sln/.cs/.csproj-file to lunch VS: Just nothing is happening. What is wrong
-
- Simple Way To Change Database Path?
by DennisV
- 2 Replies
- Last post
by DennisV
- I'm really new to this, but I think this post belongs here because it relates to the IDE.
When I first started this project I let V.S. make a copy of the Access database I'm using.
Now I want to save the updated Access database to the new folder my exe will be using and no longer use a copy.
Is there an easy way to do this I don't want to redo all the data links if possible.
-
- Problem with delegates and invoke
by mhmani21
- 2 Replies
- Last post
by mhmani21
- Hi.
I have a networking application. All that is transfered between the client and server is string, nothing else. I deal with the the netwroking things in a class library. I send my info to server using functions and when I receive the answer from server, depending on what it is, I'll decide what I need to do in the client. At some point, I need to receive a list o names form server, and updat
-
- Delaying functions
by Targe577623
- 7 Replies
- Last post
by Targe
- I have a ton of different functions to use and I'm trying to find a simple way to delay them all.
I've tried Thread.Sleep but it halts my entire application until the sleep is done. I tried timers but there's so many variables involved, the timer code gets full of If statements. I tried multithreading without success because I had cross-threading errors.
Any idea how I can delay thin
-
- dd/mm/yyyy for datagridviewtextboxcolumn for display and editing
by Yun Feng
- 8 Replies
- Last post
by BabyFace Jay
- DataGridViewTextBoxColumn bound to sql DateTime
I need to display in "d/M/yyyy" format which I managed to do it as shown in Code 1.
I also need to allow user to edit that column and input in the same format "d/M/yyyy".
However, the DataError Event insists that the date format is "mm/dd/yyyy".
Code 1:
Code Snippet
this .dataGridVie
-
- Is it necessary to check "null" after "new" operations?
by Blue Mic
- 7 Replies
- Last post
by Blue Mic
- Dear all, Somebody required that we should do validation of "new" operations' result in C#. According to MSDN, "new" operator does raise an "OutOfMemoryException" exception but I don't think this validation meaningful in C# - a programming language in which there is automatic memory management. In case the garbage collector failed and there is no memory available, is
-
- What is the default heap size in .NET 2.0 and when does it change?
by Kyle_W
- 4 Replies
- Last post
by Kyle_W
- I just finished reading a great article on Garbage Collection in the .NET Framework:
http://msdn.microsoft.com/msdnmag/issues/1100/GCI/
This article says that a garbage collection occurs whenever a new object needs to be created and there is not enough room on the heap for it. It says that the garbage collection will clear out the garbage objects to make room for the new object, but
-
- Functions with multiple returns?
by razored
- 4 Replies
- Last post
by Matthew Watson
- I am making my best efforts to unify/merge two functions into one large function; however, I've been able to recieve only one return value at a time.
Code Snippet
static double YVertex( double a, double b, double c)
{
double d;
d = c - 0.25 * ((b * b) / (a));
return d;
}
static double XVertex( double a, double b, double c)
{
double
-
- very general Deserialize performance question
by arro239
- 2 Replies
- Last post
by arro239
- i was surprised how long it takes to Deserialize an array on bytes into an object [ok, into a graph of nested objects]
"TransactionClient - 8268295 byte(s) of data deserialized in 16663.9616 ms."
that's only about 500KB a second
i do understand this is a very general remark but maybe somebody has some hints for me right now deserialing takes about the same amount of tim
-
- Little Problem with passing arguments to external programm
by kspyrou
- 1 Replies
- Last post
by mwalts
- Hello, i'm new to c# and .net developing and i have the following problem/question. i have developed a windows application that has an open file dialog in order to choose a file.When the file is selected the path is inserted in a textbox(which is the input to the TreeTagger method) after that there are some other functions that don't concern my problem.When these procedures are finished it's is ti
-
- Is the Application Settings Secured enough to save sensitive Values?
by Fadi Nassri
- 6 Replies
- Last post
by boban.s
- I am buildin a Windows Application.
I Use Sql Server .
I need to save database Username and Password Somewhere.
And Some other data.
is it safe to save this Data in Application Setting.
what is the security level of Application Settings
thank you in advance.
-
- Debugging Tools in VC#
by Al6200
- 1 Replies
- Last post
by Brendan Grant
- I'm working on a managed DirectX project in Visual C# 2005 professional. It has swelled to over 15 classes, and I'm working on debugging it. I think it would be neat to have a feature where I could just run a single function in a sort of sandox, and be able to just give it diffrent inputs and check the outputs to get a good sense of how it works. I know I could move it to a diffrent file, and the
-
- Marshal arrays of structs
by avaknin
- 1 Replies
- Last post
by OmegaMan
- I need some help in calling a native function in a C# code where the native function uses arrays of structs. I know how to handle arrays of chars or ints. There are many explanations and examples regarding these simple cases. However, when it comes to arrays of structs find nothing. Let me explain my question more explicitly. Here is the C struct definition and the C function signature:
-
- recursive locked methods
by davidgale
- 2 Replies
- Last post
by Indian Ocean
- is it ok to do stuff like this - will var locker be unlocked before Method() is called from the inside of the Method()
private void Method() { lock (locker) { // do some stuff // ...
// ...
// ... if (testVar = someVar) { &
-
- if (0.5 = 0.5) ?
by learning33
- 3 Replies
- Last post
by learning33
- I want to be able to use decimal numbers in if statements with equal signs. That seems to be impossible with double. Is there any other way
-
- how can I get the number whithin the brackets?
by Jassim Rahma
- 1 Replies
- Last post
by cablehead
- I have the following text and I want to get the number within the brackets..
HSBC BANK MIDDLE EAST [547628]
how can I do that
-
- 'Document' does not implement interface member 'IStorable.Write()'
by Azurewrath
- 2 Replies
- Last post
by Azurewrath
- Hi,
I have a class named document and an interface like this:
public interface IStorable
{
int Status { get ; set ; }
void Read ( );
void Write ( );
}
Anyone knows why I get the error shown in the title of the thread, even thought I implement the method in the class like this :
public void Write ( object objDocument )
{
Console .W
-
- Custom config file without appsettings tag
by raich
- 1 Replies
- Last post
by Figo Fei - MSFT
- Hi!,
I have a custom config file as:
< xml version = " 1.0 " encoding = " utf-8 " >
< configuration >
< setting1 key1 = "" />
< settings2 >
< setting2 key1 = "" key2 = "" />
</ settings2 >
</ configuration >
How to read the setting from it
-
- working with Thread begin/end criticalregion
by SummerBoy
- 8 Replies
- Last post
by Peter Ritchie
- Hi, I am studying for the 736 certification exam. Currently I am reading up on threads and I am trying to understand the criticalregion methods for Thread. I seem to have grasped the concept, but the code that I have written for practice doesnt seem to execute as expected. Since I am using the begin/end criticalregions for printing the numbers in the array, the thread should not be aborted before
-
- A generic error occurred in GDI+. while uploading the image in asp.net
by Ravindranath561855
- 1 Replies
- Last post
by Figo Fei - MSFT
- Sir,
Code Snippet
I am developing a website where i have a form named albumupload, where i am uploading images into a folder which i have hard coded. My Problem: 1) While i am uploading a image i sometimes get the error as "A generic error occurred in GDI+" , please can anyone assist where i am wrong in my code. i am sending u the code pls reply me soon 2) Also i want to know
-
- C# Programming Style
by Azurewrath
- 2 Replies
- Last post
by Azurewrath
- Hi,
I noticed most of the statements are rather long in C#. For example in the book I read, here is an example: txtUserName.Text = Convert.ToString(Registry.GetValue(
@"HKEY_CURRENT_USER\Software\CleverSoftware\PictureViewer\",
"UserName", ""));
chkPromptOnExit.Checked = Convert.ToBoolean(Registry.GetValue(
@"HKEY_CURRENT_USER\Software\CleverSoftware\PictureViewer\",
"PromptOnExi
-
- Problem with Platform Invoke
by Marco Minerva
- 4 Replies
- Last post
by Marco Minerva
- Hi all!
Can you help me calling the following C++ function from C#
typedef struct { char *name; void *rule; }ASRX_RO_Name_And_Rule;
int ASRX_Set_ROs(int *ch, int NumOfROs, ASRX_RO_Name_And_Rule *ROs );
I have tried with:
[StructLayout(LayoutKind.Sequential)] internal struct ASRX_RO_Name_And_Rule { [MarshalAs(UnmanagedType.ByValArray, SizeConst = 0x200)] public byte[] Name;
-
- class for handling exceptions
by Jocker23
- 4 Replies
- Last post
by Jocker23
- hi everyone!
i need to control exceptions in my win applications, I already have a lil knowledgment about exceptions and i' ve been searching some good examples about the best practices for handling exceptions, but i havent found any complete example.
Someone can help me showing me some portion of code, maybe the class you created to manage exceptions and the way u catch it.
Hope to find
-
- Which is the proper way to decrypt with the RijndaelManaged class?
by Deathwing00
- 6 Replies
- Last post
by Matthew Watson
- I was successful in encrypting using Rijndael, however decryption won't work. Probably there is something that I am not doing correctly. The result that I get when I decrypt is an empty string. Does anyone know what's wrong Thanks for your help. I attach the full class below: public class Rijndaelbox : ISymmetricEncryption { private Rijndael provider; public Rijndaelbox() {
-
- Create and Display an Array
by Dvlnblk
- 7 Replies
- Last post
by Dvlnblk
- I know this should be very simple but I just don't know the correct syntax. How can I create an array of strings, say "ronny", bobby", "ricky","mike" and then access them in the XAML to...say populate a listBox
Thanks, Dvl