|
Everything up the MessageBox.Show() is being excecuted - and when the database connection is in place the messagebox runs great - the only time I get the exception ( it is fired inside the Config. Library ) is when the connection to the database is turned off - so my first real question is - why would the loss of a database connection cause a messagebox.show() the have a run time error.
Still Confused
Michele
Mercer Engineering Research Center
mstusak@merc.mercer.edu
|
|
|
|
|
Hey peeps,
I have been searching everywhere for a calender control, similar to Outlook's, so that I can add calender facilities to our company help desk application. ( SLA, Project mettings etc ).
Has anyone seen any custom controls laying about? I've got loads of third party comp suites, but they are very complex.
Any idea's?
TIA
Gav
|
|
|
|
|
|
I need C# code for Moderating Posting Messages.
Yesterday I posted wrong Subject. It should have been Moderating Posting Messages and not e-mail Moderator.
I would appreciate it very much if anyone can help
or direct me to correct place.
Thanks
Asare
|
|
|
|
|
posting messages to what? A forum? A moderated newsgroup? an email list server?
|
|
|
|
|
I’m creating Group Web site where by other can join any particular Group of interest or create a new Group for others to join.
Any one who creates a Group automatically becomes Moderator for that Group.
When someone posts Message the Moderator can approve or reject the posting or the email.
All need is the code in C# to approve or reject the posting message or e-mail.
|
|
|
|
|
Details! Details! Details! Without the details, it's impossible to give you any useful information.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I’m creating Group Web site where by other can join any particular Group of interest or create a new Group for others to join.
Any one who creates a Group automatically becomes Moderator for that Group.
When someone posts Message the Moderator can approve or reject the posting or the email.
All need is the code in C# to approve or reject the posting message or e-mail.
|
|
|
|
|
You make it sound like there is a single, generic piece of code that will work for all designs of a forum implementation. Sorry! There isn't. This piece of code will be SO interdependant on your design and implementation, it's up to you to include this functionality. No-one can tell you what the code is because they know absolutely NOTHING about how your implementing your forums database.
The basic idea is that a user posts a message to a forum, but that message isn't visible to anyone until the Moderator approves it for public view. You'll have to implement some kind of flagging system to tag messages as viewable or not and some kind of notification system to tell the Moderator that new posts are available to be reviewed.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hey
lets say I have these variables:
string Word1;
string Word2;
string Word3;
string Word4;
string Word5;
and I want to assign to them all the same string "Hi";
is there a way to do that without putting them into array?
I'm talking about doing it with for loop or somthing like that,
for example (that I know that doesn't work):
for(int i = 1 ; i < 6 ; i++)
{
Word+i = "Hi";
}
of course this does not work, but is there a way to do such a thing in a pretty simple way without arrays?
|
|
|
|
|
maybe like this?
string word1, word2, word3, word4 = "Hi";
|
|
|
|
|
no, I meant by writing the for loop is that I don't know the number
of variables at first. it varies...
I want to declare those strings without knowing the number of strings in the first place, and instead of using array, just declaring multiple variables.
|
|
|
|
|
The only way to do this is to use the array. What your trying to do NEVER has good reason to be done. There's always a FAR more efficient way to accomplish the same job.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
just asked out of curiosity...
|
|
|
|
|
I think you need Reflection for that...
Pompiedompiedom...
"..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.."
-- Mark McCormick
|
|
|
|
|
|
string word1 = "Hi", word2 = word1, word3 = word1, word4 = word1, word5 = word1;
or
string word1, word2, word3, word4, word5;
word1 = word2 = word3 = word4 = word5 = "Hi";
or
string word1, word2, word3, word4, word5 = "Hi";
word1 = word2 = word3 = word4 = word5;
xacc-ide 0.0.99-preview7 now with C#, C, C++, IL, XML, Nemerle, IronPython, Perl, Caml, SML, Ruby, Flex, Yacc, Java, Javascript, Lua, Prolog and Boo highlighting support!
|
|
|
|
|
How do I trap the ctrlZ, ctrlc and ctrlv on a rich text box from executing when pressed. Please help
Nana
|
|
|
|
|
I believe the following should work, derive from RichTextBox.
protected override bool IsInputChar(char charCode)
{
switch ((int) charCode)
{
case 1:
case 3:
case 6:
case 22:
case 24:
case 26:
case 27:
case '\t':
case 8:
case 10:
case 13:
return false;
}
}
xacc-ide 0.0.99-preview7 now with C#, C, C++, IL, XML, Nemerle, IronPython, Perl, Caml, SML, Ruby, Flex, Yacc, Java, Javascript, Lua, Prolog and Boo highlighting support!
|
|
|
|
|
it not work.
thanks you for oyur help
Nana
|
|
|
|
|
Hi,
i am developing a custom control in C#.
I am coding the design time side of the control, but i have a problem.
I added some verbs to the control. Everything works fine in design time, but in runtime the code does not persist.
I add components with
mDesignerHost.CreateComponent(typeof(myComponent), name) as myComponent
where mDesignerHost is the IDesignerHost for the designer.
Only the creation of the component persists in runtime, but the rest of the code does not.
What's wrong?
|
|
|
|
|
What are the speed differences (if any) between using Textboxes,Radiolists, Labels etc to build a form as opposed to using a variety of custom controls to build the same form? (One of the custom controls would be, for instance, a label and textbox).
|
|
|
|
|
That depends on the quality of code in the custom controls. But, all thing being equal, there isn't any difference at all since both sets of controls will ultimately derive from the same base class, Control.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi All.
can any one help me, How to filter/sort records in a datagrid according to the values which I type in a text box,
my problem is i have a dataset populated and am setting it as data source to my grid.my requirement is i need to sort the grid at runtime as and when i type some text in a textbox (relates to a col in the grid), associated in the same form, and then after filtering i should be able to update the colums in the grid.
select query is to be performed once only, and i need to work with the availabe dataset to filter/sort records
|
|
|
|
|
Create a DataView from your DataTable and set that as the DataSource for your DataGrid. Then change the DataView.Sort based on the text in your textbox.
|
|
|
|