User Profile
Collapse
-
Disabling Close window option in windows 7
I have an application developed in VB.net with 3.5 framework. I have disabled close (X) button on the main form of the application while doing some processing. I have achieve disabling by "Overriding ReadOnly Property CreateParams()" of the form. This is working fine as both control button on form and close option on right click in the taskbar shows disabled. This fulfill my needs on the Windows XP OS but not on Windows 7 OS. As in Windows... -
Starting an application from a non-interactive windows service in windows 7
I have developed a windows service in VS 2008 which launches another application at my local computer. The launched application has a UI, so, I used CreateProcessAs User API to launch the application (start the process).
Private Function CreateProcessAs User(
ByVal hToken As IntPtr,
ByVal lpApplicationNa me As String,
ByVal lpCommandLine As String,
ByRef lpProcessAttrib utes As SECURITY_ATTRIB UTES,
... -
SHBrowseForFolder (shell32 API) raising exception in 64 bit OS (Windows 7)
Hi,
I had developed an application in VS 2008(VB) which uses ‘SHBrowseForFol der’ method of shell32.dll for browsing of files as well as folders. i.e. I can get path of folder only or path of file only as per requirement. I used it as following.
Private Declare Function SHBrowseForFold er Lib "shell32" (ByRef lpbi As BrowseInfo) As Integer
Every thing works fine when I run my application in 32... -
MSCOMCTL.OCX raising exception in 64 bit OS (Win 7)
I had developed an application in VS 2008, which uses MSCOMCTL.OCX. Every thing works fine as long as I run my application in 32 bit OS (i.e. Win XP) and also in 64 bit OS (Window 7 x64) after compiling it using ‘Target CPU’ option to ‘X86’, but when I compile it using ‘Targer CPU’ option to ‘Any CPU’, the application throws following exception in 64 bit OS (i.e. Windows 7 x64) i.e.
Class not registered (Exception from HRESULT: 0X8004015... -
Form hiding in background
Hi,
I am working on a project in VB.net 2008. I have a problem arising while opening a form as modal from a modeless form. I have attached a project to demonstrate the problem. This demonstration contains three forms with following characteristics .
• “Form1” is main form of the demo application and
• “Form2” is opened as modeless form through “Form1”. It is hidden (using me.hide() method)... -
Windows Service stops triggering event for monitoring of starting process
I am developing a Windows Service Application in VB.net (using WMI). The application monitors for occurrence (Start) of any new event/ process in Win32 environment. The code which I am using for handling this monitoring event is as under:-
Code:WithEvents Watcher As ManagementEventWatcher Watcher = New ManagementEventWatcher(New WqlEventQuery("Select * From Win32_ProcessStartTrace")) AddHandler
-
Windows Service stops triggering monitoring event for starting process
I am developing a Windows Service Application in VB.net (using WMI). The application monitors for occurrence (Start) of any new event/ process in Win32 environment. The code which I am using for handling this monitoring event is as under:-
WithEvents Watcher As ManagementEvent Watcher
Watcher = New ManagementEvent Watcher(New WqlEventQuery(" Select * From Win32_ProcessSt artTrace"))
AddHandler Watcher.EventAr rived,AddressOf... -
Problem in using COM Component "MSCOMCTL.OCX" in Vb.net 2008
Hi,
I converted a VB6 application in VB.net 2008 by using VS 2008 conversion wizard I have encountered a problem in using Tab control in VB.net. I used “Microsoft TabStrip Control 6.0 (SP6)” in VB 6 project. VB.net converter wizard converted it properly and add reference to “AxInterop.MSCo mctlLib.dll” and “Interop.MSComc tlLib.dll”. I am using TabStrip on a Form that is use “Hide” instead of “Close”. So problem is... -
VB 6 to VB.net converion form event behavioral problem
Hi,
I am using VS 2008 conversion wizard to convert a VB6 project to VB.net 2008. I have encountered a problem in the converted VB.net project. The Load event of a ‘form’ is not rising (in a specific scenario) in the converted VB.net version in comparison to the previous (VB6) implementation. The problem scenario is when I call a subroutine “SetLabelPos()” in ‘form1’ from ‘MainForm’:
Form1.SetLabelP os()... -
Thanks for your reply. Actually, i have solved the problem. The uneven line spacing was because of an extra DIV which i have put in the HTML code. -
Uneven line spacing between node of tree view
I am developing a tree view like application using HTML. The problem is that although I am using the same CSS styles for both parent and child node at sub level, but there is an uneven line spacing between parent and child nodes, when parent node in collapsed i.e.
EXPANDED TREE STATE:-
-Parent Node-Sub-Parent Node.-Child 1 of Sub-Parent Node.. Desc of Child 1-Child 2 of Sub-Parent Node.. Desc of Child 2-Child 1 of... -
Developer111 started a topic Problem in using ‘findInPage(str)’ method of java script for searching (collapsed sitin JavascriptProblem in using ‘findInPage(str)’ method of java script for searching (collapsed sit
I am using ‘findInPage(str )’ method of java script for searching in my tree view like application having nodes (collapse/expanded).
The problem I am facing is that while searching a phrase (Find Next), the explorer throws an exception in case, when ‘findInPage(str )’ method finds a particular string in the collapsed node and work fine in case of expanded node. The requirement of my application is that I have to perform searching only... -
How to associate two windows forms?
In my VS-2008 (VB.Net) application, I am using a background worker to make my main form more responsive. In case of any error (in DoWork event) I m displaying the error on another form. In this case main form can’t be a parent of error form so if main form is clicked, error form go in the background (behind main form). I want to restrict the user to interact with the main form while error form is appearing. Is there any way to associate these two... -
How to make a windows form more responsive?
In my (VB.Net+VS2008) application, I want to make my windows form (splash) more responsive as there is some complex functionality is performing while loading splash form. Currently when any other application come in front of splash screen and then minimize then splash screen looses its proper visibility and showing some hang kind of state also.
I used “Application.Do Events()”, but it doesn’t work. I can’t use “background... -
IE6 not loading the whole page HTML Source Code
I have a problem that IE6 is not loading the whole page i.e. in accordance with my own generated HTML Source Code, but the same is working fine/well in case of IE8 and Mozilla FireFox. -
HelpProvider with web browser
I am using HelpProvider control and a web browser in my vb.net (VS2008+XP) application. It works fine, but when web browser navigate to a page, then on pressing key F1, it doesn’t show the help. Can anybody guide me to handle it ?
Thanks in advance -
How to bring an already running application in front?
I am developing an application having multiple screens appearing one after another using Vs2008 on Windows Xp(sp3) in vb.net. My requirement is to bring some screens (windows form) in front of the user to take input and some of the forms can work in background (behind other applications) as they are only progress showing forms.
I tried Me.active(), Me.BringToFront (), Me.Focus(), Appactive() and also some of the APIs like GetForegroundWi ndow(),SetForeg roundWindow(),... -
How to change Panel Opacity in vb.net?
I have a Panel and a button control on windows form. Button is placed behind the Panel. I want to change the opacity of Panel, so that the button control can also be visible. But there is no property of panel control to change the opacity. Is there any way to make the Panel Opaque in this way? -
-
Populate TreeView in Background worker
In vb2005, I have to load a treeview control while loading the form so make the form loading more effective therefore I use Background worker to populate treeview. I tried treeview to pass by ref and faced the error “Cross thread operation not valid: Control” accessed from a thread other than the thread it was created on..”, which makes sense.
Now I want to load treeview in background and return its object then assigning it : Is this...
No activity results to display
Show More
Leave a comment: