Ramy Mahrous 401 Postaholic Featured Poster
unsafe
{
// use pointers
}

don't forget to set your project to allow unsafe blocks of code
From project properties->Build->Allow unsafe code

Ramy Mahrous 401 Postaholic Featured Poster

www.msdn2.com search on C# you'll find good tutorials and Videos too

Ramy Mahrous 401 Postaholic Featured Poster

try this http://www.mvps.org/access/bugs/bugs0017.htm if the problem is the same contact me again

Ramy Mahrous 401 Postaholic Featured Poster

It's so easy, Crystal Reports used in complex reports and it makes life easier for you, some styles and so on

Ramy Mahrous 401 Postaholic Featured Poster

MSDE (Microsoft SQL Server Desktop Engine) or Microsoft SQL Express and .net framework 2.0 is free.. you won't enforece your client to pay additional fees.

Client don't need to have SQL Server in your case rather to have SQL Express Edition, what you should do is to attach db while installing and that's!

Ramy Mahrous 401 Postaholic Featured Poster

Yes you can, COM is a concept and used for some reasons, and your questions answer is Yes

Ramy Mahrous 401 Postaholic Featured Poster
Ramy Mahrous 401 Postaholic Featured Poster

I recommend to ask this question in Web Development forum, to get the correct help :-)

Ramy Mahrous 401 Postaholic Featured Poster

but in that case (previous reply) you won't see controls color except in runtime not design time.

Ramy Mahrous 401 Postaholic Featured Poster

Look, you can loop for all controls and set their color to the value returned from .settings file
for example

foreach(Control c in this.Controls)
c.ForeColor = 
[Settings1].Default.[ControlsForeColor];
Ramy Mahrous 401 Postaholic Featured Poster

that's an approach, but afterwards you need some complex algorithms to maintain such staff, like Control.CreateGraphics to draw a shape, let's say you need a button as
Pyramid and so on..
But if you need just to chaneg the color, I prefer to use .settings file :-)

Ramy Mahrous 401 Postaholic Featured Poster

why many-to-many, when some subContactor leaves the team, update it with the new one (ID) -- One-to-many.
if you want to keep track on the subContactors you should use many-to-many but keep in you mind to include period in the bridge table.

Ramy Mahrous 401 Postaholic Featured Poster

Grant select, insert to [username] --for all tables
Grant select, insert on [table name] to [username] -- for specific table
Grant Create database, table to [username] -- give some permission to some users to DDL

Ramy Mahrous 401 Postaholic Featured Poster

Waiting for your questions, hope to you the best in your task :)

Ramy Mahrous 401 Postaholic Featured Poster

Why you said that?

Ramy Mahrous 401 Postaholic Featured Poster

Zamriow, to understand what does behind the scene, when you switch from Code to Design, VS uses reflection to compile *.designer.cs
So, if you able to append /modify code generated for controls in this file.

Ramy Mahrous 401 Postaholic Featured Poster

Dear hollystyles;

Search on the Windows API that got the key pressed, that's the half of your question way.

the next half is to make use of it.

I recommend a site called apiviewer.com I think it may help you alot in which method in which windows APIs to use.

Ramy Mahrous 401 Postaholic Featured Poster

Dear bumassjp,
I got your problem in getting each item
So,

Read file data

string data = null;
data = File.ReadAllText("FilePath");
data = data.Remove(0); //to remove $
string items = data.Split(','); // to get each item

in your input the items[2] would be 'A' vbrep_register("432928")

Ramy Mahrous 401 Postaholic Featured Poster

No, you can develop this feature yourself, actually Zamriow, Microsoft can't serve each one needs, but they build the infrastructure to allow you develop or create your feature or to enhance VS through VS extensibility.

As I mentiond, you can work around how they make SkinCraft and do yours.

Hope to you the best :-)

Ramy Mahrous 401 Postaholic Featured Poster

did u run this program as administrator, if you don't please run it as administrator
and modify your code to be

void ClearFolder(DirectoryInfo folder)
{
foreach (FileInfo file in folder.GetFiles())
{
try
{
file.Delete();
}
catch
{
}
}
foreach (DirectoryInfo subfolder in folder.GetDirectories())
{
ClearFolder(subfolder);
}
}

because there are some files won't be deleted as they are being used.

Ramy Mahrous 401 Postaholic Featured Poster

Change your machine time format

