unsafe
{
// use pointers
}
don't forget to set your project to allow unsafe blocks of code
From project properties->Build->Allow unsafe code
unsafe
{
// use pointers
}
don't forget to set your project to allow unsafe blocks of code
From project properties->Build->Allow unsafe code
It's so easy, Crystal Reports used in complex reports and it makes life easier for you, some styles and so on
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!
Yes you can, COM is a concept and used for some reasons, and your questions answer is Yes
I recommend to ask this question in Web Development forum, to get the correct help :-)
but in that case (previous reply) you won't see controls color except in runtime not design time.
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];
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 :-)
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.
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
Waiting for your questions, hope to you the best in your task :)
Why you said that?
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.
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.
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")
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 :-)
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.
Change your machine time format
Control Panel->Regional and language options
use Textbox.Text+= yourString;
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)
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'
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
you can search on "Skin Craft" it's tool used to skin your form
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.
try to use multithreading, if the problem is the same tell me
string str= "12,13,14,15";
string[] strs = str.Split(',');
ArrayList strsList = new ArrayList();
foreach(string s in strs)
strsList.Add(s);
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
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
Serialization as I think
Whatever, it should return 0 (ZERO) if it does not meet the criteria.
His error is bit strange!!
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
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#
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();
}
}
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
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();