.net - Searching Systematic, Comprehensive And Complete Comparison Between The Syntax Of .NET And C#?

Oct 24, 2010

I'm an experienced VB.NET developer, who wants to start with C#. I'm searching for a web based comparison between both languages syntax as quick reference.I found myself arranging VB.NET syntax templates such as...

Public MustInherit Class BaseClass
Public MustOverride Sub PublicMustOverrideSub(ByVal byValParam As Integer, ByRef byRefParam As String)
Protected MustOverride Function ProtectedMustOverrideFunc() As Double

[code].....

...and consuming the results.

View 1 Replies


ADVERTISEMENT

Comparison Syntax Between Two Datatables?

Mar 23, 2009

I am trying to compare two datatables and generate a resultant datatable of rows that do not match based on customer number. The main table "Customers" contains all customers that have been placed in our system. I am trying to generate a table of customers, "dtResults," that we have not ever generated an invoice from a table called "CurrentCust".I would like someone to look at the attached code and see how I can handle the 'InvalidCastException was unhandled', 'Unable to cast object of type 'System.String' to type 'CustomerDataTable' error. Error occurs at line 43.

1
Option Explicit On
2
Option Strict Off

[code]....

View 2 Replies

Programming Syntax - Searching An Array For A String Matching Input - Visual Basic

Jan 20, 2012

I can't figure out the syntax for searching an array of stored words for a string matching an input string. I understand the pseudocode of it, but I'm tripping up over what variables I need to put where, and how they should be formatted. More than happy to provide more details should anyone request them.

[Code]...

View 1 Replies

Comprehensive Text

Feb 28, 2010

I want 2 learn VB.NET,I want ur suggestions on a very comprehensive VB.NET text.

View 4 Replies

Can Download A Comprehensive Tutorials For Learning

Jun 30, 2010

I am a beginners in programming. Please, where can i download a comprehensive tutorials for learning.

View 4 Replies

VS 2010 Get Comprehensive Webcam List

May 15, 2012

There's lots of code samples around to get a list of webcams (or other video capture devices) in VB.NET:

Declare Function capGetDriverDescriptionA Lib "avicap32.dll" (ByVal wDriver As Short, ByVal lpszName As String, ByVal cbName As Integer, ByVal lpszVer As String, ByVal cbVer As Integer) As Boolean

[Code]....

I have two webcams installed on my PC but I only get one entry: "Microsoft WDM Image Capture (Win32)".

If I run Skype > Tools > Options > Video Settings I see "Logitech HD Webcam C270" and "Microsoft LifeCam VX-2000". I can click on each camera and it's output is correctly shown in the preview window.

how to get this full description of each camera device? Having done that, I will need to be able to select that device as the source for my image grabbing routine. Perhaps each entry can provide a GUID?

View 1 Replies

VS 2010 - Building Comprehensive Directory / File Listing

Apr 11, 2011

Where to begin trying to research building a program that can inventory a program and then build a spreadsheet where I can name tabs based on directory names and then color them according to their level in the directory tree. The number of directories and/or total number of files shouldn't be a limiting factor if possible. I would also like all subdirectories to be after the tab for their parent directory.

[1] [1a] [1b] [1b1] [1b2] [1c] [2] [3] [4]

I'm working on a Win 7, Office 2010, and VB 2010 Express machine. The purpose of this is to assist with our data retention policy at my company. I want to split up directories on the tabs to make it easier to search and then employee's can go into certain directories to make files they used for a project so those can get archived and the unused files can be deleted.

View 2 Replies

Syntax/Command Trying To Implement Syntax Highlighting In RichTextBox?

Oct 12, 2011

I am having an issue trying to figure this out. I am writing a script editor that uses tabs (a tab control) and I want to implement syntax highlighting. My issue is that every sample I can find on syntax highlighting uses

Private Sub RichTextBox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RichTextBox1.TextChanged

View 1 Replies

Bitwise Comparison

Dec 30, 2010

result = SendMessage(buttonhandle, BM_GETSTATE, 0, 0)
buttonChecked = (result = BST_CHECKED)

Now I want to know whether the bit for BST_CHECKED is turned on or not.

How would I do that?

I can do

buttonChecked = (result % 2 = BST_CHECKED)

Is there a better way?

View 2 Replies

C# - String Comparison In .NET?

