So I've created a series of objects that interact with a piece of hardware over a serial port. There is a thread running monitoring the serial port, and if the state of the hardware changes it updates properties in my objects. I'm using observable collections, and INotifyPropertyChanged.
I've built a UI in WPF and it works great, show...
if I have a small double in vb.net like this:
dim x as double = 0.00000003
a conversion to a string would produce a E-presentation (3E-7). in debugging the value it will be shown as full number (0.00000003).
how can I get the full number in a string?
...
I create a database like this:
Sub Main()
Dim wrkDefault As Workspace
Dim dbE As DBEngine
Dim dbs As Database
'Get default Workspace.
dbE = New DBEngine
wrkDefault = dbE.Workspaces(0)
'Set the database filename
Dim DBFilename As String
DBFilename = "c:\mydb.mdb"
...
I have a grid containing rows flagged with different priorities. I want to color the high priority rows red, low ones blue, etc.
I'd like to set the shade based on a mathmatically calculated gradient rather than arbitrarily assigning colors to specific priorities. How can I extract a single color from a single point along gradient?
...
Hi, ive been dealing with a kind of no error message my application is throwing after the setup has been installed on my machine.
The application run fine and generate a report exactly the way i want it. The problem is that after compiling it as set up, it throw this message:
System.Runtime.InteropServices.COMException (0x80000000);
No...
Not sure if I am using the correct term, but it's not child/parent since they aren't nested objects. In my application I've got a User, UserUserGroup, and UserGroup objects which are pretty standard, UserUserGroup is a linking object with corresponding IDs. I am using Linq-to-SQL so unforunately it doesn't used nested objects, but it sti...
With several forms of mine, I occasionally run into the following issue: I edit the form using the designer (Visual Studio 2008, Windows Forms, .NET 2.0, VB.NET) to add components, only to find out later that some minor adjustments were made (e.g. the form's size is suddenly changed by a few pixels), and controls get deleted. This happen...
How would I translate this C# lambda expression into VB.NET ?
query.ExecuteAsync(op => op.Results.ForEach(Employees.Add));
using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System....
My DevExpress CSV export has two lines per record.
Rank Score,Prog.,Full Address
63.30 ,JIW ,1234 Whispering Pines Dr
, ,Sometown MI 48316
62.80 ,JIW ,9876 Beagle Dr
, ,Sometown Twp MI 48382
I would like to change it to one line because I want to do a Word Merge. (Un...
How do I get Linq to ignore any parameters that are empty? So Lastname, Firstname, etc? If I have data in all parameters it works fine...
refinedresult = From x In theresult _
Where x.<thelastname>.Value.TestPhoneElement(LastName) And _
x.<thefirstname>.Value.TestPhoneElement(FirstName) And _
...
We are having problems removing the toolbar/sidebar from the Adobe Viewer control for .NET.. Of course it is possible with if you watch for Windows Procs. and what not, but we aren't extremely interested in this, so we started looking into 3rd party and the Adobe SDK.
The Adobe Acrobat SDK seems extremely complicated to me to understand...
Hello all,
I can't find what's going on with the following nHibernate HQL.
here's my VB.Net code:
Return _Session.GetNamedQuery("PersonAnthroSummary").SetInt32(0, 2).UniqueResult()
My Named Query:
<sql-query name="PersonAnthroSummary">
select New PersonAnthroSummary( Anthro.Height, Anthro.Weight ) from PersonAnthroContac...
Public Function CastToT(Of T)(ByVal GenericType(Of Object) data) As GenericType(Of T)
Return DirectCast(data, GenericType(Of T))
End Function
The above clearly does not work. Is there any way to perform this cast if I know that all objects inside data are in fact of Type T?
...
I'm adding to a combo box an ID and a name that I'm pulling from a database. My problem is that for some reason my loop doesn't end once it reaches the end of the records in the database table. Here's my code:
For intcount = 0 To dtOrders.Rows.Count - 1
cmbSearch.Items.Add(dtOrders.Rows(intcount)("EmployeeID").ToString & " "...
Hey all, i have made a simple form that mimiks the jQuery "GROWL" effect seen here http://www.sandbox.timbenniks.com/projects/jquery-notice/
However, i have ran into a problem. If i have more than one call to the form to display a "Growl" then it just refreshes the same form with whatever call i send it. In other words, i can only displ...
Hi,
I am building an application and I am using web services for getting data from a server. It was working fine when I was developing on my XP machine but had to switch to Windows 7. On the new machine I grabbed the latest version of the code using sourcesafe.
However, when I try to add a service reference in the solution or update an...
Hai,
i were working in Windows xp. last week I changed my OS to Windows 7.The project i have done in Vb.net(2008) . While running class not registered error comes. In another computer its works well. Why it comes.
...
Hey all, i have a problem with trying to get 2 forms to close at different times using a timer on each of the 2 forms.
This is my form layout:
frmMain
Frm1
Frm2
Frm1 and Frm2 are identical to each other. FrmMain has 2 buttons on it. One button to call Frm1 and the other to call Frm2.
Frm1 and Frm2 each has a timer. It counts down to ...
Hello , how do I disable browsing to a http link from a Html editor. I have a vb.net web form with a html editor, when I add a hyperlink to the html editor, for example my application website for instance
http://myapplication/myloginpage.aspx
When I run and click the link I can browse my application from inside the Html Editor wh...
Im trying to use the ComAutomationFactory class in VB .NET the example im working from is c# and is working fine but my project doesnt compile and says this class is not defined??
also what is the return type? in the c# example it returns a type of dynamic but this type does not exist in vb .NET?
...