.net - What Does The () Stands For In The Property Definition
Apr 6, 2012
I noticed in the code base I have to read that sometimes property definition includes an empty (). What's the meaning of that? And it has nothing to do with arrays.
For example :
Public Property TotalPages() As Integer
View 2 Replies
ADVERTISEMENT
Apr 16, 2012
What is the meaning of the square brackets around the name of a property in the definition ?
Example :
Public Property [Date] As String
View 3 Replies
Jun 10, 2010
I am the CEO of Virtual American Eagle airlines. I am looking for some help on how to make an automated PIREP system. PIREP stands for PIlot REPort. What I need it to do is connect to my site, make the pilot login, connect to FSX (Microsoft Flight Simulator X) and FS9 (Microsoft Flight Simulator 2009). It needs to track: that the engines are off, the speeds or takeoff, climb, cruise, and decent. Then I want it to track the time that the wheels hit the runway, the time that the engiines go off, then automatically put it into a list and with the push of a button, send it to our site.
View 10 Replies
Jan 18, 2011
I'm facing really strange problem, in one of my BLL files whenever I add method or property i get this message Error1'CPLogic.BLL.OrdersFaxGroups' does not contain a definition for 'GetFaxGroupForStatusCheck'C:CouponphoneAppsCPFaxEngineCPFaxEngineCPFaxEngineFaxEngine.cs20658CPFaxEngine I know that the method is in that file, i even able to build the application with success but when ever i try to lanuch it i get this message, the same thing happend to me yesterday in the same file, i ended up deleting it and copy its content again to new file with the same name. but now even that not working..
View 4 Replies
Dec 14, 2010
When you want to define a type you must say GetType(Type) ex.: GetType(string), but ain't String a type itself? Why do you need to use GetType in those situations? And, if the reason is because it is expecting a Type 'Type'... why isn't the conversion implicit... I mean, all the data is there...
View 4 Replies
Mar 1, 2010
I know that in WPF, FontSize = 1/96 of an inch (same as 1 pixel I think). Is the FontSize dimension the height, the width, or diagonal size of a character? I would guess it's the font height, but the Microsoft documentation doesn't really indicate what it is.
Also, is there an easy way to get the height and width of a font size?So it looks like the FontSize is the height, and the width can only be determined (without knowing the actual character) on monospaced fonts since proportional fonts have varying widths.
View 1 Replies
Feb 28, 2012
When I right-click on function name and then press "go to definition" it takes me to the function definition. Is there any way to do this with just one click on function name,., is there some option ,or add-on for VB? that will be perfect, fast and furious
View 2 Replies
Feb 17, 2010
I right-click on function name and then press "go to definition" it takes me to the function definition. Is there any way to do this with just one click on function name,., is there some option ,or add-on for VB? that will be perfect, fast and furious
View 1 Replies
Mar 9, 2010
I made a copy of a program so I could 'play around' with modifying it. The copy is in a different project in the same solution, plus I renamed it so there shouldn't be a conflict-so why is Go To Definition not available in the copy? It's active in the original (and other programs) but grayed out in the copy. I've rebuilt the entire solution, including the copied program-and it still doesn't work.
View 1 Replies
Aug 2, 2011
i'm lost on how to do this inline.It's easy to say
Dim X as Integer = new Integer(4) {1,2,3,4}
but i'm lost on:
Structure ThisType
[code]....
View 3 Replies
Feb 11, 2011
I have an .XSD that is made from a class so that I can pass to a webservice. It got it over to the webservice as an XMLSchema object and now I need to make it into a class so that I can make objects out of it on the webservice side. I know that XSD.exe is the answer but I'll be darned if I can puzzle out exactly how to implement this thing. I need it to do this conversion at run time so I need to put the code for it into my project and all the references I've seen to using XSD.exe talk about calling it from the command line.
My .XSD is below.
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="[URL]">
<xs:element name="Field">
[Code] .....
In my project this is living in an XMLSchema object. How do I turn it into a class?
View 2 Replies
Dec 9, 2011
I'm having some very weird issues with interfaces right now.
I have a very simple setup. In one of my class, I have a Property implementing a Property from an Interface.
In my class it's like:
Private _oForm As IForm
Public Property Form As IForm Implements IContainer.Form
Set(value As IForm)
[Code]...
I have like dozens of interfaces like this working throughout my project and I can't believe this simple one can't work!
View 1 Replies
Aug 4, 2010
I have a class definition that I've seen other define properties that return collections of objects.
Public Property GetAllAdults() as Adults End Property I made the argument that this should be a method in the class, because it doesn't define an attribute of the class, and could not be extended with parameters. Is/Are there reasons why this should be defined as a property vs. a function?
View 3 Replies
Apr 22, 2010
When I specify <SoapDocumentMethod(OneWay:=True)> on my webservice it doesn't seem to get called. If I remove that the webservice works properly. Also, everything works fine on the development machine just not on the server.
Here is my web method:
<SoapDocumentMethod(OneWay:=True)> _
<WebMethod()> _
Public Sub Write(ByVal processGroupId As Integer)
xslClass.xslHelper.writeDatabase(processGroupId)
End Sub
[code]....
View 1 Replies
Oct 9, 2006
How do I creat a simple array of class definitions?[code]...
View 13 Replies
Aug 12, 2011
i have a probleam with my report , i try to display my report using report viewer but it show an error :The source of the report is not definition has be not specified. i am using visual studio 2005 and databse sql 2005.
View 1 Replies
Dec 13, 2011
Why only the first parameter in the definition of VB.NET Generics uses the 'Of' keyword ?
For example I have here the the full code that LINQ uses for the Enumerable.Select() method :
<System.Runtime.CompilerServices.Extension()> _
Public Shared Function [Select](Of TSource, TResult)(
ByVal source As IEnumerable(Of TSource),
ByVal selector As Func(Of TSource, TResult)
) As IEnumerable(Of TResult)
[Code]...
View 9 Replies
Jan 11, 2010
I'm having trouble with the definition of an inherited generic class. I have two base classes that are defined like this:[code]
View 2 Replies
Aug 10, 2010
Let say I am working in a code window, and I want to check for variable, so I right click on it and click on "Go To Definition", after that I want to get back to the place I was working in.
View 2 Replies
Oct 4, 2011
This is what my error list and the correspond lines shows( all of these are showing in the designer code), I tried 3 days to solve it, well after tried lots ways still wrong, I came here.
View 6 Replies
May 24, 2011
I'm working a business layer (separate assembly) that will contain various business entities used in multiple client applications. One of the client applications is a WCF app that will need to serialize these entities. In order to properly serialize the entities, metadata for data contracts or for XML serialization must be added, but the serialization requirements may vary across applications.
Clearly I need the metadata separated from the class definition. So how do I add metadata to my entities for each separate application?
View 1 Replies
Aug 8, 2010
I call upon the VB ninjas out there. Here's my situation. I need to eventually be able to pass multiple models to a view. Currently I have a linq to sql class that, of course, has a bunch of generated model definitions. I need to make a model that implements multiple models. I somewhat understand how to do this in C#, but this project is testing my VB skillz. Here's some snippets from my linq to sql models. I need to combine these two into one model to pass to the view.
[Code]...
View 1 Replies
Jan 4, 2010
I have a base class which needs to define an enumeration:
BaseClass
- SomeEnum
I then need to create two derived classes from the base class and extend the values in the enumeration:
ChildClass1 : BaseClass
- SomeEnum
- SomeEnumValue1
[code]....
In C# or VB.NET can someone provide the syntax to do this?
View 3 Replies
Feb 20, 2012
im sure im mis-wording the concept but here it is anyways. I know in CSharp you can do
el.AppendChild(new UISize(file, "TSize") { CX = 95, CY = 20 });
which declares a temporary bucket variable and then assigns the associate property values to the variable. Which then sends it to the XMLElement AppendChild method. What is this design concept called? What is the conversion to VB.Net? I have tried using my own online utility that does a 90-95% conversion rate from C# <-> VB.Net. It has failed in this instance, and so need a hand-up on what i am looking to do to convert this from C# to VB.Net. I would really like to not have to do a long-declaration of a variable with assignments, if at all possible.
View 1 Replies
Feb 10, 2010
In order to organize various methods of my MainForm class, I would like to categorize them into several files. Of course, the methods would still need to access form elements and additional variables I added in the MainForm class.
View 3 Replies
Apr 12, 2009
In my attempts to understand vb.NET, one of the problems I have encountered is that I have not been able to find a concise definition anywhere for the Paint Event. So after many hours of researching and forum posts (and my own personal tests), here is my own definition (but it seems to fail in one instance, mentioned after the definition). I would like to create a final definition based on everyone's input, but keep in mind, the idea here is to STAY CONCISE. So here goes:
Explanation of the Paint Event
Whenever any portion of a control is UNCOVERED (except by the mouse pointer), the paint event fires. Covering of the control does not fire the event, because the covered area is not visible to the user, and is therefore irrelevant. The paint event is a messenger that alerts the program, via message, that some portion of the control has been uncovered and this message launches an OPTIONAL paint event handler (paint event procedure) written by the programmer, if one is needed to handle those situations when the event occurs. One possible situation is the most obvious...the need to redraw the uncovered region. A paint event procedure is the programmer's counterpart to vb6's automatic property, "AutoRedraw". But whereas vb6's solution was a simple and automatic redraw of the control, vb.NET's equivalent requires the programmer to define explicitly how the event is to be handled, whether it be a simple redraw or something more elaborate. This puts this event in a special category; it is not a user-desired event fired by some user-desired action...it is an internally generated event that acts more as a housekeeping "watchdog" to alert the program that housekeeping chores may have to be implemented because the user did something that was NOT DIRECTLY RELATED to a desired action. For example, when the user moves a window over a control in such a manner that a portion of the control is covered, then uncovered, this causes the state of the control to change even though the user did not specifically request it. It nonetheless may have to be dealt with, and this is managed via the paint event handler procedure.
The problem I have with this definition of mine, is that if the above is true, then why does the mouse moving across the control NOT cause the paint event to fire? After all, it is causing areas of the control to be covered and then uncovered. Is it because the mouse is a special case where the system puts the mouse pointer on a separate layer above the screen graphics, in order to prevent constant paint event messaging?
View 3 Replies
Feb 13, 2012
If we are within the derived class then ofcource we can use MyBase keyword to access base class's object reference . That's fine , how can we take that base class's object reference outside that derived class's definition.
My following code will explain what i want . Actually that is giving error right now, but it is explaining my requirement .[code]...
View 6 Replies
Jun 22, 2010
I see a sample code that an object is instantiated within the class definition block. But when I test the folllowing, I got error "Process is terminated due to
[Code]...
View 3 Replies
Oct 13, 2009
I just have a simple Interface definition in my project, which I haven't even used yet. But when I try to build the project I get this error:
Access is denied: 'System.IEquatable`1[Reactor.IOptions]'.
Below is the interface:
Interface IOptions
Inherits Xml.Serialization.IXmlSerializable ' Optoins Should Serialize to XML
Inherits System.Runtime.Serialization.ISerializable ' Options should implement .net Serialization
Inherits System.ICloneable ' Must be able to copy options
Inherits System.IEquatable(Of IOptions) ' Must be able to compare opitons
End Interface
View 1 Replies
Apr 8, 2010
Possible Duplicate: User control javascript I defined a JavaScript function inside a user control.If I have multiple instances of the user control on my .aspx page, how do I prevent multiple function definitions in the resulting HTML code?
View 2 Replies