|
can u just dock fill a picturebox in a borderless form and set the image in the picturebox?
regs,
g00fy
|
|
|
|
|
Hi everybody,
This is Joydip. I have a problem to share with you all. I want a C#.net code to facilitate my web-application with the functionality of grouping the email-ids stored in the backend, based on the user selection. User should be able to create the group, delete and modify the group also. Can anyone provide me the code. It's urgent. Thanks in advance ,
Joydip
-- modified at 0:12 Tuesday 4th October, 2005
|
|
|
|
|
when i use localhost in connection string dose not connect to the server i got SQL Server does not exist or access denied but when i use computer name it work the problem that programs use localhost dose not work how to resolve this
My Configrations1-WinXP SP2 -Firewall OFF
2-SqlServer 2000 SP4
thanks for your help
|
|
|
|
|
Use (local) . It is recgonized by the SQL Server provider as the local computer, while localhost must be resolved, and it dependes on your local network configuration.
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005
|
|
|
|
|
Yes, you can either try local or you can even use a . in the place of Server name as SQL will resolve it to your local SQL Server. In can use have more than one instance of SQL server installed, then pls use local\<InstanceName> . For example, I have two instances of SQL Server one SQL Server 2000 which is installed with out any specific instance and and hence local and two SQL Server 2005 Beta named as SQL2K5. When I need to connect to SQL Server 2000, I use . or local and when I need to connect to SQL Server 2005, I use local\SQL2K5 .
Hope this helps you.
Regards
Mahesh
|
|
|
|
|
Guys,
I need help, this program using windows application
1. I don't know how to add multiple difficulty levels to the soccer game..
2. how the user choose a difficulty
with this question do i just add buttons so the user can choose?? or else??
3.adjust the opponen'ts likelihood of scoring based on the difficulty factor..
However, i paste my code for likelihood..
//primary game variables
private int playerScore = 0;
private int oppScore = 0;
private int timeLeft = 600;
private int currentPlayer = 1;
private int nextPlayer = 2;
//data structure for likelihood of shot
private double[,] shotChance =
{{-1, .8, .6, .4, .1, .01},
{.8, -1, .8, .6, .4, .02},
{.8, .8, -1, .8, .6, .03},
{.8, .8, .8, -1, .8, .04},
{.8, .8, .8, .8, -1, .2},
{.8, .8, .8, .8, .8, -1}};
or i just set up the opponent likelihood from belows code?
private void setupOpp(){
//set up opponents
int x;
int y;
for (int i= 1; i < 5; i++){
picOpp[i] = new PictureBox();
picOpp[i].Size = new Size(25,25);
x = (int)((this.Width - picOpp[i].Width)/2);
y = (int)(pnlField.Height/i - 30);
picOpp[i].Location = new Point(x, y);
picOpp[i].Image = myPics.Images[0];
picOpp[i].SizeMode = PictureBoxSizeMode.StretchImage;
picOpp[i].Tag = i.ToString();
pnlField.Controls.Add(picOpp[i]);
} // end for loop
} // end setupOpp
or by set up from the badshot?so the opponent team have better when the rate is higher??
public void badShot(){
Random roller = new Random();
double toSucceed;
int playerNumber;
lblAnnounce.Text = "Opponent gets ball...";
//check for opponent goal
toSucceed = roller.NextDouble();
//change the following value to alter game difficulty
if (toSucceed < .05){
oppScore++;
updateScore();
MessageBox.Show("Opponent Scores!!");
setPlayer(HALFBACK);
} else {
playerNumber = roller.Next(5);
lblAnnounce.Text += "recovered by " + playerName[playerNumber];
setPlayer(playerNumber);
} // end opponent scores if
any idea??please help me...thanks
-- modified at 0:16 Monday 3rd October, 2005
|
|
|
|
|
Can anyone please explain to me how I could easily send the contents of a winform to the printer?
Example: I want to generate a searchable database for work orders.
I have it where I can add the record if no already there, i can update it, and search for it.
I wanted a way to print the record once it is found. Much like this
Logo Goes Here
Route Number [ ]
Meter Number [ ]
Problem [ ]
Sign ______________
Date ______________
A great tutorial or a reference to a book explaining this would be great. My C# skills are not as good as I would like them to be but none the less I'm willing to learn if someone is willing to teach. Thanks again.
Win32newb
"If I wrote a book like I code. It would be one page thick and contain only one word (DUH!)"
|
|
|
|
|
One of the top two articles when you search for 'print form' here on CodeProject are probably all you need.
|
|
|
|
|
1)To personalize the uninstall icon that is showed in install/uninstall programs, how i can do?
2)I need to make more "xp styled" the install wizard forms, for example the progress-bar is flat style, i want to see the xp one. How? Some button is much big, i want to reduce. how?
3)if i make right-click on the desktop shortcut for my application .exe and i go in property window, i can see the Destination target but the button "Find Destination" is disabled, why?
4)if i want to personalize the setup wizard form with a top bitmap own, i need to load a bitmap in application directory for example and set it for the form.
The problem is at the end of the installation the bitmap is created just in the directory of .exe. I don't want it! It work the same also for icon of shortcuts.
How can i avoid to installing also these files?
|
|
|
|
|
4) For files in your setup you can set the Exclude property to true. This way you can use them in the setup but they will not be copied to the application directory.
|
|
|
|
|
Is there anyway to pull data from microsoft money into a C# application? If anybody knows how or has any good resources for me, that would be greatly appreciated.
JGA
|
|
|
|
|
|
I don't know if I can connect to microsoft money using oledb, how would I find that out?
JGA
|
|
|
|
|
I want to do this in .net v2 beta 2 with c#, does anyone know how to do this?
IM PROUD TO BE A GMAIL;
|
|
|
|
|
What's wrong with Directory.CreateDirectory() ?
mav
|
|
|
|
|
THX
IM PROUD TO BE A GMAIL;
|
|
|
|
|
Example,
Is this what you meant???
System.IO.Directory.CreateDirectory(@"D:\NewFolder\NewSubFolder")
Regards,
Mahesh
|
|
|
|
|
Hi!
I need some help with how to save a bunch of strings into an ANSI-text file and not the standard UTF-8. The reason for this is that the application that uses this text file does not like UTF-8 when a special character is involved (like Swedish åäö etc). Does anyone have any good ideas or sample codes out there to save a file into ANSI instead of UTF-8?
|
|
|
|
|
Hi!
When you create a FileStream you can specify an encoding to use. There you can use Encoding.ASCII to get non-UTF8 text files.
mav
|
|
|
|
|
As usually... It was too easy. Tank you very much .
|
|
|
|
|
CultureInfo culture = new CultureInfo("el-GR");
int codePage = culture.TextInfo.ANSICodePage;
Encoding GreekEncoding = Encoding.GetEncoding(codePage);
then at this line :
new StreamWriter(destinationpath, false, GreekEncoding);
|
|
|
|
|
I try to get some data from a .mdb file, but it fails with a realy weird and long exception, here is my code:
public DataSet getTranslation(int language)
{
DataSet translations = new DataSet();
String connes = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Documents and Settings\\Johan\\My Documents\\languageDB1_00.mdb";
String sql = ("SELECT Translation, PhraseKey FROM Translation WHERE languageID = " + language + ";");
OleDbConnection conn = null;
conn = new OleDbConnection(connes);
//"SELECT Translation, PhraseKey FROM Translation WHERE languageID = " + language + ";";
try
{
OleDbCommand command = new OleDbCommand(sql, conn);
OleDbDataAdapter adapter = new OleDbDataAdapter(command);
conn.Open();
adapter.Fill(translations, "Translation");
return translations;
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.ToString());
return null;
}
finally
{
conn.Close();
}
}
The exeption message begins with:
IErrorInfo.GetDescription failed with E_FAIL (0x80004005)
please help...
john
|
|
|
|
|
Hello John,
The problem is because of the usage of the keyword "Translation" as in OLEDB.
If you change the SQL to
String sql = "(SELECT [Translation], PhraseKey FROM [Translation] " + <br />
"WHERE languageID = " + language + ")";
the snippet will work fine.
Regards
Mahesh
|
|
|
|
|
Hello folks,
i'm not a C# expert so i have a question to do.
I want to fetch the external ip of a machine whin is linked at a router.
All the HowTo i have seen didnt help me
If anyone can help I would be grateful.
Thanks
Enrico
|
|
|
|
|
I want to draw a triangle on the end of a line (vector).
I know how to do it brute force. Is there a better way?
Thanks a lot...
|
|
|
|