-
- Outa this Operating System
by C# Questionaire
- 4 Replies
- Last post
by Wiggly
- I'm making a Defrag Tool, and need to allow it to run out of Windows, so it can move all the "Unmovable Files". Is there any way (preferably C# DLLs) to make it react like the Windows Install Disc, so it can start up outside Windows and run there NOTE: This is not scheduling the defrag, I actually want it to boot off this app, as I am burning it to a CD. I will take any VS05 lang. but I
-
- Creating basic login system.
by Yorick85542165
- 3 Replies
- Last post
by Biche
- Hi
Does any one have any tips or tutorials for creating a basic login system in C# for a windows application. I am finding it difficult to retrieve information to give me a starting point. Most of the information is for websites. I am using C# express edition 2005.
Thanks.
-
- Implementing an expression parser
by Gopinath M
- 10 Replies
- Last post
by CalvinR
- Hi All,
First of all thanks you very much for spending your time to open this post. We are trying to implement a small parser which evaluates expression given by users. We have idenfied a set of operators, functions, keywords, conditional staments which are required for the language. Can you please tell us how shall we implement a parser which checks syntax of the expression and evalutes the
-
- Intellisense only working on some Classes and not others
by littlecharva
- 5 Replies
- Last post
by TaylorMichaelL
- Hi,
I've done a good search on Google and on here and tried many of the solutions to fix a faulty Intellisense, but I get the feeling it's me that's doing something wrong rather than the Intellisense.
I've just started using VS2005Pro as my IDE for editing my .cs Code Behind files after using TextPad before. I made the change as I want the benefit of Intellisense.
I don't have my site set
-
- Structuring up project.
by Scrier
- 5 Replies
- Last post
by Thomas Danecker
- Hi,
I'm wondering how you easily can structure up a C# project in multiple files without too much work. This is to group up similar task in new files and only have the function calls in the events.
So in an example the code in Form1.cs :
Code Snippet
private void ms_OpenRawData_Click( object sender, EventArgs e)
{
open_frm = new Open ();
open_frm.Sho
-
- How to convert String to double or integer and use operator to calculate it
by RAGOpoR
- 3 Replies
- Last post
by RAGOpoR
- textBox1.Text = (numericUpDown1.Text) * (priceTextBox.Text)*(discountTextBox.Text/100);
compiler report
Error 1 Operator '*' cannot be applied to operands of type 'string' and 'string' C:\Documents and Settings\Administrator\Desktop\Project C#\RAGOpoR\Form3.cs 46 29 RAGOpoR Error 2 Operator '/' cannot be applied to operands of type 'string' and 'int' C:\Documents and Settings\Administrator\D
-
- writing / renaming over saved file?
by Anonymousaaaaaaaaaaaaaaaahhhh
- 10 Replies
- Last post
by Zamial
- Hi,
im in need of serious hellp, how would i be able to detect that there is a file the same as the one im trying to save so a set of option like do you want to save over this file yes or rename file
here is my code for saving and populating a ListBox with current files,
/// <summary>
/// this calls the 'save function' from the save button, set of checks are mad
-
- Returning an enum from methods
by Moorstream
- 3 Replies
- Last post
by BonnieB
- Hi,
I have been coding VB.NET for a while and there I use a lot of enums for return codes. These enum return codes are returned as int's. When I try to do this in C# it does not work in the same way. How would I enumerate possible error codes and return one of them from a method
Best
/M
-
- Convert string to operation
by szolDat
- 8 Replies
- Last post
by Cosmin Calinescu
- Hi!
Is it possible to convert strings to operations in a relatively simple way For example convert this string:
string OperationInString = "3+3+9";
somehow, so I get back "15".
Thanks in advance. ;)
-
- InvalidOperationException
by Sniper167
- 14 Replies
- Last post
by sirjis
- I got an Exception on this line: " whois.Lookup(listBox1.SelectedItem.ToString());" and I don't know what to do...
System.InvalidOperationException was unhandled Message="Cross-thread operation not valid: Control 'listBox1' accessed from a thread other than the thread it was created on."
So I tried this:
private void setListBoxSelectedItem( Strin
-
- Document Based Project
by MSGhazi
- 1 Replies
- Last post
by OmegaMan
- Is it possible to create a doc-based project In an older version VC++ it was just a selection in the project creation wizard.
-
- A conversion question.
by AlexBB
- 2 Replies
- Last post
by AlexBB
- What is the inverse for the operation below if I want to get back an array of byte[]:
byte [] cipherText
string str1 = Convert . ToBase64String ( cipherText ) );
cipherText = Convert.
Thanks.
-
- Random problems
by dtsn
- 8 Replies
- Last post
by Matthew Watson
- Hi, I'm trying to create a GA to solve Sudoku problems. For this i have to create a population, i am using a class to hold the 9 by 9 grid and the fitness of each grid. However when i iterate through my ArrayList which holds the populate i am generating random numbers to fill in all the blank squares. However what happens is that every grid turns out the same. The random number works and is genera
-
- while trying to open an web application i am getting error
by Maheswari
- 1 Replies
- Last post
by Rahul Saxena
- Already i am having a ASP.NET web application. while i am trying to open the same i am getting the following error.
"The file could not be loaded into the Web Forms Designer. Please correct the following error and then try loading it again:
The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in
-
- W3wp.exe Application Error - Exeception breakpoint - break point has reached
by mailtojp76
- 5 Replies
- Last post
by balajitr
- Hi All,
We are getting following error message on our Win2003 server. "W3wp.exe Application Error - Exeception breakpoint - break point has reached". We are running the Asp.net2.0,1.1 and SQL 2005 and IIS6.0. for this application is pointing Asp.net1.1 and sql 2005 and we are added one ISAPI filteration for SEO friendly URL. We are get
-
- Thread.Sleep( 1 ) slows down too much my program
by WalterAlex
- 2 Replies
- Last post
by WalterAlex
- Hello,
I'm porting a z80 cpu emulator that i made in c++ years ago to C#. The main have a infinite loop that reads a opcode of a z80 program loaded into memory and then emulate the asembly instruction. something like this:
int loops = 0; while ( bEndEmulation == false ) { UInt32 iOpcode = ReadOpcodeFromMemory(); ProcessOpcode(iOpcode); // Thread.Sleep(0) // so cpu at task manager show 100 %
-
- Storing important application user-specific info on local machine
by asadim
- 3 Replies
- Last post
by ChunSheng Tang - MSFT
- I want to store important user-specific data such as license keys in the \Documents and Settings\ username \Local Settings\Application Data folder (my application is not using WinForms) and I'm wondering if there's a way already provided by .NET 3.0 that allows writing/retrieveing of such data. The reason why I want to store these data in the Application Data folder and not in the registry is that
-
- C# divide errors with doubles--language flaw
by TheGenius
- 6 Replies
- Last post
by IsshouFuuraibou
- I have encountered a flaw in the way that c# handles division for the double data type. Dividing .94 / .01 returns erroneous results. Using floats instead of doubles yields correct results. Performing the exact same code with C++ yields correct results, so it is not a processor issue. Code example: // both of the following yield 93.999999999999986 // they should yield 94.0 // the
-
- Writing into current user profile
by asadim
- 2 Replies
- Last post
by asadim
- I'm trying to write a series of user-specific data such as license info for my software into the user profile. I'm wondering how this is done in C#. I've read articles on the 'net that talk about user profiles in ASP.NET but that's not what I'm looking for. Any help is appreciated.
-
- waiting for an event
by renealejandrov
- 5 Replies
- Last post
by Friendly Dog
- Hi I don't know if this is the apropiate forum to write, but I think someone might know about this.
I am developing a library that invoques some methods of other library, he other library is a com object and the method tha I Invoque is called Login.
Thre thing is that this Login method executes asynchronously and fire some event to say that it has finished the login process.
In the ev
-
- Stack OverFlow Exception in .NET compact C# Application
by Junwen
- 5 Replies
- Last post
by wakawaka54
- My C# application has numerous windows form and I often need to call another windows form and closes the previous one.
However, because of this, stack overflow exception happens.
I have run the debugger in VS2005 and noticed that whatever form that the application loads has all its methods push into the call stack. For example,
namespace PHIMS { public partial class AddAllergy : Form
-
- abstract properties : get; vs. set; vs. get; set;
by bitbonk
- 12 Replies
- Last post
by Paul Louth
- I would like to define an abstract property where the deriver is forced to implement the get acessor for that property but is free to implement the set acessor. It seems that C# 2.0 has no way of declaring this. Either the deriver has to implement both acessors (get; set;), or the deriver is not allowed to implement the acessor that was not declared in the abstract base class. I am suprised that a
-
- Generics in C# - new() cnstraint
by Hatzi74
- 11 Replies
- Last post
by Richard Potter
- Hello...
I am trying to play a bit with the generics feature of the .Net 2.0 Framework and I ran into this "Problem"
I try to create a Singelton Base-Class, which will create an instance of itself if the instance is accessed. Since I want to create an Instance of <T> inside my generic Base, I need to supply a new() contraint to <T>.
This "forces" me to
-
- Authenticating a user across different domains using ADAM and AzMan
by Morrissey99
- 4 Replies
- Last post
by Datasmith
- Hi everyone,
So I've created a small "security framework" for my project. All the logic is in place and I'm very happy with it. Basically, I'm using Authorization Manager to create an authorization store in active directory. Works like a charm. Then my security framework takes care of authenticating a user and checking if the said user is in a group in my authorization store.
-
- Role based Authentication using WCF
by Fahd
- 2 Replies
- Last post
by timvw
- Hi there,
I am looking to authenticate my clients to access the app and then determine what Operation contracts should they use based on Roles to access my service. Now, I know I can use Windows Credentials and so forth but I don't want to do that, I want it to be as transparent as possible because our clients are computer illiterates. So, for them to go in and create user account and groups