Feb 17, 2012

What is the difference (in bref) between (.NET)

myString == otherString

and

myString.CopareTo(otherString) == 0

View 6 Replies

Comparison Of VB And C# Communities?

Jan 19, 2010

read this post carfully before you dive headlong into outlining what's wrong/right with the communities.

View 3 Replies

C# - Comparison Of Serializing Methods?

Dec 25, 2011

Possible Duplicate: Fastest serializer and deserializer with lowest memory footprint in C#?

I'm using BinaryFormatter class to serialize an structure or a class. (after serialization, I'm going to encrypt the serialized file before saving. (And of course decrypt it before deserialization))But I heard that some other serialization classes are present in .Net Framework. Like XmlSerializer, JavaScriptSerializer, DataContractSerializer and protobuf-net.I want to know, which one is best for me?Less RAM space needed for serialize/deserialize is the most important thing for me. Also speed is important.

View 2 Replies

Convert Vb Date Comparison To C#

Aug 24, 2011

I have a code in vb, and I'm trying convert it to c#.

_nextContactDate.ToShortDateString > New Date(1900, 1, 1)

This is _nexContractDate declaration:

Private _nextContactDate As DateTime

Comapre datetime to string?

View 4 Replies

Datetimepicker Time Value Comparison?

Aug 7, 2011

im trying to compare time value of to two datetimepickers, i tried to use dt_Start.Value.TimeOfDay > dt_End.Value.TimeOfDay but it doesn't work. btw, i trying to make a scheduler. here are some of my codes:


Dim strUpdate As String
If dt_Start.Value.Date > dt_End.Value.Date Then
MsgBox("End date is earlier than Start Date. Please check.", vbExclamation, "Error!")
ElseIf dt_Start.Value.Date < Today.Date Then

[Code]...

View 2 Replies

Inequality Comparison Operator In VB?

Dec 9, 2010

In C I write an if statement like:

if (a != 0)

How do I write this != operator in VB?

View 2 Replies

IsNot For String Comparison

Oct 12, 2010

If Object.Value IsNot "Something" Then Can you do this, or are there certain cases in which it wouldn't work? Wasn't sure if this should only be used for integers and booleans.

View 3 Replies

Make Comparison Between Pictures?

Oct 16, 2010

What code should I use to compare two pictures?

I tried those:

If PictureBox1.Image <> PictureBox2.Image then
End If
'and I tried this too:
If PictureBox1.image IsNot PictureBox2.Image then
End If
'But that all did nothing

View 1 Replies

Use Or In Comparison Between File Attributes?

Feb 3, 2012

I have searched a lot on the web about changing file attributes in .net , it takes me a long time to get the final code but it was really good. But after all of my search I didn't know why we use "And" when we compare file attribute like this:

If (System.IO.File.GetAttributes(FilePath_txt.Text) And System.IO.FileAttributes.Hidden) = System.IO.FileAttributes.Hidden Then
MsgBox("File is hidden")
Else
MsgBox("File isn't hidden")
End If

Otherwise when I want to set Multiple attributes for on file I have to use "Or" with it like this

System.IO.File.SetAttributes(FilePath_txt.Text, IO.FileAttributes.System Or IO.FileAttributes.Hidden Or IO.FileAttributes.ReadOnly)I know this isn't a big problem but , I can't write a code I don't know how it is actually works.

View 2 Replies

Webcam-Images-Comparison?

Jul 14, 2009

