|
Hello there. I am trying to implement tree node mouse double click event along with context menu strip. Problem is: I have to click three times, in order to get the functionality of node double click. Skeleton of the program is as follows
private void tree_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
{
}
private void tree_MouseDown(object sender, MouseEventArgs e)
{
if (e.Button == System.Windows.Forms.MouseButtons.Left)
{
}
}
What should be done here.... so that I don't have to click three times for the NodeMouseDoubleClick event. Thanks for any input.
modified 20-Mar-15 6:19am.
|
|
|
|
|
Double-clicking on a node means "expand" or "collapse". It then calls those events[^].
You'd have to work against the system to prevent that default-working, as explained on SO here[^].
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Hi,
I am developing an outlook ad-in application.
I am able to build the solution but not able to generate .VSTO and .manifest file.
So i am not able to register the addin.
I am using following development environemnt
VS2010 sp1
outlook 32 bit
windows 2008 server 64 bit OS
Can you please let me know where I need to change or some settings need to be changed?
Thanks,
SMA
|
|
|
|
|
What does "cannot build the solution" mean? Does it show a compiler error? What article did you use to build your prototype?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
My .Net application has registered with a particular table using SQLDependency for change events . Once the table content is changed, .Net application should be notified.
This happens correctly except on Hyper V machines.
Also, for this issue to happen, "Use sharing Wizard" option should be checked in "View" tab of "Organize\Folder Options" in Windows Explorer
Further Diagnostics:
I checked the broker Service and is enabled.
Also, the sys.transmission_queue table which contains any error message in case messages are not delivered is empty.
Any suggestion in this regard would be appreciated.
Thanks in advance.
Regards,
Rakesh Kumar Sah
|
|
|
|
|
Hello,
I'm running an exe application in my C# form app. I need to get the data from the exe application and save it on a database in my c# app. How is it possible? Please help.
|
|
|
|
|
That isn't a question we can answer: it depends on the application that you are running as the EXE file.
Since we have no idea what that is, or what data it deals with, how it stores it, or anything else about it we can't even begin to help you.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
It's a university project. The exe application is a calender planner. Whenever a new task is added to a specified date, it is updated in the database where sorting is done. If ever the date and time is already booked, a warning message is given.
|
|
|
|
|
That doesn't really help.
It's like calling the garage and asking then to fix your car, and telling them nothing except "it's a Ford".
Think about it: what do you know about the app, in detail. Remember, we can't see you your screen, or access your HDD... or read your mind!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Someone just pointed out about the security risks. I thought it would be wise to use the exe app. I'll just try to write my own calender planner and get data directly then. Thank you
|
|
|
|
|
Well, you're not really going to get the data out of the running application itself. It'd be far easier to get it from whatever storage the application is saving it's data to.
|
|
|
|
|
Member 11336027 wrote: I need to get the data from the exe application and save it on a database in my
c# app. What university?
Saving that data should be done from the original application, not an external one. Doing it from an external app would also introduce security-risks. So, simply change the source-code of the original application.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I thought it will be wise to use an exe app, didn't think about the security risks. I'll try to write my own calendar planner and get data directly.
|
|
|
|
|
Try to access exe application database directly with your application if any update done in third party application database it should update your application that's it
|
|
|
|
|
How to Remove Default Column indicating cursor position in Datagridview in C#.
I'm getting data in datatable from SQL Server
|
|
|
|
|
If you mean the column on the LHS, then just set the RowHeadersVisible property[^] to false
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
With all the open web libraries out there... we find that we can create some very nice MVC projects (quickly) using them! WPF is my personal favorite Desktop framework but sometimes I find myself wishing I could use some of the open source web stuff in the WPF projects.
Conceptually if a WPF project could easily bypass IIS but provide similar web services (gets and posts) then we know that MVC would be happy as it doesn't care who does the service. Assume now that we could use the controller model of MVC inside of a WPF project, host a browser and use ViewModels just like we do today in WPF. The project template would then look very similar to the MVC template but would be for desktop applications. We could easily combine WPF controls with the WebBrowser or many instances of the web browser (one for each control) and use the Controller model on them for the post backs.
The first hurdle would be bypassing IIS and containing the equivalent HTTP support in a WPF project.... The second would be how to implement the controller base class as we know from MVC that it is a pretty intense component. Of course they always say start simple right?
Thoughts? Or am I just going crazy?
|
|
|
|
|
Using a webbrowser to create desktop apps sounds a bit like over-architecting.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I read that and my head exploded due to the over-complicating of things.
Considering the limitations of HTML and the Web Browser control, the question that comes to mind is "why would you want to handicap yourself like that?"
|
|
|
|
|
No question that the concept is mind-blowing... however consider this:
WPF never integrated (fully) the charting control, it's only available via some outdated toolkit. If you search for open charting tools there are zillions of them in browser world. But who wants to force a desktop application to also have a WebSite that hosts those charts?
WPF is mostly in what I feel is a Sunset mode, there appears to be no further development happening from Microsoft.
WPF has overcomplicated things too, just look at the DataGrid and compart that to JQUERY's DataTable, there's no comparison JQUERY is agile, WPF DataGrid is not.
The web side is exploding with new frameworks that were inspired from the MVVM pattern. Just look into Angular.
If there were a Hybrid WPF solution implementing MVC where the web site is hosted within the application, then we have the best of both worlds with everything being bindable to a single ViewModel on what MVC calls the "Server Side".
We as WPF people don't loose anything but we gain everything "Web".
This idea is not that different than those saying that there is a coming convergance of C# and Javascript!
|
|
|
|
|
Mr. Javaman wrote: This idea is not that different than those saying that there is a coming convergance of C# and Javascript! Introduce them to the thing called "WinForms", or "Rich GUI". It would be a step back to send all over TCP/IP and use scripting, without adding any value.
It's a change what you propose, yes, but not an improvement.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
You may have forgotten that Rich GUI was one of the tenants of Silverlight, of course WPF being the superior cousin in many respects, never had RIA! WPF is not Rich GUI, it has too many gaps.
|
|
|
|
|
Oh but nothing has to fly over the intranet for these things. Look at Node or Express, host your own WebServer in your solution. None of this requires IIS.
|
|
|
|
|
Mr. Javaman wrote: Oh but nothing has to fly over the intranet for these things. Aw, goody.
You're still running in a limited environment, where the known and documented path would be the natural choice.
Mr. Javaman wrote: host your own WebServer in your solution. And this webserver would work without TCP/IP? 'Cause that is what I was referring to, wasn't it?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
As if Pipes, and IPC were any better? c'mon give me a break bastard programmer from hell.
|
|
|
|