Controls Based Security in a Windows Forms Application
From Comments :
The download is just above the author bio, at the foot of the article.
would like some help on how could this idea be applied after the user logs in? meaning how would you actually disable a control for the selected role. With this application all we have done is get a list of controls, user and role, however, how would one actually apply the settings selected after the user is logged in?
Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts
Monday, January 28, 2019
Monday, January 12, 2015
Java development
ERROR NetBeans : diamond operator is not supported in -source 1.5 (use -source 7 or higher to enable diamond operator)
Using the equals() method with String and Object in Java
equals() for String compares the content, not the object itself.
10 Examples of using ArrayList in Java - Tutorial
ArrayList represents an automatic re-sizeable array and used in place of array. Since we can not modify size of an array after creating it, we prefer to use ArrayList in Java which re-size itself automatically once it gets full
How to loop ArrayList in Java - List Itrator Traversal Code Example
Which Java (32 or 64 bit) should be selected when installing Netbeans?
NetBeans 64bit Edition
the download for 64 and 32 bit versions of the IDE is the same, the difference lies in which Java Runtime Environment the install is pointed to. You have to point it to the 64 bit JRE to have it work in 64 bit
from Eclipse message saying List cannot be resolved to a type
You can press SHIFT+CTRL+O for auto importing [packages containing classes needed]
---
from Eclipse IDE - Tutorial
Java can be downloaded in two flavors: a JRE (Java Runtime Environment) and a JDK (Java Development Kit) version.
The Eclipse IDE contains its own Java compiler hence a JRE is sufficient for most tasks with Eclipse.
The JDK version of Java is required if you compile Java source code on the command line and for advanced development scenarios, for example, if you use automatic builds or if you develop Java web applications.
You can define in Eclipse that a project is dependent on another project. To do this select your project, right-click on it and select Properties.
Select Java Build Path and the Projects tab.
If you add a project to the build path of another project, you can use its classes in Eclipse
Manual installation of plug-ins (dropins folder):
You should not modify the content of the Eclipse plugins directory directly. If you want to install plug-ins, put them into the dropins folder. If you want to remove it, delete the JAR from this folder
---
equals() for String compares the content, not the object itself.
10 Examples of using ArrayList in Java - Tutorial
ArrayList represents an automatic re-sizeable array and used in place of array. Since we can not modify size of an array after creating it, we prefer to use ArrayList in Java which re-size itself automatically once it gets full
How to loop ArrayList in Java - List Itrator Traversal Code Example
Which Java (32 or 64 bit) should be selected when installing Netbeans?
NetBeans 64bit Edition
the download for 64 and 32 bit versions of the IDE is the same, the difference lies in which Java Runtime Environment the install is pointed to. You have to point it to the 64 bit JRE to have it work in 64 bit
from Eclipse message saying List cannot be resolved to a type
You can press SHIFT+CTRL+O for auto importing [packages containing classes needed]
---
from Eclipse IDE - Tutorial
Java can be downloaded in two flavors: a JRE (Java Runtime Environment) and a JDK (Java Development Kit) version.
The Eclipse IDE contains its own Java compiler hence a JRE is sufficient for most tasks with Eclipse.
The JDK version of Java is required if you compile Java source code on the command line and for advanced development scenarios, for example, if you use automatic builds or if you develop Java web applications.
You can define in Eclipse that a project is dependent on another project. To do this select your project, right-click on it and select Properties.
Select Java Build Path and the Projects tab.
If you add a project to the build path of another project, you can use its classes in Eclipse
Manual installation of plug-ins (dropins folder):
You should not modify the content of the Eclipse plugins directory directly. If you want to install plug-ins, put them into the dropins folder. If you want to remove it, delete the JAR from this folder
---
Tuesday, September 23, 2014
Eclipse related
Use existing workspace with newer version of Eclipse?
In theory, new versions of Eclipse should update your workspace and project files just fine. In practice, they can become corrupted. My new rule is to create a new workspace for every major version upgrade of Eclipse (maybe more often if you’re cautious). Then I copy those projects and import the copy. This ensures I have a backup plan should something go awry. You may need to reimport your project(s) if there’s a problem that won’t go away after an upgrade.
(from ECLIPSE “CANNOT BE RESOLVED TO A TYPE” ERROR)
How to find out if an installed Eclipse is 32 or 64 bit version?
Hit Ctrl+Alt+Del to open the Windows Task manager and switch to the processes tab, OR
Open eclipse.ini in the installation directory, and observe the 4th line
32-bit programs should be marked with *32
Running 32 bit applicayion on 64 bit Eclipse
Using a 32-bit JRE with a 64-bit eclipse:
Just include the 32bit JRE as an additional Java runtime in the configuration and use it for your project.
How?
...
In theory, new versions of Eclipse should update your workspace and project files just fine. In practice, they can become corrupted. My new rule is to create a new workspace for every major version upgrade of Eclipse (maybe more often if you’re cautious). Then I copy those projects and import the copy. This ensures I have a backup plan should something go awry. You may need to reimport your project(s) if there’s a problem that won’t go away after an upgrade.
(from ECLIPSE “CANNOT BE RESOLVED TO A TYPE” ERROR)
How to find out if an installed Eclipse is 32 or 64 bit version?
Hit Ctrl+Alt+Del to open the Windows Task manager and switch to the processes tab, OR
Open eclipse.ini in the installation directory, and observe the 4th line
32-bit programs should be marked with *32
Running 32 bit applicayion on 64 bit Eclipse
Using a 32-bit JRE with a 64-bit eclipse:
Just include the 32bit JRE as an additional Java runtime in the configuration and use it for your project.
How?
...
Monday, January 6, 2014
.NET Framework related
Microsoft .NET Framework Repair Tool
This tool troubleshoots common issues with the setup of Microsoft .NET Framework or with updates to Microsoft .NET Framework setup installation. Additionally, this tool tries to resolve these issues by applying known fixes or by repairing the installed product.
How to enable .NET Framework 3.5 on Windows 8 in Offline Mode
If it fails, probably because you've installed a language pack (as mentioned on comment by Benjamin Nolan here)
The solution is remove the language pack (control Panel \ Language) then try again
How to determine which versions and service pack levels of the Microsoft .NET Framework are installed
Registry key structure changes since version 4:
How to: Determine Which .NET Framework Versions Are Installed
Tuesday, December 18, 2012
Web design related
What does href="#" mean?
Post #2:
This is just a ''null'' value - which means the anchor will be seen as live (and would also enable use of the "title " tag), and should produce a hand pointer on hover - but it's use will take the user back to the same page he is on. Sometimes a better option for a ''live'' link but one which goes nowhere is -
Post #5:
With most browsers if you don't specify a value following it defaults to the top of the page.
Remove HTML tags to obtain text only:
Strip HTML Tags
Post #2:
This is just a ''null'' value - which means the anchor will be seen as live (and would also enable use of the "title " tag), and should produce a hand pointer on hover - but it's use will take the user back to the same page he is on. Sometimes a better option for a ''live'' link but one which goes nowhere is -
Post #5:
With most browsers if you don't specify a value following it defaults to the top of the page.
Remove HTML tags to obtain text only:
Strip HTML Tags
Monday, November 5, 2012
VB Script related
Check/determine if specified IP address is within range
Logon script - do not run if local IP address is in IP range?
Compare IP Address to range of IP Addresses?
Logon script - do not run if local IP address is in IP range?
Compare IP Address to range of IP Addresses?
Wednesday, October 10, 2012
Cannot execute a VBScript: Invalid character
Open file with Notepad
"Save As" and select ANSI on "Encoding" option
"Save As" and select ANSI on "Encoding" option
Friday, November 18, 2011
Wednesday, November 16, 2011
RegEx support
A Regular Expressions library for Visual FoxPro
www.sweetpotatosoftware.com/SPSBlog/PermaLink,guid,91241006-595a-487d-ac06-d0fc1fc71632.aspx
www.sweetpotatosoftware.com/SPSBlog/PermaLink,guid,91241006-595a-487d-ac06-d0fc1fc71632.aspx
Tuesday, November 8, 2011
VS: Expand/Collapse region keyboard shortcut
CTRL+M CTRL+M (that's two key presses!) - collapse/open the current parent region
CTRL+M CTRL+L - Collapse/Open all regions in document recursively (meaning you might get only one line in the document - one big namespace region which is collapsed or you'll see the entire page code uncollapsed
CTRL+M CTRL+O - Collapse all regions not recursively
CTRL+M CTRL+L - Collapse/Open all regions in document recursively (meaning you might get only one line in the document - one big namespace region which is collapsed or you'll see the entire page code uncollapsed
CTRL+M CTRL+O - Collapse all regions not recursively
Wednesday, October 5, 2011
Tuesday, October 4, 2011
Android: Can user fully exit/close application?
How do you force close an application on Android?
http://answers.oreilly.com/topic/833-how-do-you-force-close-an-application-on-android/
Programmer perspective:
Activities
http://developer.android.com/guide/topics/fundamentals/activities.html
How to close Android application?
http://stackoverflow.com/questions/2092951/how-to-close-android-application
http://answers.oreilly.com/topic/833-how-do-you-force-close-an-application-on-android/
Programmer perspective:
Activities
http://developer.android.com/guide/topics/fundamentals/activities.html
How to close Android application?
http://stackoverflow.com/questions/2092951/how-to-close-android-application
Thursday, September 29, 2011
VFX: Where this or that defined
Code ran when Preview toolbar menu is clicked
vfxFormBase.vcx \cDataFormVfxBase \ onPrint
Code launched when toolbar menu is clicked:
Class vfxAppl \ cAppToolbarManager \ onItemClick
Code that launches database selection dialog
vfxAppl.vcx > cFoxApp.setClient:
...
Do Form vfxclien To ACTUALCLIENT
...
Where cConnectionMgr class is defined
vfxfunc.org
Where DataSource for CursorAdapter is defined
vfxCtrl.vcx > cBaseDataAccess.getDataSourcePlatformType
Where "ON ERROR" is defined
vfxappl.vcx > cfoxapp > start
Where 'oRecord' object is created
vfxFormBase > cDataFormVfxBase > Init:
thisform.addobject('oRecord', ALLTRIM(goprogram.ctablemanagerclass))
Where to set date format
Class appl > cFoxAppl > cDateFormat
It the above doesn't work, check vfxmsg.dbf and find Message_ID= [ID_DATESETTING] and alter memo field (Eng)
vfxFormBase.vcx \cDataFormVfxBase \ onPrint
Code launched when toolbar menu is clicked:
Class vfxAppl \ cAppToolbarManager \ onItemClick
Code that launches database selection dialog
vfxAppl.vcx > cFoxApp.setClient:
...
Do Form vfxclien To ACTUALCLIENT
...
Where cConnectionMgr class is defined
vfxfunc.org
Where DataSource for CursorAdapter is defined
vfxCtrl.vcx > cBaseDataAccess.getDataSourcePlatformType
Where "ON ERROR" is defined
vfxappl.vcx > cfoxapp > start
Where 'oRecord' object is created
vfxFormBase > cDataFormVfxBase > Init:
thisform.addobject('oRecord', ALLTRIM(goprogram.ctablemanagerclass))
Where to set date format
Class appl > cFoxAppl > cDateFormat
It the above doesn't work, check vfxmsg.dbf and find Message_ID= [ID_DATESETTING] and alter memo field (Eng)
Thursday, August 18, 2011
VS: Setting up code coverage logging
Visual Studio code coverage configuration and usage step by step
http://qtwiki.org/Visual_Studio_code_coverage_configuration_and_usage_step_by_step
http://qtwiki.org/Visual_Studio_code_coverage_configuration_and_usage_step_by_step
Friday, August 5, 2011
C#: Make Your Application with Trial Version
www.c-sharpcorner.com/UploadFile/tanmayit08/3163/
Read also comments and articles reffered in them
Read also comments and articles reffered in them
Thursday, June 30, 2011
DevExpress: Toolbox icons are missing
Probable cause:
Installing VS Service Pack
Try these:
#1 Toolbox > Right-click > Reset toolbox > Run DX Toolbox Creator
#2 Toolbox > Right-click > Choose Items... > Check all DX controls
#3 Register toolbox items manually
---www.devexpress.com/Support/Center/p/B93264.aspx
Installing VS Service Pack
Try these:
#1 Toolbox > Right-click > Reset toolbox > Run DX Toolbox Creator
#2 Toolbox > Right-click > Choose Items... > Check all DX controls
#3 Register toolbox items manually
---www.devexpress.com/Support/Center/p/B93264.aspx
Thursday, June 16, 2011
VS2008: Set default browser for ASP.NET app
Change Visual Studio Default Browser in an ASP.NET MVC project
http://stackoverflow.com/questions/1032743/change-visual-studio-default-browser-in-an-asp-net-mvc-project
http://stackoverflow.com/questions/1032743/change-visual-studio-default-browser-in-an-asp-net-mvc-project
Saturday, June 11, 2011
VFX: Activation key is generated...another hardware
Remove the folder corresponds to the version in question on \Documents and Settings\All Users\Application Data\dFPUG\Visual Extend
That will re-enable Activation dialog
That will re-enable Activation dialog
Subscribe to:
Posts (Atom)