|
Is there a specific reason for installation without wizard? AFAIK, you can't control it.
|
|
|
|
|
Try launching the dotnetfx.exe with the /Q command line switch:
dotnetfx /q
|
|
|
|
|
Dave Kreskowiak wrote: dotnetfx /q
WOW! New information to me. Thanks
|
|
|
|
|
Make the wizard leave the room before you install it.
(I love the easy questions like this one.)
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Dear Sirs:
I have a C# application with a ToolStrip control and a RichTextBox control.
Three of the buttons on the toolStrip are for formatting the text in the RichTextBox, i.e., Bold, Italic, and Underlined. I have the CheckOnClick property set to true for these 3-buttons. My code successfully sets the selected text to any\all of the above formatting.
However, the button's CheckState remains "Pressed" or clicked, unless I physically unclick it. What I want to do is emulate what occurs in a WordPad document, where by both scrolling over formatted text, or clicking into formatted text causes the Bold button, Italic button, or Underline button(s) to appear depressed or clicked and conversely, to not appear depressed or clicked when the user clicks outside of the formatted text or scrolls past it.
Does anyone know how to accomplish this in C# and also what event(s) to place this code in, so that this happens smoothly for the end-user?
Thank you in advance for your answer
Richard
|
|
|
|
|
private void richEdit_SelectionChanged(object sender, EventArgs e)
{
if (richEdit.SelectionFont != null)
{
ButtonBold.Checked = richEdit.SelectionFont.Bold;
ButtonItalic.Checked = richEdit.SelectionFont.Italic;
ButtonUnderline.Checked = richEdit.SelectionFont.Underline;
}
}
Enjoy
I are troll
|
|
|
|
|
Hello Eddy:
Thanks a lot for your reply. The code gives me exactly what I was looking for and works great.
I didn't know how to accomplish this but was fairly certain it could be done. Also, I wasn't sure which event to call it in.
Your submission is very much appreciated.
Thanks again.
Richard
|
|
|
|
|
I have followed another tutorial on adding checkboxes to datagrids and have gotten it to show up. The problem is that I cannot get the checkbox column to bind to my dataset column. I alway see gray checkboxes when I run. All of the other columns are binding correctly. Anyone know what I am doing wrong?
Here is the code
DataGridTableStyle tableStyle = new DataGridTableStyle();
tableStyle.MappingName = "Invoice";
DataGridColumnStyle DateColumn = new DataGridTextBoxColumn();
DateColumn.MappingName = "Date";
DateColumn.HeaderText = "Date";
DateColumn.Width = 200;
tableStyle.GridColumnStyles.Add(DateColumn);
DataGridColumnStyle InvoiceNumberColumn = new DataGridTextBoxColumn();
InvoiceNumberColumn.MappingName = "InvoiceNumber";
InvoiceNumberColumn.HeaderText = "Invoice Number";
InvoiceNumberColumn.Width = 200;
tableStyle.GridColumnStyles.Add(InvoiceNumberColumn);
DataGridColumnStyle RackNumberColumn = new DataGridTextBoxColumn();
RackNumberColumn.MappingName = "RackNumber";
RackNumberColumn.HeaderText = "Rack Number";
RackNumberColumn.Width = 100;
tableStyle.GridColumnStyles.Add(RackNumberColumn);
DataGridColumnStyle PaidColumn = new DataGridBoolColumn();
PaidColumn.MappingName = "Paid";
PaidColumn.HeaderText = "Paid";
((DataGridBoolColumn)PaidColumn).AllowNull = false;
PaidColumn.Width = 100;
tableStyle.GridColumnStyles.Add(PaidColumn);
DataGridColumnStyle PickedUpColumn = new DataGridBoolColumn();
PickedUpColumn.MappingName = "PickedUp";
PickedUpColumn.HeaderText = "Picked Up";
((DataGridBoolColumn)PickedUpColumn).AllowNull = false;
PickedUpColumn.Width = 100;
tableStyle.GridColumnStyles.Add(PickedUpColumn);
myDataGrid.TableStyles.Add(tableStyle);
[IMG]http://i40.tinypic.com/34fo65j.jpg[/IMG]
Here is a snapshot of my APP. The datagrid on the lower portion shows the unaltered dataset, whereas the top datagrid is the one I am using the datagridstyle for
|
|
|
|
|
Also, I am getting:
'System.Windows.Forms.DataGridColumnStyle' does not contain a definition for 'TrueValue'
'System.Windows.Forms.DataGridColumnStyle' does not contain a definition for 'FalseValue'
Using dotnet 1.1. Anyone know how to solve this?
|
|
|
|
|
figured it out, i was not using a bool to bring in the database, rather a string
|
|
|
|
|
how i can search for all the running process
and close it
|
|
|
|
|
And afterwards the operating system will still do something how?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
You already asked it 23 hours ago, stop it.
modified 12-Sep-18 21:01pm.
|
|
|
|
|
You can't do this either. Since restarting those processes later will affect how the system works. You can't shut them down and then restart them and expect the system to behave exactly as you did before the shutdown.
|
|
|
|
|
how can hide my exe from the task manager
|
|
|
|
|
Maybe try Google[^]
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I run Google, sir, but still task manager shows my appz (don't show Google...), plz plz help (urgent).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Don't just "run" Google, but use it as a tool to get a list of examples.
--edit--
Didn't read the sender on the post, assumed the answer came from TS <grin>
My bad!
I are troll
|
|
|
|
|
|
There's a utility that comes with Windows called "HideMyExe.exe".
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi all,
i tried to play two sounds in the same time by using this code
System.Media.SoundPlayer sw = new System.Media.SoundPlayer("-------.wav");
sw.PlayLooping();
System.Media.SoundPlayer s = new System.Media.SoundPlayer("----------.wav");
s.PlayLopping();
but the first sound stoped and the second was playing
can any body help me to play two sounds in the same time ?
thx 4 all
|
|
|
|
|
The SoundPlayer.Play method should do it.
Kristian Sixhoej
|
|
|
|
|
sorry ,
but it makes the second sound only play
|
|
|
|
|
It seems like SoundPlayer can't do this.
DirectX should be able to do the job, but I'm not sure, and I don't know anything about using DirectX and C# together.
Kristian Sixhoej
|
|
|
|
|
There are articles, here at CP about managed DirectX [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|