Control Panel->Regional and language options

Ramy Mahrous 401 Postaholic Featured Poster

use Textbox.Text+= yourString;

Ramy Mahrous 401 Postaholic Featured Poster

I don't know exactly a solution but let me work around it, you can get the X and Y coordinates save this location as images, as you see this image will be 1 pixel, use System.Drawing to get the color of the pixel

(You may find an easier solution)

Ramy Mahrous 401 Postaholic Featured Poster
double CalculateFederalTax(double grossPay, string taxStatus)
{ 
if (taxStatus == "S")
{
if (grossPay < 240)
return grossPay * 0.12;
else if (grossPay < 480 && grossPay > 240)
return grossPay * 0.18;
else if (grossPay < 720 && grossPay > 480)
return grossPay * 0.25;
else if (grossPay >= 720)
return grossPay * 0.28;
}
else
{
if (grossPay < 240)
return grossPay * 0.12;
else if (grossPay < 480 && grossPay > 240)
return grossPay * 0.17;
else if (grossPay < 720 && grossPay > 480)
return grossPay * 0.25;
else if (grossPay >= 720)
return grossPay * 0.30;
}
return 0;
}

don't worry, it won't return 0 as you return in your 'if' and 'else'

Ramy Mahrous 401 Postaholic Featured Poster

Ise Microsoft Outlook APIs to send the mail programatically through Microsoft Outlook.

To send email from your application without using Microsoft Outlook APIs, use Microsoft CDO library for Windows 2000

Ramy Mahrous 401 Postaholic Featured Poster

you can search on "Skin Craft" it's tool used to skin your form

Ramy Mahrous 401 Postaholic Featured Poster

Dear friend,
I see you should learn algorithms and data structure absolutely autonomous any programming language that’s would make you better than restricted with some languages implementation on some specific algorithms
I prefer this book “Algorithms” from Addison Wesley
If you could not get, add me on to send you it.

Ramy Mahrous 401 Postaholic Featured Poster

try to use multithreading, if the problem is the same tell me

Ramy Mahrous 401 Postaholic Featured Poster
string str= "12,13,14,15";
string[] strs = str.Split(',');
ArrayList strsList = new ArrayList();
foreach(string s in strs)
strsList.Add(s);
Ramy Mahrous 401 Postaholic Featured Poster

Delegates in C# is function pointers in C++
It means you can create a reference to encapsulates a method (in VS 2003) and anonymous methods too (in VS 2005)

Events: Methods fired when something specifically done

Ramy Mahrous 401 Postaholic Featured Poster

Welcome Kelba to C#,

Try to apply OOP concepts on c# applications then get involved with business applications, read more articles on MSDN, you will gain perfect experience
May ALLAH with you, friend

Ramy Mahrous 401 Postaholic Featured Poster

Serialization as I think

Ramy Mahrous 401 Postaholic Featured Poster

Whatever, it should return 0 (ZERO) if it does not meet the criteria.
His error is bit strange!!

Ramy Mahrous 401 Postaholic Featured Poster

Sorry, I have no idea

No, As I think

I did not work by their classes, I saw that in article showing how their libraries is better than OLE,......... classes

Ramy Mahrous 401 Postaholic Featured Poster

C++/VC++/C#/ : Programming language
COM/ Component Object Module, to develope your application in away of Modularity, Useability , ....
MFC/ classes libarabies to develope windows applications
WIN32API classes libarabies use some windows APIs

2 - VC++, but If you want really low level so C/C++,
3 - we do not care about that, u may hear C# or VC# or C#.NET or VC#.NET just we know C#

Ramy Mahrous 401 Postaholic Featured Poster

I think you mean that...

class CImage
{
static Image myImage;
static CImage m_cimage = null;
Private CImage()
{
}
public static CImage GetTheOnlyInstance()
{
if(m_cimage != null)
return m_cimage
else
return new CImage();
}
}
Ramy Mahrous 401 Postaholic Featured Poster

Threading..
Try to call function in event instead execute some codes in the event itself and let the event start new thread and call the function within

Ramy Mahrous 401 Postaholic Featured Poster

So, I'll give you two solutions, you can go to MySQL site and Install their libraries to work on .NET (Better than using OLE Classes)

Second, why you use Reader??! Count(*) returns ONE VALUE so you should use execute SCALAR and cast the returned value

int Count = (int)myCommand.ExecuteScalar();