desktop-application

Open form with Form Name in winform appliaction

霸气de小男生 提交于 2019-11-28 05:13:11
问题 I want to ask what should i do to open form with the help or class name in winform c#? I have three different forms UserManagement GroupsManagement LocationManagement I get permission from database for these three forms in menu click i fill tag Property with the name of form like this tsmMain.Tag = item.PermissionName tsmMain.Click += new EventHandler(tsmMain_Click); what i want to do is to open form dynamically in button click and to remove these if condition? Can i do this with reflection

Qt - top level widget with keyboard and mouse event transparency?

一个人想着一个人 提交于 2019-11-28 04:52:49
I want an app's main window to ignore mouse and keyboard events, passing them to applications underneath it in the window manager Z-order. I see how to make child widgets ignore keyboard or mouse events, but how about the main window? I'm trying to make a desktop widget that always sits just over the background and is totally invisible to keyboard and mouse events. (Pass through) Qt::X11BypassWindowManagerHint gets me keyboard pass through (although sadly X11 specific, but fine for now), so how about mouse events? Is there a OS-agnostic way to be transparent to keyboard events? EDIT: The key

Can Maven collect all the dependent JARs for a project to help with application deployment?

邮差的信 提交于 2019-11-28 03:15:20
I'm just starting to use Maven , (evaluating it, really) and I need to be able to quickly generate a JAR file for my application and a directory with all the dependencies (for example, lib) so that I can deploy those two to be run in a stand-alone manner. Generating the JAR file with the proper manifest is easy, but I do not know how to get Maven to copy the dependencies for the current project into a lib directory that I can deploy. Since this is for a stand-alone Java applications, I am not interested in deploying to a Maven repository, that is also fairly trivial, or at least easily

Self-destructing application

僤鯓⒐⒋嵵緔 提交于 2019-11-28 00:45:06
Along the lines of "This tape will self-destruct in five seconds. Good luck, Jim" ... Would it be possible for an application to delete itself (or it's executable wrapper form) once a preset time of use or other condition has been reached? Alternatively, what other approaches could be used to make the application useless? The aim here is to have a beta expire, inviting users to get a more up-to-date version. Stephen C It is possible. To get around the lock on the JAR file, your application may need to spawn a background process that waits until the JVM has exited before deleting stuff. However

What is your session management strategy for NHibernate in desktop applications?

三世轮回 提交于 2019-11-27 23:44:47
问题 I find it much more difficult to manage your session in a desktop application, because you cannot take advantage of such a clear bondary like HttpContext. So how do you manage your session lifetime to take advantage of lazy loading but without having one session open for the entire application? 回答1: I think it boils down to the design of your objects. Because lazy-loading can be enforced in the per-object level, you can take advantage of that fact when you think about session management. For

How to remove window box from any java gui

落爺英雄遲暮 提交于 2019-11-27 23:22:39
How do i remove the window box from any java program. Because i want to make it look border-less. I know any jar files running on jre automatically gets a window like this. So i want to know if there is workaround about this. Thanks in advance here is a photo what i want to do exactly See Frame#setUndecorated You could also use a JWindow which is undecorated by default. Check this and this for example uses Updated If you remove the border, you become responsible for moving and resizing of the window... This "basic" example demonstrates how to move a JWindow with the mouse. This makes a "drag

How can I launch a URL in the users default browser from my application?

送分小仙女□ 提交于 2019-11-27 22:42:10
How can I have a button in my desktop application that causes the user's default browser to launch and display a URL supplied by the application's logic. Process.Start("http://www.google.com"); neminem Process.Start([your url]) is indeed the answer, in all but extremely niche cases. For completeness, however, I will mention that we ran into such a niche case a while back: if you're trying to open a "file:\" url (in our case, to show the local installed copy of our webhelp), in launching from the shell, the parameters to the url were thrown out. Our rather hackish solution, which I don't

Windows 8 Desktop App: Open tabtip.exe to secondary keyboard (for numeric textbox)

别说谁变了你拦得住时间么 提交于 2019-11-27 20:52:33
We're working on a desktop WPF app that runs on Windows 7 tablets and are adding some Surface Pro units with windows 8 to the mix. We noticed immediately that the little keyboard icon no longer displays when a TextBox receives focus. We solved it by running "tabtip.exe" on the MouseDown event for all TextBoxes. We have some numeric textboxes though (quantity for an item on an order), and want to open the on-screen keyboard for numeric entry, but it opens with qwerty keys by default. I have been searching extensively for any command-line arguments I can pass to tabtip.exe to change its input

How to make an auto-complete textbox in a winforms desktop application

北城以北 提交于 2019-11-27 20:44:01
I have a list of words. The list contains about 100-200 text strings (it's names of metro stations actually). I want to make an auto-complete textbox. For an example, user press 'N' letter, then an (ending of) appropriate option appear (only one option). The ending must be selected. How to do that? PS1: I guess, there is a textbox control with a Property something like this: List<string> AppropriateOptions{/* ... */} PS2: sorry for my english. If you didn't understand -> ask me and I will try to explain! Just in case @leniel's link goes down, here's some code that does the trick:

What language or technology was used to develop the Spotify desktop application?

守給你的承諾、 提交于 2019-11-27 16:50:22
Does anybody know which language or technology was used to develop the Spotify desktop application? It's stable, good-looking and lightweight. From here: http://www.quora.com/What-is-the-technology-behind-the-Spotify-desktop-app Dated: 2014-09-09 Andreas Blixt, 5-year Spotify employee: The core of all our clients is C++, but that core has since Rasmus's post gotten condensed, with functionality split out into modules. As Spotify becomes available on more and more platforms as well as getting a richer feature set, we need to ensure that "core" doesn't become "a little bit of everything". This