Skip to main content


Showing posts with the label Visual Basic

Return Multiple Values(or Objects) in VB.NET

You might have searched "How to return multiple objects in VB.Net" in google and you might have got a lot of Ir-relevant articles. But this is not such an article, this goes to the point. I am going to teach you how to return multiple values in

I gave a lot of try (Searching), how to do the stuff but most of the search results turned out to be like using a single object and returning multiple values in it, but that I do not need. So I thought of writing an article here about the same. So at least it will be helpful for sum beginners.
Read More....
I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with…

Displaying RowNumber in datagrid control

In this post We will show how we can display row number in datagrid control using IMultiValueConverter.Let us start with the code.The code shown in the List 1 is used to bind using the IMultiValueConverter and the passing parameter for the binding converter are the binding and parent datagrid control
< DataGridTextColumn Header="Row Number"IsReadOnly="True">
< DataGridTextColumn.Binding>
< MultiBinding Converter="{StaticResource rowNumberConverter}">
< Binding />
< Binding RelativeSource="{RelativeSource FindAncestor, AncestorType={x:TypeDataGrid}}" />
< /MultiBinding>
< /DataGridTextColumn.Binding>
< /DataGridTextColumn>

Now in the converter I have simple code to show the row number of the current element which is passed to the converter in first parameter. I have store it in the object type variable. As I don&…

New Interview Questions for Senior Software Engineers

New Interview Questions for Senior Software Engineers
What is something substantive that you've done to improve as a developer in your career? Would you call yourself a craftsman (craftsperson) and what does that word mean to you? Implement a using on . What is SOLID? Why is the Single Responsibility Principle important? What is Inversion of Control? How does that relate to dependency injection? How does a 3 tier application differ from a 2 tier one? Why are interfaces important? What is the Repository pattern? The Factory Pattern? Why are patterns important? What are some examples of anti-patterns? Who are the Gang of Four? Why should you care? How do the MVP, MVC, and MVVM patterns relate? When are they appropriate? Explain the concept of Separation of Concerns and it's pros and cons. Name three primary attributes of object-oriented design. Describe what they mean and why they're important. Describe a pattern that is NOT the Factory Pattern? How is it used and when? You…

Coding a Default Property

The concept of a "default property" for an object isn't what it used to be. Programmers new to VB.NET after 2001 (When VB6 was taken behind the barn and shot.) may not even be aware of how it used to be. In brief, you used to be able to write code like this:

TextBox1 = "Text"
This was really shorthand for ...

TextBox1.Text = "Text"
... because the Text property was the default property.
VB.NET continues to include a "Default" property attribute, but it's not at all the same. In fact, the way it's really used is documented in such an obscure way at Microsoft that there is a real need for some clarification.
The Microsoft documentation for declaring a Default Property in a Class definition is fairly straightforward. But you have to read the whole thing. The initial step-by-step instructions don't work. You could get the idea that all you have to do is simply use the Default keyword instead of Private, Public, or Shared.

Default …