|
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;
}
}
|
|
|
|
|
Read the error:
Error 1 'whatwhen.frmMain.TaskDialogCallback(Microsoft.Samples.ActiveTaskDialog, Microsoft.Samples.TaskDialogNotificationArgs, object)': not all code paths return a value
Since your method expects a bool to be returned, at the moment, this only happens if the notification is created. So you need to either add an else or a simple return .
eg:
private bool TaskDialogCallback(ActiveTaskDialog updateDialog, TaskDialogNotificationArgs args, object callbackData)
{
if (args.Notification == TaskDialogNotification.Created)
{
updateDialog.SetProgressBarMarquee(true, 0);
return false;
}
return true;
}
Regards,
Gareth.
(FKA gareth111)
|
|
|
|
|
Hi, I can't get the original HTML source in
((HTMLDocument)webBrowser1.Document).documentElement.innerHTML
as the HTML code in viewsource. The code comes without quotes and all of the tag names comes as upper case. Is there any way to get original source in axWebBrowser as in System.Windows.Froms.WebBrowser.DocumentText ?
baris
|
|
|
|
|
I think you need to post this in the ASP.NET forum.
Regards,
Gareth.
(FKA gareth111)
|
|
|
|
|
The problem is not about ASP.NET, it is encountered in any type of websites (php, asp, aspx etc.) But, I will post it to ASP.NET part too.
baris
|
|
|
|
|
I have 2 user controls but I want to randomly add them to a form in a scrollable tile manner.
Each control is referenced by a name, so I can erase a specific control. How do I achieve this can someone give me heads up on how to achieve this..
I cant find anything to get me going.
thanks
ideasman
|
|
|
|
|
Keep a Dictionary<string,control> to hold references to them?
What's giving you trouble?
|
|
|
|