|
Hello,
I'm just curious, so please don't think I'm rude.
But have you voted me down couse I haven't answered you second question?
If yes!
I didn't take time, cause I have work to do and I thought the answere from
Vasudevan Deepak Kumar [^] should help you enough!
If not, sorry for asking!
All the best,
Martin
|
|
|
|
|
I hadn't rated your answer down, i have given 5/5, you can check that there are two votes have been given to your message, i have given 5/5, and there is some one else who has rated that down, even i have replied that message with thanks.
I hope it is clear now
sorry for my english if it is not correct!
Best Regards,
Mushq
|
|
|
|
|
Mushq wrote: I hadn't rated your answer down, i have given 5/5, you can check that there are two votes have been given to your message, i have given 5/5, and there is some one else who has rated that down, even i have replied that message with thanks.
I was assuming this!
Again, I'm really sorry for asking but I'm allways a little confused when I get downvoted with no explination!
Thanks for your time
All the best,
Martin
|
|
|
|
|
|
hi, can anybody give me an idea as to what is the sequence of events carried out to build and execute .dtsx packages in SSIS. Coz i want to be able to call the same methods in the same sequence from my C#.NET ETL application.Please help
|
|
|
|
|
Dear I am Using This Code Please Help Me if U Know ?
private void CycleBGColor(Object stateInfo)
{
bool flag = true;
while (flag)
{
dataCell.Style.BackColor = Color.Red;
Thread.Sleep(500);
dataCell.Style.BackColor = Color.Pink;
Thread.Sleep(500);
}
}
private void dataGridView1_CellValueChanged_1(object sender, DataGridViewCellEventArgs e)
{
try
{
row = dataGridView1.Rows[e.RowIndex];
dataCell = row.Cells[e.ColumnIndex];
ThreadPool.QueueUserWorkItem(new WaitCallback(CycleBGColor));
}
catch (Exception er)
{
return;
}
}
Girish Sharma
|
|
|
|
|
I tried to create a SetColor command and a ColorPicker which uses it.
There is one effect I cannot reproduce, it is tracking the CommandSource and wether it's valid.
By that I mean if I create a MenuItem like that:
<MenuItem
Header="Blue"
Command="{x:Static local:MyCommands.SetColor}"
CommandParameter="{x:Static Colors.Blue}" />
It enables/disables depending on wether the currently focused element respond to the SetColor command.
But my ColorPicker never get any CanExecute or whatever event call, therefore I cannot update it appropriately (i.e. enable/disable) when the focused element change.
I implemented ICommandSource, used a RoutedEvent, I never get any relevant info....
Any idea what I could have missed?!?
|
|
|
|
|
found it!
it's quite tricky, I remember read about it in a blog 6 month ago but it's nowhere in the documentation!!!
(Thanks Reflector)
RoutedCommand.CanExecuteChanged strore the event handlers as WeakReference.
Therefore you have to hold a reference to the handlers your self if you want your event handler to be called....
|
|
|
|
|
i want to show "welcome " as red in the textbox ServerTB & change it's font size to 14
ServerTB.Text += "Welcome " ;
can anyone help;
thanks so much
|
|
|
|
|
Have you heard about CSS?
Regards,
Satips.
|
|
|
|
|
|
CSS[^]
Regards,
Satips.
|
|
|
|
|
What makes you sure he's writing a web app ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: i want to show "welcome " as red in the textbox ServerTB & change it's font size to 14
coz he is saying ServerTB.
|
|
|
|
|
I'd be more inclined to think the textbox is for the name of a server, than that every control he runs on the server side is named serverTB or serverLbl or serverDDL
It's certainly worth asking, before making oblique references to CSS
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
u can use this code to set the text color but u cannot set the font size as it is read only and u have to set it at the design time itself:
<br />
textBox1.ForeColor = Color.Red;<br />
textBox1.Text = "Welcome";<br />
even if u try assigning size to the Font.Size property, the code wont complile.
|
|
|
|
|
thanks very much gladiatron & satips
|
|
|
|
|
Hi!
I'm trying to load and run a non .net application in memory by loading it as an embedded resource using Assembly.Load() and then invoking it. It works for .net applications but not non .net ones. I've tried.
Could anyone please guide me in this area?
Thanks!
"This is Ripley, last survivor of the Nostromo, signing off."
|
|
|
|
|
Process.Start is the way to do that. The assembly stuff works for .NET stuff only.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello, How can I access the Application tab in the task
manager, I’m not talking about the process' name because an App Can have associated a
process with different name, I need to know that because sometimes happens that when you
exit an app. The process still remains in the process tab, so if it happens I
can ask for the name of the App and kill the process.
thank you in advance!!!
Jose Guzman
|
|
|
|
|
You can't. Your best bet is to fix your app so that it closes properly. Your app can close it's own process, if it does this, it's not running, so how can it close itself again, and why would it use an external method to look up it's own process ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thank you for your answer, here I’m going to explain you what my problem is about:
My Application runs several installers (the installers are for example mysql, odbcConnector) and each one waits for the previous installer to finish to go on to the next one, they all request the windows installer(msiexec.exe) and that’s my condition for waiting(process.WaitForExit()). In a normal situation (context) when I finish the installation or cancel an installer, it closes the process msiexec.exe however very often happens that it doesn´t close the process msieexec.exe that´s why my Application doesn´t continue to the next installer. Perhaps you´re wondering why I don’t use the waitforexit directly for the Installer and that´s because it doesn´t wait.
Thank you very much for your help.
Jose Guzmán.
|
|
|
|
|
Hello it´s me again, I just realized that when a Installer is runing there is two windows installer instances, the first one is Current user instance and the second System´s, so I´m gonna ask for the current´s.
Thank you
Jose Guzmán
|
|
|
|
|
I have an application it is tabbed based and holds a texteditor in each tab (The ICSharpCode TextEditorControl). I can open as many tabs as I want but when I switch bewteen 2 or three tabs I get this error.
I'm am getting "Object reference not set to an instance of an object" result back. Problay somthing small I am missing somewhere, but I can't see where.
Below is the code for when a tab switches.
void TabControl1SelectedIndexChanged(object sender, EventArgs e)<br />
{<br />
if(tabControl1.TabPages.Count > 0 && !tabControl1.SelectedTab.Disposing) {<br />
openFile = tabControl1.SelectedTab.ToolTipText;<br />
<br />
if(lengthSet == false) {<br />
if(oldLength != tabControl1.SelectedTab.Controls["textEditorControl1"].Text.Length)<br />
oldLength = tabControl1.SelectedTab.Controls["textEditorControl1"].Text.Length;<br />
<br />
if((bool)tabControl1.SelectedTab.Tag == true) {<br />
saveToolStripMenuItem.Enabled = false;<br />
toolStripButton3.Enabled = false;<br />
}<br />
else {<br />
saveToolStripMenuItem.Enabled = true;<br />
toolStripButton3.Enabled = true;<br />
}<br />
}<br />
}<br />
lengthSet = false;<br />
}
The Line
if((bool)tabControl.SelectedTab.Tag == true)
returns the error
If I add
<br />
TextEditorControl editor = (TextEditorControl)tabControl1.SelectedTab.Controls["textEditorControl1"];<br />
and replace the line with the error with
if(editor.IsReadOnly)
It still returns the same thing.
|
|
|
|
|
Any chance that the SelectedTab is null when this exception is thrown? Check it with the debugger.
|
|
|
|