|
Nice Answer to allow ones learning for a friday thanks
Every day, thousands of innocent plants are killed by vegetarians.
Help end the violence EAT BACON
|
|
|
|
|
Nice Question to improve ones learning for a friday thanks
Every day, thousands of innocent plants are killed by vegetarians.
Help end the violence EAT BACON
|
|
|
|
|
Rob Philpott wrote: I can do this is a 'streaming' approach which would be faster and not require as much memory.
Of course if that is a concern then caching the results would be far better than either choice.
|
|
|
|
|
I need to display data in gridview is Sharepoint Gridview is good control for that..
should i use it with Visual webpart or only webpart ?
|
|
|
|
|
|
I am talking about SPGridView
|
|
|
|
|
And what is your question?
|
|
|
|
|
How to have windows app c# in adobe flash player? Like this link
[^]
|
|
|
|
|
That's very interesting: I assume that's a simulation of a very complex .NET app; since, to my knowledge, you simply can't run a .NET App in Flash, or convert one to Flash.
But, the mind boggles: who would have the time to create such a simulation ?
I'd like to know how this was done, also !
“The best hope is that one of these days the Ground will get disgusted enough just to walk away ~ leaving people with nothing more to stand ON than what they have so bloody well stood FOR up to now.” Kenneth Patchen, Poet
|
|
|
|
|
What makes you think that this is a windows app written in C#? I see nothing in there that indicates it is any such thing.
|
|
|
|
|
But how to create such this
|
|
|
|
|
"Learn Flash".
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
What is it you want to create?
|
|
|
|
|
It's not a Windows app. It's all Flash.
/ravi
|
|
|
|
|
Hi im not sure if I can ask for help here, my appolagise if not I will remove if required to.
I am stuck however with a hangman style game I am building, Simply a word pulls from file at random and the output to the user is '*' symbols instead of the letters, the user can select to guess a letter from the keyboard etc... The program does cross ref the guess with the actual word and if the user guesses correctly it will replace the '*' with the correct letter, the issue is it will only do one loop so wont allow for continuation until the word is complete. I would appreciate any help with this so that the user keeps going until the word is completed. Many Thanks. Here is the code:
private void chckGss_Func(string wordToGuess)
{
StringBuilder showUser = new StringBuilder(fileWord.Length);
for (int i = 0; i < fileWord.Length; i++)
showUser.Append('*');
List<char> goodGuess = new List<char>();
List<char> badGuess = new List<char>();
int lives = 5;
bool win = false;
int charReveal = 0;
string inpt;
char guess;
while (!win && lives > 0)
{
inpt = tmpLttr.ToUpper();
guess = inpt[0];
if (goodGuess.Contains(guess))
{
btnCorrect.Visible = true;
lblCorrect.Visible = true;
continue;
}
else if (badGuess.Contains(guess))
{
btnWrong.Visible = true;
lblWrong.Visible = true;
continue;
}
if (wrd2GuessUpper.Contains(guess))
{
goodGuess.Add(guess);
for (int i = 0; i < fileWord.Length; i++)
{
if (wrd2GuessUpper[i] == guess)
{
showUser[i] = fileWord[i];
charReveal++;
}
}
if (charReveal == fileWord.Length)
win = true;
}
else
{
badGuess.Add(guess);
lives--;
return;
}
txtWrdToGuess.AppendText(showUser.ToString());
}
if (win)
MessageBox.Show("You win!");
else
MessageBox.Show("You lose, the word was " + fileWord);
}
|
|
|
|
|
I think the problem is that return statement near the bottom. Replace it with a continue statement and I think it will work.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Iv already tried that, i heard last night that apparently it may well be the while statement thats causing the issue so ill have a look at that today
|
|
|
|
|
Hello,
I have a DLL that is a linked reference in my C# project. I would like to test for its existance before opening my form using something like "File.Exists()". I cannot find a place in my program to put the file test before an exception is thrown when the DLL is missing.
The following code works if the DLL resides in the directory with the EXE. If the DLL is missing an exception is thrown.
static void Main()
{
string message_out = (File.Exists(USBClassLibrary.dll) ? "DLL found." : "DLL missing");
MessageBox.Show(message_out);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
I thought that referenced DLLs were loaded on demand so I am puzzled by this error.
Thanks,
SMW
|
|
|
|
|
Stephen Wickland wrote: I thought that referenced DLLs were loaded on demand so I am puzzled by this
error. They are, but it's the environment that does it. If you add a reference to the project, then it has to be there in order to run.
Two alternatives; test from another program, and launch either an exe with or one without a reference. The other alternative is to load the assembly yourself, and instantiate the types yourself. Then you'll also have a statement in your code that loads the DLL, and then you can skip loading.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Thanks BP,
Not the answer I was hoping for but I now understand the situation and can move ahead.
SMW
|
|
|
|
|
You can probably have another program to an existence test before running the application.
|
|
|
|
|
Hi All,
I develop a windows form to read excel file using oledbconnection, my problem is when any column header in excel file contains dot (.), such as customer.Name I get the following error:
" Invalid bracketing of [Customer.Name] ".
Please help me to solve this problem and how to remove . from the columns.
Thanks for your effort
|
|
|
|
|
Show us the relevant code snippet!
|
|
|
|
|
HI,
This is the code:
Hi,
this is the code:
string conString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=filepath;Extended Properties=Excel 12.0 XML;HDR=Yes;IMEX=1;MaxScanRows=0;";
OleDbConnection con=new OleDbConnection(conString);
con.open();
OleDbCommand command = new OleDbCommand("select * from [sheet1$]", con);
OleDbDataReader reader = command.ExecuteReader();
DataTable dt=new DataTable();
dt.load(reader);
con.close();
Thanks
|
|
|
|
|
I just tried that and the dot got changed to a hash (#) character.
|
|
|
|