|
I have same type of problem, so pls provide a solution...
|
|
|
|
|
Hi,
Kindly let me know or give me examples link that how to add combobox into datagridview?
Thank in advance
(Riaz)
|
|
|
|
|
|
I have used the web browser control in my C# Windows Application. And i have written following code in that application for previewKeyDown event of webbrowser control.
But when user press the key M , Message box should be displayed once. But it is displayed twice.
Source code:
private void webBrowser1_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
{
if (e.KeyData== Keys.M)
{
MessageBox.Show("User has pressed key M", "Key press alert");
}
}
actually event of key press occurs once. But message box is displayed twice . Need help ?
Thanks in Advance.
|
|
|
|
|
it comes only once in my test app. see first, if :
this.webBrowser1.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.webBrowser1_PreviewKeyDown);
called twice...
|
|
|
|
|
First message box comes but when you click on Ok button same message box appears again on the screen. that event occurs again. how this happens ?
|
|
|
|
|
Have you accidentally added the event hook twice somewhere? That would be the most logical explanation.
|
|
|
|
|
hi all,
I want to add a custom plus minus control infront of every node in a treeview structure in c#. But i don't want to use DrawDefault property.Can anyone help me in doing this.
Thanks
|
|
|
|
|
is this the same question as clickety[^]
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi,
Ya this is the same question.But i have not got the answer to the question. i want to do it in c#.
Thanks
|
|
|
|
|
if u know plz let me know.
Suresh
|
|
|
|
|
Hi
Is it possible using GDI+/.Net Framework to draw text along a path. For example, I want to draw a bezier curve that looks like an "S" shape, and I want the text to render along the shape.
Thanks
|
|
|
|
|
I'm sure it is possible. You'll probably have to create a custom text control in order to do so.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi,
Can anyone tell me how to convert a .doc/.pdf file to an .swf file via C#?Do I need to know the file formats for every file type?How is this being done.Kindly suggest.
Thanks,
Joan.
|
|
|
|
|
|
Hi,
How can set focus to the next row in the DataGridView? (triggering a event like button_click)
|
|
|
|
|
|
Hi,
I'm trying to change the background colour of my desktop. Here's the code I'm using:
RegistryKey rkWallColor = Registry.CurrentUser.OpenSubKey("Control Panel\\Colors", true);
rkWallColor.SetValue("Background", "0 0 64");
rkWallColor.Close();
I'm sure that I'm doing it right, but the desktop colour wont change. I've checked the registry key and it has been changed. Am I accessing the wrong key?
I'm using windows xp.
Can anyone see what I'm doing wrong?
Thanks
|
|
|
|
|
Changing only the registry values will not change the background color.
Have a look at the API: SetSysColors.
It is present in user32.dll
If you want to change the wallpaper and get related information, have a look at SystemParametersInfo which is also present in user32.dll
regards
|
|
|
|
|
Thanks, after turning my computer on this morning the background colour has changed, so it seems as though it is working, just not picking up the changes until a reboot..
I thought I should be able to do it through the registry keys as with changing the wallpaper (Which I'm already doing)?
I'll have a look at SetSysColors and see where I get.
Thanks
|
|
|
|
|
okay, after looking into it, it seems that I need to use a combination of the api, and registry keys.
I've got it working wonderfully!
Thanks you again for the gentle nudge in the right direction
|
|
|
|
|
Glad to help
<modified>
by the way, my nickname's changed
regards
|
|
|
|
|
I want to know how and where to get:
digital certificate file (*.spc, *.pfx)
private key file (*.pvk)
for my .NET application?
and is it free?
|
|
|
|
|
You can create test certificates (pfx files) using a tool included in the .NET framework, or alternately inside Visual STudio (Project properties->signing->test certificate).
Test certificates are real certs, however. If you want those, they cost money and you can get that at places like verisign.com
|
|
|
|
|
I am trying to display a simple TaskDialog with marquee progress bar but i am getting this error:
Error 1 'whatwhen.frmMain.TaskDialogCallback(Microsoft.Samples.ActiveTaskDialog, Microsoft.Samples.TaskDialogNotificationArgs, object)': not all code paths return a value C:\Users\Jassim\Documents\Visual Studio 2008\Projects\whatwhen\whatwhen\main_form.cs 609 22 whatwhen
HERE IS MY CODE:
string update_string = null;
update_string = "some text here";
updateDialog.RightToLeftLayout = true;
updateDialog.WindowTitle = "title here";
updateDialog.MainInstruction = update_string;
updateDialog.CustomMainIcon = Properties.Resources.whatwhen;
List<TaskDialogButton> updateButtons = new List<TaskDialogButton>();
TaskDialogButton btnCancel = new TaskDialogButton();
btnCancel.ButtonId = 100;
btnCancel.ButtonText = "cancel";
updateButtons.Add(btnCancel);
updateDialog.Buttons = updateButtons.ToArray();
updateDialog.ShowMarqueeProgressBar = true;
updateDialog.Footer = "please wait...";
updateDialog.FooterIcon = TaskDialogIcon.Information;
updateDialog.Callback = new TaskDialogCallback(this.TaskDialogCallback);
int update_result = updateDialog.Show();
private bool TaskDialogCallback(ActiveTaskDialog updateDialog, TaskDialogNotificationArgs args, object callbackData)
{
if (args.Notification == TaskDialogNotification.Created)
{
updateDialog.SetProgressBarMarquee(true, 0);
return false;
}
}
|
|
|
|