I may have gone crazy... but I am hoping there is a way to do this.
I have a base class that has event handling in it. My console application is running my workflow. Part of that workflow is to raise events at specific intervals in a separate thread to broadcast the workers' current state (a heartbeat I have heard many call it).
I also...
I have problem in loading data to treelist of DevXpress in .Net platform(VB.Net) so can you help me to solve this problem
...
I created this simple textpad program in WPF/VB.NET 2008 that automatically saves the content of the forms to an XML file on every keystroke.
Now, I'm trying to make the program see the changes on the XML file in realtime.. example, If I open two of my textpads, when I write on the first one, it will automatically reflect on the other t...
I need to have a physical button that when pressed will be noticed by my program.
There are many types of usb-buttons that are preprogrammed to open a website, shutdown the computer and so on. And I have seen some projects using buttons and serial port.
But none of them "have it all", an easy description of how to put togheter the hardw...
Hi i am using vb.net and the .net membership provider.
i want to bring back a gridview with user account information, like GetAllUsers() does. However i want to only bring back users with certain profile information, that will be users whos profile information matches the selected value in a dropdownlist on the same page. I am using pro...
Hello,
In the application I am currently working on, I have an option to create automatic backups of a certain file on the hard disk. What I would like to do is offer the user the possibility to configure the name of the file and its extension.
For example, the backup filename could be something like : "backup_month_year_username.bak"...
I'm looping all the properties in an object via reflection:
For Each p As PropertyInfo In values.[GetType]().GetProperties()
If p.CanRead Then
'Do stuff
End If
Next
Can anyone tell me how to determine whether the property in question is a generic List(Of T)? If it is I need to loop the list it...
Hello,
I have a string which is xml data which is very nicely indented and well formed.
Dim xmlstring as string
I am trying to pass the above mentioned string to a Java Web Service but the input parameter datatype is string array. I am converting the string to string array as shown below
localws.receiveNotification("TestQueue", xmls...
I am trying to figure out what this piece of code does. It errors often (not in a system damaging way) but enough that it bothers me. It would be great if I could get some more information on what exactly is going on here and any suggestions on how I might be able to fix/prevent this.
Code
Public Shared Sub Fire(ByVal thisEvent As [Del...
I have a list(of t) and I got a iqueryable(of a)
I want to filter out any item from the iqueryable(of a) where a.id = t.myotherid
I'm not really sure how to write this query, anyone could help me here?
For now I got this
Dim listCie = (From c In db.getListCompany() _
Where Not rels.Select(Function(a) a.ChildID).Contai...
I'm working with the DevExpress XtraGrid control.
I have a routine that goes thru and adds all the controls on the current form dynamically, and launches on a seperate thread the routine for a given control to initialize it to the value that will be displayed to the end-user. Some of the controls are displaying calculated values, and ta...
Creates a webbrowser in a background thread, then is supposed to navigate to a url and return a htmldocument, but the navigate fails for some reason, any idea why?
NOTE: this is part of a class where you see ME.url or me. ...
me.isrunning = boolean false by default
me.url = uri of location to navigate to
Public Function GetDOC(ByVal ...
I have recreated the Predicatebuilder class in a seperate C# project and I'm trying to use it in a VB.NET project but I keep getting the following error:
Overload resolution failed because no accessible 'Or' accepts this number of arguments.
when I use it like so:
Dim predicate = PredicateBuilder.False(Of t_Quote)()
predicate = pr...
Usually my application sends email with a generic system address. But in some cases I want to instead send as the logged in user.
web.config:
<?xml version="1.0"?>
<configuration>
...
<appSettings>
...
<add key="DefaultEmailAddress"
value="[email protected]" />
</appSettings>
<system.net>...
Hi all,
I need to create a prg. in that user can designed the form based on their requirements (like add delete buttons, textbox, labels, change its properties, location) and save the form changes permanently.
Please guide me.
...
I have a dataset containing a datatable, and I enumerate all rows in that datatable. When trying to format a column in that row, I run into an exception. (Part of) the code is:
For Each dr As DataRow In ds.Tables("records").Rows
file = dr("timestamp").ToString("yyyyMMdd") & "~.wav"
Next
This results in the following error message:...
Hello.
I have a question about the property TotalVirtualMemory in the VB class ComputerInfo. I have checked this property from code on several different computers and the number is always 2047 MB. This is strange because I know for a fact that the virtual memory on these computers differ (~1GB, ~2GB and ~3.5GB). Does anyone know why it ...
I am converting C# code to VB.Net and the C code has this above the function:
[return: System.Xml.Serialization.XmlElementAttribute("Name", IsNullable=true)]
...
I can't get the selected value of a programmatically generated list of items:
Protected Sub ddlMMMYY2_PreRender(ByVal sender As Object, ByVal e
As System.EventArgs) Handles ddlMMMYY2.PreRender
If Not Page.IsPostBack Then
'Value= 08.2009 Text=Aug 09
Dim d As Date
d = Now
...
I try to make this gridview sortable, but it simply doesn't work, anyone know why?
Dim sql As String = "SELECT Product_ID, Code, Trade_Name "
sql = sql & "FROM Product "
sql = sql & "WHERE Category = ? "
Dim conn As String = WebConfigurationManager.ConnectionStrings("ConnectionString").ConnectionString
Dim dad As New OleDbDataAdapt...