Hi,
I am using a custom validator to compare value in two text box. This is comparing the values fine. But it says "025" and "25" are different.. can this do a float comparision.
the custom validator i am using is
<asp:CompareValidator id="compval" runat="server" ControlToValidate="txtBox1"
ErrorMessage="There values are not...
Please feel free to correct me if I am wrong at any point...
I am trying to read a CSV (comma separated values) file using .NET file I/O classes. Now the problem is, this CSV file may contain some fields with soft carriage returns (i.e. solitary \r or \n markers rather than the standard \r\n used in text files to end a line) within some...
I'm coding a simple code editor for a very simple scripting language we use at work. My syntax highlighting code works fine if I do it on the entire RichTextBox (rtbMain) but when I try to get it to work on just that line, so I can run the function with rtbMain changes, it gets weird. I can't seem to figure out why. Am I even going about...
I want to write a function that accepts two objects as parameters and compare only the fields contained within the objects. I do not know what type the objects will be at design time, but the objects passed will be classes used within our application.
Is it possible to compare object's fields without knowing their types at runtime.
Tha...
I'm digging into Reflection for the first time and I'm truely stuck. I've googled everything I can think of. I'm 90% where I wanna be now.
I'm trying to return the value of a Property in a custom class through Reflection.
Here's my class declaration:
Public Class Class2
Private newPropertyValue2 As String
Public Property NewP...
Is there any reason to start a GUI program (application for Windows) written in VB.NET in the Sub Main of a module rather than directly in a form?
EDIT: The program won't take any command line parameters and it will be executed as a GUI program always.
...
I've switch from VB.NET to C# several months ago, while there are a lot of features I really like in C#, believe it or not, there are some features that I really miss from VB.NET.
One of those features is whenever I implemented an interface in VB.NET the stub properties and methods were automatically added for me.
Is there any way to...
I have a syntax highlighting function in vb.net. I use regular expressions to match "!IF" for instance and then color it blue. This works perfect until I tried to figure out how to do comments.
The language I'm writing this for a comment can either be if the line starts with a single quote ' OR if anywhere in the line there is two sin...
I'm a good VB programmer (not so good!) I want to migrate to C#, what is the best ebook or videos that can help me?
...
Is it possible to migrate a VB.NET Winform solution to a 3.5 WPF solution. If so, any suggestions how to do it?
Thanks in advance!
JFV
...
For taking data from SQL Server database, I can use the code as below
Dim sql As String = "SELECT emp_id, emp_name FROM emp; SELECT dep_id, dep_name FROM department;"
Dim da As New SqlClient.SqlDataAdapter(sql, connString)
Dim ds As New DataSet("Data")
da.Fill(ds)
I will get two tables in ds dataset. How can I code the same for Oracl...
Hi.
I have a client application that calls a function1 on webservice1 on server1 in the local network. The webservice1 then calls another webservice2 on an remote server2.
If open Internet Explorer on server1 and point it to the function1 on webservice1 and run the function, everything goes fine.
But if I run it from the client comput...
I am using Infragistic UltraGrid in window application.
I need a event which is raised on cell value change.
I try many events like AfterCellActivate,AfterCellUpdate but uanble to find right one.
Please suggest me.
...
I am using Infragistic UltraGrid in window application.
I need a event which is raised on check change of checkbox in Infragistic UltraGrid.
...
How can I go through each of the properties in my custom object? It is not a collection object, but is there something like this for non-collection objects?
For Each entry as String in myObject
' Do stuff here...
Next
There are string, integer and boolean properties in my object.
...
In Linqtosql how do I show items from multiple rows in a single field.
eg I have a 3 table setup for tagging(entity, tag, entitytag) all linked via foreign keys.
For each entity I would like to return the name in one field and then all relevant tags in 2nd field.
eg Item1, tag1; tag2; tag3
Item2, tag4, tag5....
VB statements prefe...
I am working on a windows form application. How do i use the find method of a datatable to find a row if the datatable has a compound key?
Table Structure
Col A, Col B, Col C
Col A and Col B make up the compound key.
I want to find the row where the value in Col A is 6 and Col B is 5
...
Is it possible to use BindingSource.find on multple columns?
I have a treeview and a combobox. The combobox provides the ID that is used to build the treeview. When I select a node in the tree view I want to display the details/child information for the ID from the combobox and the tag/ID value from the tree Node.
What is the best ...
I am currently coding a program with a WPF UI and I have a button which is either close or cancel, depending on if there were any changes made on the page. To achieve this I want to use a trigger (wrapped in a style) on the button so that when the dependency property HasChanges is true the button will change from "Close" to "Cancel". S...
Is it possible to override the background color of the minimize and maximized buttons in WinForms?
...