473,382 Members | 1,353 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Control modifiers

Hi All,

I have a problem with inherited forms, In the book im working for I am being
told to change the modifier from Assembly to Family, I dont know if it it the
version of VB.Net I have but my modifier combo comes with Public, Protected,
Protected Friend, Friend etc no mention of Assembly or Family. Where am I
going wrong? and if this is ok which option should I select in the modifier
combo to make the inherant forms work as I did set them to public and when I
opend the inherited form most of the properties where greyed out, and all my
code stated that the control did not exist.

Mike J. Soames
Mar 20 '06 #1
2 2053
Hello mikejs2000,

I suppose the book is based on a prerelease version of Visual Studio ..NET. The access modifier Assembly may be the actual Friend (can be accessed from anywhere in your assembly), and Family may be Protected (can be accessed by any class that inherits from yours).

I have no experience with inherited forms, but I suppose that the form must be declared public if it is in another project. The properties and methods should be public or protected.

Regards.
"mikejs2000" <mi********@discussions.microsoft.com> escribió en el mensaje news:51**********************************@microsof t.com...
| Hi All,
|
| I have a problem with inherited forms, In the book im working for I am being
| told to change the modifier from Assembly to Family, I dont know if it it the
| version of VB.Net I have but my modifier combo comes with Public, Protected,
| Protected Friend, Friend etc no mention of Assembly or Family. Where am I
| going wrong? and if this is ok which option should I select in the modifier
| combo to make the inherant forms work as I did set them to public and when I
| opend the inherited form most of the properties where greyed out, and all my
| code stated that the control did not exist.
|
| Mike J. Soames
Mar 20 '06 #2
Hi, the .NET Framework names are "Assembly", "Family", etc. These names are
translated for each language and so VB.NET uses "Friend", "Protected", etc.
while C# used "internal", "protected", etc. There are some type converters
or attributes in the design-time architecture and the CodeDoms that handle
this according to the project language.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com
"mikejs2000" <mi********@discussions.microsoft.com> escribió en el mensaje
news:51**********************************@microsof t.com...
Hi All,

I have a problem with inherited forms, In the book im working for I am
being
told to change the modifier from Assembly to Family, I dont know if it it
the
version of VB.Net I have but my modifier combo comes with Public,
Protected,
Protected Friend, Friend etc no mention of Assembly or Family. Where am I
going wrong? and if this is ok which option should I select in the
modifier
combo to make the inherant forms work as I did set them to public and when
I
opend the inherited form most of the properties where greyed out, and all
my
code stated that the control did not exist.

Mike J. Soames

Mar 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Paul Cooper | last post by:
Dear All, I am working on a piece of Javascript code that needs to detect a mouse-click, shift-click and control-click. The code is not my own - it is a part of a much larger suite of routines....
4
by: Vazz | last post by:
I am trying to capture the key combination "Control + Shift + Enter" in a KeyDown event. I am able capture "Control + Enter" using (e.KeyCode == Keys.Enter && e.Modifiers == Keys.Control). How do I...
4
by: Picho | last post by:
Hi all, Using reflection, I can invoke/call private methods of an object. is this intended? if yes, why? in what scenario (example would be good) should I be givven the option to use...
9
by: Woody Splawn | last post by:
On a winform, how do I trap for the user pressing Control Delete? I thought perhaps something like the following in the keydown event of the grid, but the code below does not work. If e.KeyCode...
17
by: Kbalz | last post by:
I'm developing a Wizard type program, and I'm flipping between steps by using a TabControl.. buttons on each tabPage move to the next or previous tabPage. When I press CTRL+Tab however, the...
1
by: johnson.bj | last post by:
I have a relatively minor problem that has been bugging me for a long time. I have created a user control which consists of a few panels and labels. What I want to do with this user control is to...
2
by: Charles Law | last post by:
I'll kick myself when you tell me, but ... I have a user control on a form, and I want the user control to see the arrow keys when I press them. If I press just about any other key the control's...
13
by: Tom Baxter | last post by:
Hi everyone, Has anyone looked at section 18.1.1 of the C# spec? It indicates 'new' and 'protected' are valid modifiers on struct declarations. First, how can 'protected' be valid on a struct,...
2
by: devgupta01 | last post by:
I have seen the class with public and without modifiers and method with public, protected or private modifiers. I am confused how to decide modifiers for a class?
6
by: hurricane_number_one | last post by:
I tried this but it doesn't work keybd_event(VK_CONTROL, 0, 0, 0) mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0) mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0) keybd_event(VK_CONTROL, 0,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.