I want somehow to temporarily store and compare two images capture from my web cam every 5 sec. (basically i`m going to use this as motion detection)I figure out how to perform pixel to pixel comparison but the problem is how can i store the images temporarily every 5 sec?Do i need an array?Can i avoid saving the images for the motion detection?Also is it better to convert the images into gray scale or black & white for the comparison or as they are

View 5 Replies

Comparison Between Cell And Parameter Value - DataType

Sep 26, 2010

I want to compare between the cell value with the value (parameter) in database. As example, if my cellvalue value is 3 and my paramater(a) in my database is 5 it will be like this
if cellvalue<a then
(some code)
end if
I don't know the exact data type. The reason I need to use data type is because my data is dynamic.

Here is my
protected SubGridView1_RowDataBound(ByVal Sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound
con = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;DataSource=C:UsersmeDocumentsVisual Studio 2005WebSitesCSGCSG1.mdb")
con.Open()
[Code] ......

View 3 Replies

Comparison To A File On A Different Computer On The Same Network

Jan 4, 2012

I have a computer that takes in a barcode through a Visual Basic program on one computer and I want to be able to compare that barcode as a String to data on a different computer on the same network by ethernet connection where the data is stored in an Excel 2010 file (.xlsm) in Column A in a workbook called 'Data.xlsm'. Before the data is allowed to be saved or used further in the program on the first computer, I would like for the comparison to happen.

Some more details that you all may or may not need.

Computer 1 (where barcode is scanned): Windows 7, Office 2010

Computer 2 (where data file is stored): Windows XP, Office 2007

View 12 Replies

Convert Images To Values For Comparison?

Nov 26, 2011

I am making a Texas hold'em poker game for my class project. I already have the cards in the game through an image list. I am now trying to compare the player cards with the flop, turn, and river card to tell the player what they have and if they have won or not. I have tried a number of different things but have come up short. This is the last thing I tried[code]...

View 6 Replies

Dictionary Class And ContainsKey Comparison?

Mar 26, 2009

When using the Dictionary class when the key and value types are your own custom types, is it possible to specify the property of the key type object to use with the ContainsKey method? Best described with an example:

Dim dict as New Dictionary(Of CutsomType, AnotheCustomType)
Dim obj1 as CustomType ' Custom type with 3 properties ID, LastName and FirstName
Dim obj2 as AnotherCustomType

[Code]....

I could just omit the lines with ContainsKey but I'd prefer to know how it's making the comparison and how to change it if required. I don't want to use an integer containing the ID for the key type because I want to reference the whole object later on again.

View 2 Replies

Excelsheet Comparison - Put All The Cells That Are Different In A New File

Apr 14, 2011

i have 2 excel sheets (file1.xls, file2.xls), both with 2 columns. the first column of both files contain keywords, (both files have the same). now i want to write code in excel that compares the 2 files and put all the cells that are different in a new file (file3.xls). i already saw an example here on the site, Excel sheet values comparison, but somehow it doesn't fit for what i need, and i don't get it to work.

View 7 Replies

Integer Nearest Match Comparison

Jan 25, 2009

i'm building an image library and one of the things i want to do is compare the most common color in a given image to a set of established colors in rgb format the way i'll probably do this is create 3 arrays for the average r,g and b of each given image, and then compare them to my established values for r,g and b that i want to match to so if my first image has the average values of 255, 125 and 5 for r,g and b..what would be the best way to do a nearest match against my pre-established colors? (about 32 in total)

View 1 Replies

Large Files For Data Comparison?

Sep 21, 2010

I am working on a program for a customer and am working in VB2010 in VB language. I have two rather large files that contain data. File #1 is over 300,000 lines of data. File #2 is over 100,000 lines. The files are CSV text files. On a User Form, there are two values, "StartTime" and "StopTime". This is the process I am doing:

1. Read both files into ArrayLists
2. Get item #1 of ArrayList #1 (we'll call this "A")
3. Get item #1 of ArrayList #2 (we'll call this "B")

[code]....

View 6 Replies

Objects Property Value Comparison Does Not Check For Nothing

Dec 9, 2011

I am using Entity Framwork and have an Entity Customer with a property of[code]...

However I noticed that this code does not get executed when Customer.CustomerStatus Is Nothing.

View 1 Replies

Simple Checked List Box Comparison

Jul 27, 2009

I have a form containing a checkedlistbox, I want to be able to do a simple comparison between the checked status before and after to see if there has been any change. I have a copy of the "before" version of the checkedlist box and I thought I could just compare the two CheckedItems but it always thinks they are different, I could iterate through the entire checkedlistbox but I thought there would be an easier way.
[Code]

View 1 Replies

VS 2008 Efficiency Comparison Of Nested Ifs?

Jul 20, 2010

which is more efficient?(Assume case statements, etc., cannot be used.)

If a Then
If x Then
ax()
ElseIf y Then

[code]....

View 4 Replies

VS 2008 String Comparison Methods

Apr 27, 2009

currently I am using something like the following:[code]It seems to work fine, but I've seen posts on different blogs and stuff that say string.compare is better for some reason.Is this ok to use or should I be using string.compare()?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved