For historical reasons, we need to expose string constants in .NET through COM interface.We managed to expose ENUM but we can't find a way to expose string const.We try the following code :
During a code review I looked at set of repository classes (in vb.net). I am used to seeing these repository classes full of functions that return collections (among other things) of your domain objects. However, this repository had 1 public property and 1 private variable that looked something like this:
Private _item as Collection (of Customer) Public Item as Collection (of Customer) Get... Set...
In the "Get", there is code that gets a the Customers from the DAL and loads it in the private _item. What would the benefits be in using a property (customerRepository.Item) instead of plain old function (customerRepository.GetAllCustomers)? The "Property" way looks odd to me but odd doesn't always mean wrong.
i have 2 polygons: 1 - A rectangle with a certain size defined with 4, 6 points or more (what ever becomes easier). 2 - A non-rectangular polygon (a quadrangular) what i need is that when given a certain point with inside the rectangle, i can translate that same point in the other polygon in the right position.
Private Sub ActivateMe(ByVal active As Boolean) Implements IGraphicControl .ActivateMe compiles.How is possible in VB.NET? A private method can be an interface implementation. VB.NET... a lot of compliments to this language and IDE..
I saw the following class declaration in vb.net: Public Class [Interface] Implements TestInterface. What does the above mean? Is there an equivalent in c#?
Can someone translate me the following code from VB to C#? As far as I understand it is declaration of a function that calls another function from the native library "user32.dll"...Declare Function SetForegroundWindow Lib "user32" (ByVal hwnd As Integer) As Integer
translate the following code from VB to C#? As far as I understand it is declaration of a function that calls another function from the native library "user32.dll"...
Declare Function SetForegroundWindow Lib "user32" (ByVal hwnd As Integer) As Integer
I have a combo box as a dropdownlist box that contains list of states like: IA - Iowa. On form_load, I want the combo box to display a string value that I pass in. However, my string value is a 2-char that represents the state (eg. IA). How can I populate it so that IA - Iowa is selected while my string value is IA. Technically, string "IA - Iowa" does not equal "IA".
I am attempting to find resources of information in regards to the adoption of- and the language translation for VB.NET.Specifically, I need what countries VB.NET was adopted into AND what languages it has been translated to.
I am writing an application in vb.net using a mysql database.I need it to be multilingual.I have not found much useful info on this so I thought I 'd go ahead and work it out myself.I have started making a translation table in the mysql database consisting of the fields id, description, lang1, lang2. I would then use the proper language column according to the configuration. Not too hard upto this point.I was wondering if there is a good reason NOT to use the database, but in stead use plain text files. A good reason would be speed for example.
We are in the process of writing a WCF service using the same pattern as in WSSF. It has its service implementation which makes use of Business logic project to get the resources or save the resources using Data Access Repository. This is where the problem comes since we have to write a translator for translating Data Contract to Business Entity and Vice Versa. This translation is becoming tedious.I am looking for a way (maybe using Reflection) to write one function to Translate Datacontract to Business Entity and vice versa.
Argument not specified for 'userList' of 'Private Sub OpenUserDetail(userList as Model.UserList)'. It works in the C# version just not sure about the C# to VB translation. Original declaration in C#:
private readonly DelegateCommand<EmailDocument> openMessageCommand; this.openMessageCommand = new DelegateCommand<EmailDocument>(this.OpenMessage); private void OpenMessage(EmailDocument document) { // Do stuff
i have two textboxes in my form.when i type the text in the first textbox which is english language.now i need to display the the text in telugu language in other textbox.
I have a program in which a user enters a sentence in English into a text box, then the sentence is translated into French and German based on words in an array of structures that gets its values from a text file. I have almost all of the program written, but I am a bit confused on how to get VB to get the English words that are entered into the text box separately so they can be translated individually and the value returned. I need to use a Sub Procedure to get the English Words and to Translate them.
Here is what I have so far. Code: Public Class frmTranslate ' Create Structure with a member for each language Structure Translator Dim english As String Dim french As String [Code] .....
I have an APP that reads data from MS Access tables. It all works fine except that the numbers in Access table are formatted like 800001 so when the user puts "2" in the access table, it changes to 800002 and so on. I want to read the data AS THEY APPEAR in VB.Net but it reads them without the special format. So I get 1 or 2 etc.
I know how to format the data within VB but I don't want to hard code that as the format in MS Access might change. Is there anyway I can read the data format in MS Access ?