Hi,
Im working with a CD722UN Customer Display for our POS application.
it comes with a USB2.0 connection and a installation package containing a driver ect..
now, for my application. how should i do when i want to access this driver?
at the moment i'm using the "CD722UN application"s .dll path but that can warry from clients OS ect.....
I use Philip's MfRc500.dll for communicating with RFID chips. It contains a function for reading data, which is defined like this:
signed char Mf500PiccRead(unsigned char addr, unsigned char * data)
I use it in VB.NET like this:
Private Declare Function RFID_PiccRead Lib "MfRc500.dll" Alias "_Mf500PiccRead@8" (ByVal addr As UShort, B...
Hi,
I want to use Linq2Sql as the data source for my Crystal reports. I have all my data in my domain objects in the form of Lists. The problem is all my domain model resides in a different namespace in the form of a .dll. And when i try to assign a data source for my report in Database Expert window, under .NET Objects, i can only see ...
I got the following error which I translated from german:
error BC30068: The Expression is a value and cannot be target of an assignment.
Iam trying to do the following:
sheet.Cells(row, col).Value = newVal ' this is VB
Where I have declared Cells as:
public Cell Cells(int x, int y) // this is C#
{
return new Cell(this, x, y);
...
Using VB.Net and C#.Net
Using 3 Tier, I was executing this query in DataAccessLayer, i want to call this query in ApplicationLayer throgh BUsinessLogicLayer.
Code.
Cmd = New SqlCommand("Exec delTable", con)
cmd.ExecuteNonQuery
I want to return this execute command like this,
In application Layer How to call this?
Can anyone Provid...
Hi,
I have a dynamic query which returns a DataTable. This DataTable will contain a varying number of columns depending on the selection used in the query.
I want an efficient way of filtering the records in the DataTable.
For Example
The DataTable contains columns : A, B, C and D
I need to query this data at serveral points in my ...
I am trying to access the controls' properties on another form without having to modify the code of the other projec (the one containing the controls that I want to access) because it is already compiled as a DLL. In this DLL that I am trying to access, the functions/sub-procedures are all declared as private. Would there be any way of a...
Asp.Net 2.0 framewrok - VB.Net application
I have a UserControl containing a Asp.Net DropDownList.
Things already researched and \ or tried:
The control gets bound to data on page load inside if not Page.IsPostBack (only loads once)
ID proprety is set for control (ID = ddlMyControl)
AutoPostBack is set to true
EnableViewState on the ...
I have a UserControl with a property called "Type". This can have any combination of three values, say
One
Two
Three
How do I do this? This is more like the anchor property for controls in WinForms.
...
I'm exporting an ASP.NET gridview to Excel using the following function. The formatting is working really well, except I need to freeze the header row in Excel on the export. I'm really trying to avoid using a 3rd party Excel plugin for this, but unless there's some archaic excel markup in my AddExcelStyling function.
Public Sub ...
I have two bmp files:
footer.bmp: 200 x 200
product.bmp: 1000 x 1000
I want to create a new bmp file with 200 x 500:
Append the footer.bmp into the bottom of the new image - position (0, 300)
Resize the product.bmp to 200 x 300 and position into (0, 0)
How do I do this using VB.NET?
Dim oBitmap As New Bitmap(200, 500)
Dim oGraph...
I have set up a class as a facade to access the session variables for my app. In this app I store an entire dataset for a particular employer as a session variable.
Within one of the sub pages I have a button that adds a row to an existing table stored in that dataset.
Dim curRow As Data.DataRow = mySession.tWorksiteOtherMeasures....
In .NET (at least <=2) there's a problem serializing objects that raise events when those events are handled by a non-serializable object (like a Windows Form).
Because of the way VB.NET implements events, when you serialize an object, its events get serialized too (because events are actually implemented using hidden multicast delegate...
I'm trying to write a linq to object query in vb.net, here is the c# version of what I'm trying to achieve (I'm running this in linqpad):
void Main()
{
var items = GetArray(
new {a="a",b="a",c=1}
, new {a="a",b="a",c=2}
, new {a="a",b="b",c=1}
);
(
from i in items
group i by new {i.a, i.b} into g
le...
i need to parse normail mailing addresses in vb.net.
the requirement is address shall be split in 2 variables. so if address is
12300 euclid st. then it will be "12300" and "euclid st." in two different variables.
also if address is 123 B4 euclid st then "123 B4" and "euclid st". Sometimes address is
12008 B2 euclid st Apt 12. In this c...
Hello people, I want to do the same that works previously on HTML but now via .NET Windows Forms.
When I submit this HTML it works :
<html>
<head>
</head>
<body>
<form name="TestForm" action="http://staging.csatravelprotection.com/ws/policyrequest" method="POST">
<input type="hidden" name="xmlrequeststring" value="
<quoterequest>
<...
I have 2 forms that are visible. Is it possible to detect if a message box is visible/being displayed on from one of the forms on the other?
...
In a asp.net mvc form, im using a radiobutton set, to set a property.
<%=Html.RadioButton("Tipo", "Pizza",
CType(Model.Tipo = "Pizza", Boolean), New With {.id = "Pizza"})%>
<label for="Pizza">Tipo Pizza</label>
<%=Html.RadioButton("Tipo", "Barra",
CType(Model.Tipo = "Barra", Boolean), New With {.id = "Barra"})%>
<lab...
Hello,
I'm having a problem when using variables in object names.
I have a Public class which is called "Tank"
In that class, there is a public property called "direction" of an integer type.
I keep getting the error:
"Tank is a type and cannot be used as an expression"
What I'm doing wrong here ?
Public Class mainroutines()
' Creat...
Some comments on this SO question regarding warnings got me thinking about old issues that always goofed me up when I was writing more VB.NET code. One of them was the fact that the compiler didn't warn if you declared a Function but never did an explicit Return statement or assign to the Function name. Running Visual Studio 2008, I just...