Hi everyone,
In our desktop application projects we use setting variables to store user setting for the applications. Moreover, with every latest version of the applications, we upgrade these variables to retain user settings.
Normally, this works fine, but recently one of my end user reported an error i.e. “Configuration System failed to initialize”. The error is related to “user.config” file. Therefore we...
User Profile
Collapse
-
user.config corruption issue
-
Microsoft Excel 2010 Addin not loading properly
I developed a 64-bit Excel Addin.
For testing I added it on a laptop (64-bit machine with 64-Windows7 Enterprise and 64-bit Office 2010) [other than the one i developed on], its works fines i can call n use its functions. but when i add the same addin on a desktop machine (64-bit machine with 64-Windows7 Enterprise and 64-bit Office 2010), its functions are not available and no error message displayed as well. But when i re-launch... -
Start/Stop windows service dependent on wmi
Hi,
I have developed a windows service which records the applications (processes) that runs on the machine.
To get the process start trigger i have used wmi.
Code:Obj_ManagementStartWatcher = New ManagementEventWatcher("Select * From Win32_ProcessStartTrace") AddHandler mObj_ManagementStartWatcher.EventArrived, AddressOf Proces_Arrived Obj_ManagementStartWatcher.Start()
-
Running animation in background worker
Hi,
I m developing an application in vb 2008, and using background worker to copy file(s). I have my own designed form which plays an animationon on the top of the form along with copy. For playing animation i m using "AxMSComCtl2.Ax Animation", on execution i get
"ActiveX control '<Control ID>' cannot be instantiated because the current thread is not in a single-threaded apartment."
... -
Windows service problem
I am working on a Windows Service application in VB.net 2008. The main objective of the application is to monitor starting and stopping of applications listed in a file. I build the service as system level by using ‘System’ user account. I used “Management.Man agementEventWat cher” class to get event handlers for starting and stopping of processes. I used following code to set process arrived event
mManagementStar tWatcher = New... -
TextBox validating event
While working with Unicode spread ADO 7.0.55 (OLEDB) and came across an issue. i.e. I wanted to validate an input text value in a textbox control so I perform validation check on textbox validating event. In case the input is invalid I am displaying a message to user. With other standard control this logic works fine, but when the user clicks on Farpoint Spread after typing an invalid value the message display twice.
I being doing... -
Changing Splash form and Startup Object at runtime
Hi All,
I am developing an windows application in VB 2008, My requirment is such that I have to change the applications Splash and Startup object on the basis of "Custom Constants" (Compilation Constants).
As far as I have .Net idea it should be done in Application.Sta rtup Event (guide me if i am wrong)
Now, in Application.Sta rtup_Event when I write the code
Code:Private Sub MyApplication_Startup(ByVal
-
Running multiple instances of Javaw.exe
I am running a 3rd party application that runs in javaw.exe, when I try to launch the second instance of the application. The application doesn’t respond.
If anyone can guide, is this javaw.exe behavior (not running the second instance) or it’s just the applications behavior?
This behavior becomes critical when 2 or more user try to use the application remotely (via RDS or Citrix). In remotely access the behavior is that only... -
:) thanks tlhintoq and phommy for your nice and helpful advices.
Thanks. -
no no
Its simple
I want enabling event to stop triggering.
so that even if their some some statement like button.Enable= TRUE
even then the event get blocked and wont enable the button.
But I dont want this thing in buttonEnabled_E VENT, where i will be reverting the change.
Thanks and Regards,
Haroon.Leave a comment:
-
Thanks a lot tlhintoq for your respose,
But I think I could not convey my problem properly.
let me try again.
for example a "frmEnroll" (is some enrollment form) has a button "btnOk". The button "btnOK" is not allowed to a user "ABC".
What I have already achieved is when frmEnroll loads "btnOk" for user disabled as desired.
Now the functionality...Leave a comment:
-
Preventing controls enable property from changing
Hi Everyone,
I m implementing control based security in my application. where i m saving controlname (per form) in database, which are to be restricted.
So far I have implemented the security and restricted control get disabled.Now what i want to do is that i have to prevent that for those controls the "control.Enable " property should not change. how can i restrict that.
I have achieved the functionality... -
Factory Method
Hi everyone,
My issue is that my application supports Oracle,SQL Server and Sybase database. The problem is that when i have to execute some database script (lets say 15 table creation queries) but the syntax varies with respect to user backhand DBMS.
They solution strick in my mind is to have an abstract class as parent and inherits "OracleChildCla ss","SQLChildCl ass" and "SysbaseChildCl ass" from the parent... -
Leave a comment:
-
Inheritence in forms
Hi everyone,
I am developing a windows based application in VS2005. I want all my form to be inherits from one of my class e.g.ParentClass but indeed the windows forms already inherits windows.forms.f orm class. what I have tried is that, I inherit "windows.forms. form" in "ParentClas s" and all forms inherits my "ParentClas s". But in this case when I view the design of the form IDE gives error. Please guide... -
Handling DPI changes in windows form
Hi,
I am developing a windows based application in VB 2005, the main form of the application is of fixed border style (i.e. user cannot resize the form), but in certain cases I am resizing my form through code. Intially the form has a fixed height i.e. 350 for normal height and 400 for extended height. But in this case the problem could not be solved effectively as the user can have different DPI setting e.g. 120, 144, 192 etc. The... -
Tooltip in VS2005 controls
Hello Everyone,
While working with list view control in VB 2005, I observed a behavior that the tooltip for the control is not consistent i.e. if we closely observe that when the tooltip displays then one can find that some time when you move the cursor in the control, tooltip won’t be displayed.
For further investigation I tried to observe the behavior of other such controls e.g. Treeview, listbox and textbox (Multiline). I have...
No activity results to display
Show More
Leave a comment: