-
- Low-level Memory Access
by tsalazar
- 5 Replies
- Last post
by tsalazar
- I'm trying to access the contents of the serial port registers. I've used IntPtr to hold the address of the first serial port register, but how do I get to the contents of that address
-
- Recreate dataset, without loosing custom queries?
by James_Steven
- 5 Replies
- Last post
by James_Steven
- I created an application and added a dataset from a MSSQL database using the wizard. I also added some custom queries to the tables. Now theres two reasons why i want this dataset to be recreated:
1) The dataset designer stopped working, whining something about query string - i did modify the settings file, but i'm fairly sure i changed the query string back to the exact same as before, but
-
- Adding a default namespace to every form
by Paresh B. Rathod
- 4 Replies
- Last post
by John Willemse
- Sir,
Whenever I create a new windows form in my C# application i get the following namespace already used:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
I want to add new item to this list, that is whenever i create new project it must get
-
- Desktop Recording
by akshah
- 1 Replies
- Last post
by johnjoseph
- I want to record the activities on the desktop as a media stream and transmit it over the network.
I think there should be some technology that helps this development; that sends streams only when some modifications happen on the screen, nothing otherwise.
Can u give some technologies I should refer for this development.
Thank u and TC
-
- Going through folders and subfolders
by Katzs
- 4 Replies
- Last post
by Robert Rossney
- I'm working on something in C# and what I want to do is to start at a specified root directory and work with all the files in that folder, but there could be anywhere from 0-3 subfolders in between the root and the file. What's the best way to get to all the files Any help would be appreciated.
-
- Parameter is not valid Exception
by osamaT
- 3 Replies
- Last post
by O.Miller aka phoboss
- hi.. i have this code..
Code Snippet MemoryStream ms = new MemoryStream(); ms.Seek(7, 0); //take frame as an image // b is a bitmap System.Drawing.Image img = b; try { //save image on memory img.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); img.Dispose();
-
- How to code my SQL String Manipulation App in C#
by NoEgo
- 5 Replies
- Last post
by Adamus Turner
- I would like to know the following in regards to my other thread on how I'd possible approach doing this same thing through C#. To me it seems like more work to do this if you are like me and haven't really done client C# and mostly used to ASP.NET C# code but I might as well start, as I could use regex or whatever to strip out stuff and instert or rearrange into our new table:
http://forums.mi
-
- "MS Paint" source code is required please
by Uri Kartoun
- 6 Replies
- Last post
by Suprotim Agarwal
- Or a similar application that allows a user to draw various shapes and colors using the mouse and then save it as an image file.
Thanks!
-
- Shorter array declaration and definition
by Azurewrath
- 6 Replies
- Last post
by Peter Ritchie
- Hi all, After a long time I can post again! It was due to the still existing IE7 problem. Is there a shorter way to do this: int [ ] intArray = new int [ 5 ]; I am wondering why we write int 2 times One of them is to define the type, and the other is the constructor Can we do the same like this: int intArray = [5] Thanks, aw
-
- SELECT-INTO query problem
by farshad.A
- 6 Replies
- Last post
by farshad.A
- Hi
I have a SELECT-INTO query which I wish to add some additional columns to the destination table. I can create the table and add the columns after it, but I wonder how is it possible to add that columns directly with the SELECT query.
Thanks in advance,
farshad
-
- Question on dealing with blocking calls
by TheSilverHammer
- 8 Replies
- Last post
by TheSilverHammer
- I have a stream I am using. This stream doesn't support time outs and is synchronous. This stream is a 'terminal session' and when I write to it, it executes the commands like you would expect in a terminal session. It echos the response and I can just Read() to get it.
There is one big problem, is that if there is nothing to Read() the Read() call blocks. So now if my terminal session
-
- avoid autosave on testing app.
by VooDoo Chicken
- 1 Replies
- Last post
by psur
- hi, is there any way to dissable 'autosave' when you try to run an app thats being done at this moment long: if i run an app while in developement, its probably because i did some changes and i want to test those new changes, and they may or may not work. if for example is a test or something, i may have changed something that alreeady worked fine, the thing is, even if it did not work, or i scre
-
- Creating an infinite loop
by deodorant
- 6 Replies
- Last post
by deodorant
- Hello, what is the best way to create a loop that never stops Would it be:-
Code Snippet
for( ; ; )
{
// code
}
or
Code Snippet
while(true)
{
//code
}
Is any real difference between the two
If it makes any difference in which one to use, I have code that constantly checks a value against another value, a
-
- How do you cast a char* to IntPtr?
by scarlette3000
- 7 Replies
- Last post
by scarlette3000
- How do you cast a char* to IntPtr
My code snippet looks like this:
unsafe { char * a = null; IntPtr result = &a; }
The second line is too obvious to fail. Any idea how to do it It is greatly appreciated.
-
- Keeping a logfile
by meNu
- 5 Replies
- Last post
by theblueeyz
- I am new to C#. I want to know what is the best way to keep a log of what you do in an application The log will be a file of some sort which can be added to but not updated. There should be an easy way of reading from the file.
-
- Calling external dll which exposes a class
by Ray Z. Yang
- 9 Replies
- Last post
by Peter Ritchie
- Hi all,
I have a custom dll which returns a class pointer from its exported function. The calling in C# is similar to this:
Code Snippet
public interface IUnknown { unsafe ulong QueryInterface(ref Guid riid, out IntPtr ppv); ulong AddRef(); ulong Release(); };
public interface IClass : IUnknown { bool GetVersion(ref VERSION_INFO v
-
- Form1 in a Class Library (.DLL)
by PaulEm
- 14 Replies
- Last post
by Peter Ritchie
- Hey, Im wondering how i can solve my problem, im trying to create an application with a DLL file. This file must contain the WHOLE application (if i change the .DLL, the form will change). Ive tried to make the .DLL file as an referende, but the problem is, when you delete the dll, the program will crash when you run it.. Later i tried 2 exe's, the first one as the 'patcher' to update/download the
-
- Getting the max/min value of an array?
by Azurewrath
- 14 Replies
- Last post
by theTroll527
- Hi all,
Is there a method for arrays that contain integers/floats that when used returns the lowest/highest value
If not, is it possible to add this functionality to arrays as a method, kind of like a global method I can use in any project Is it possible to make changes like this kind of like a permanent addition Or is there stuff like these available on the web
Lastly if it's all possibl
-
- communication between c# application and command prompt
by sara_cs
- 4 Replies
- Last post
by sara_cs
- hi all
i have an idea but really i donot know the starting point of this idea
first i devolop small application to control windows media player
My computer , My documents via hexadecimal messages sent to kernel using
Win32 API
and
i want to send the written text in textbox in c# application to open Command prompt
and i donot know how can any one help me to give insight at this
-
- Singleton class at runtime
by rncwnd
- 4 Replies
- Last post
by Matthew Watson
- I implementet a few classes in my actual project using the singleton pattern mentioned somewhere in the MSDN: public class SingletonClass { public static readonly SingletonClass Instance = new SingletonClass(); private SingletonClass() { // some initializations here } // some more methods, fields, properties, ... } Can someone explain me when SingletonClass.Instance will be created at runtime C
-
- Access outlook 2003
by Avi888
- 2 Replies
- Last post
by Friendly Dog
- Hi
I want to do a certain thing.
I want to take 25 contacts from my outlook 2003 contact list and send them an e-mail. ( I want to do it in groups of 25 each time until all of my contacts got the email)
I managed to write the code for the mail sending but I don't know how to access the contact list.
the code so far is:
ApplicationClass OutLookApp = new ApplicationClass();
// Crea
-
- A question about standards
by kingwoodbudo
- 2 Replies
- Last post
by kingwoodbudo
- I'm new to C#. I was working through a book .Net Framework 2.0 Application Foundation Development, and noticed that in the constructor, each of the arguments had an underscore preceeding the name of that argument. I know that it's not necessary to add the underscore, but would someone tell me if this is a standard for constructors or for arguments in general.
Thanks.
-
- Making Thread.Sleep(); Read from text file???
by James0886
- 4 Replies
- Last post
by Thomas Danecker
- How can i make Thread.Sleep(); read from a text file Im trying to make Thread.Sleep(); read from a text file, if the user enters 10000 in the text file and saves it, next time i load my app Thread.Sleep(); is going to be Thread.Sleep(10000); thx in advance.
-
- Back/Forward buttons
by braderz31
- 5 Replies
- Last post
by decyclone
- Hi,
Does anybody know how to toolstrip buttons work as back and forward buttons
(I already have the buttons i just need to know to make them work as web browser buttons!)
-
- How to determine amount of time a program spends performing I/O ?
by absg
- 2 Replies
- Last post
by Peter Ritchie
- I want to modify my programs functions to return what amount of time is spent by the CPU and what amount of time is spent performing I/O operations. How would I go about doing this Thanks!