Hello,
I am trying to get a reference to ElementHost control. For example in the below code I need to initially use the “testImage” content of the WPF user control to lunch the event. The WPF control is added at run-time, so does the ElementHost control, so I can’t use the WPF control’s name or ElementHost’s name.
My logic is to get the...
BASIC and its variants Visual Basic and VB.NET are the only programming languages I know of that treat the end of line character as a statement terminator (I'm excluding batch files and command scripts from the domain of programming languages). I'm curious: is there any other language that uses this convention, or does BASIC stand alone...
Ok, I was rooting around in one of our company apps which is done in VB.net. I'm not familiar with VB.net (I do stuff in C#) so I'm asking this question: Does the code after the clean up comment execute?
Public Function DoesUserHavePermission(ByVal UserID As Integer, ByVal ActionID As Integer) As Boolean
' some extra code re: gettin...
Anyway to view the content of a dataset or datatable in debug? I don't mean looking up a specific element of the dataset but to view the hole thing.
...
Anyway to use BS.Find with more than one column (like "ID",1 And "Name","Smith") ?
...
i have 10 radio buttons that have yes/no values. These are options to one question, so need to in the database under 1 record.
so - question1 yes, question 1 no, question1 yes and so on.
i want to use a while loop or some other loop to take all these values and insert them or update them in the database for that particular question. any ...
I have a class as follows:
Class Scan
Delivered As Boolean
ScanDate As Date
State As String
Facility As String
End Class
I then create a list and populate it with scans containing whatever.
Dim Scans As New List(Of Scan)
I need to mine the list to get various pieces of information. I would like to use LINQ to do ...
I'm passing a type name and some parameters from C# code into a navigation framework written in VB. The navigation framework looks for a constructor on the type that matches the parameters passed in using Type.GetConstructor(Types()). The constructor that I'm looking for expects an array of integers -- Integer() in vb. But it gets an ...
Forgive me about the title, I have no idea what this is called.
I have a MS Access database set up, with a Period field that has either values 1, 2, 3, 4 or 5. I retrieve these values using a database connection and I would like to reference a particular control based on what period was grabbed from the database.
Here's example code, p...
UPDATE: I asked a more general question here: http://stackoverflow.com/questions/2166963/can-i-do-two-levels-of-linking-in-crystal-reports
I'm using Crystal Reports within VB.NET and Visual Studio 2005.
I have a report with several subreports. I'm setting List(Of MainStuff) as the data sources for the main report. I'm setting List(O...
Let's say I have three lists: Departments, Divisions, and Groups. A Department is made up of Divisions, which in turn is made up of Groups.
The Divisions have the Department ID as a foreign key. The Groups have the Division ID as a foreign key.
I'd like to produce a report that looks like this:
Department 1
Division 1A
...
We are using visual studio 2008-My requirement is to allocate some memory, store data into that allocated memory and pass the memory address to a DLL written in C. But when try to pass this memory address to a function in that DLL my application crashes and shows the message "The memory could not be written".
''//Memory allocation Code
...
Hello everyone!
I'm translating my VB.Net application, and I need to loop through all the controls on my form. Using a recursive function such as
Public Sub TranslateControl(ByVal Ctrl As Control)
For Each ChildCtrl As Control In Ctrl.Controls
ChildCtrl.Text = Translate(ChildCtrl.Text)
If TypeOf ChildCtrl Is Label...
I have written a simple program which receive data from serial port i.e (temperature) and display on a line graph. but i require accumlate the graph data upto 10 minutes on screen. after that it again accumlate next 10 minutes data.
The Code of VB.Net program is below :
Imports System.Drawing.Image
Imports System.IO.Ports
Public Class...
Hello,
We have a Message broker application in Java which accepts messages(XML). It validates the XML against XSD and calls a .net Webservice and passes the validated XML.
We have a requirement to do the same in .net. Do we have any API's to do this one. I am looking for a system that takes care of logging in case of errors or some kind...
I have a file which is opened and the bytes are loaded into a class.
The file needs to be split into chunks, and there is a header which gives the locations and sizes of the chunks.
Should I (upon opening the file) split the file into chunk sand store each chunk in an array of variables And then when I want to access the data in the chun...
I'm just not understanding on how to create a lamdba expression instead of using a regular comprehension linq queries. All of the examples i see are not query a database using linq to sql. i want to able to construct a lambda expression that get my the orders from the northwind database where the country equals "us". I know how to constr...
Forgive me about the title, I have no idea what this is called.
I have a MS Access database set up, with a Period field that has either values 1, 2, 3, 4 or 5. I retrieve these values using a database connection and I would like to reference a particular control based on what period was grabbed from the database.
Here's example code, p...
I was wondering if there was a way to directly convert the integer DayOfWeek returns into a string representing the day like Monday, Tuesday etc.
Sample code:
MessageBox.Show(Date.Today.DayOfWeek)
This will return 6 (as of today). Is there a way to directly convert this into Saturday, for example? I don't really care what it really c...
I know the default install path of the app and the name of the .exe file, but is there a way to see if it is actually installed?
I've seen suggestions for checking registry entries, but I don't know if this app uses any or if if varies for different users on different pc's.
Many of the registy entries have no default values set. I pref...