BACKGROUND:
Most of my programs use table adapters, and the connection strings are stored in app settings. This works fine, but was a real PITA when switching from development to production environment. I had to change manually the connection strings before and after starting my work on any app.
After a bit of research I found how to sw...
I'm struggling with an event related to my communications class.
I'm calling a 'DataChange' function via event handler any time I receive new data over my serial connection. I then proceed to load that data into a DataGridView, perform some formatting, etc for the users. I'm getting a ton of problems due to the frequency at which the Da...
How do you set focus to a specific control in a datagridview row after clicking the edit button? I'm able to do it for a new row when the grid is binding, but not for an existing row. The control doesn't seem to exist yet.
'This doesn't work (existing row)
Protected Sub gvDays_RowEditing(ByVal sender As Object, ByVal e As GridViewEdi...
I have a form with multiple datagridviews. On save the entire dataset will be serialized to a strongly typed property bound to a sql varbinary(max) Works fine.
Of course the current "dirty" cell will not be saved as mentioned here :
http://stackoverflow.com/questions/963601/datagridview-value-does-not-gets-saved-if-selection-is-not...
I have this LINQ statement
Dim Demo = From d In DBDataTable.AsEnumerable _
Select id = d.Field(Of Integer)("id"), _
Colun = d.Field(Of Object) (_column2), _
Col3 = d.Field(Of Object)(_column3), _
Col4 = IIf(_Col4 <> -1, d.Field(Of Object)(_Col4), Nothing)
Is there any wa...
I want to create a class library .NET web project that encapsulates the functionality of consuming a web service. I can create the .NET class web project and add a web service (Visual Studio 2005) but I cannot seem to figure out how to reference it. It's easy to reference in a web site (simply address it by name), but apparently in the...
Question says it all. Is there a way to enforce case sensitivity in VB.Net file-names? If so, how!
The primary issue that I am trying to solve is the difference in how Windows doesn't care about the case of a file-name, but other tools, like Subversion, do care about the case of a file-name
...
Hi, this may be a dense question and I'm not finding it to be a dup of this one, but I need some help with understanding if an array can be used in a Select Case statement.
I have a sub routine that I will create a string array dynamically. The XML is also listed, but it could be any of the values listed below. It will be something like...
since i do not have any image editing software, i am going to use vb.net to slice an image horizontally. can someone help me get started please?
...
Using DataGridView with VB.Net 2008.
I would like to freeze the left column so that when/if scrolled this column still remains in place.
can someone tell me how to do this?
...
i have a report which looks like this. it will be in PDF format:
the user will input all the different foods, thus every section like NONE, MODERATE, SEVERE will be a different size and thus i need to be able to expand the sections during run time. in order to do that i should probably slice up the image and add different sections duri...
the following is a generated PDF with a few images. how do i force the image to take up the entire width of the pdf file?
...
Vb.net program that sends email?
Can we do that?
...
I have an object of type SomeObject, with an event StatusChanged.
I have a property in SomeObject of type Status also with an event StatusChanged.
Within a private function in SomeObject, I would like to run some logic (including firing the StatusChanged event) in the event that Status has fired its StatusChanged event. I have been a...
I have a requirement to display word document in ASP.NET form. Also, the original word format has to be retained. In a nutshell i have to embed a word document in a web form programatically. Can someone please help.
...
Hello there,
i'm building a Videoplayer custom control (Project called WpfCustomControlLibrary1) and want to add a Load Command.
This is what i have added in my class to get this Command:
Public Class VideoPlayer
Inherits Control
...
Public Shared ReadOnly LoadCommad As RoutedUICommand
....
Shared Sub New()
'This OverrideMetadata...
Hi guys.
I'm using vb.net 1.1 to develop the program.
I got text files that contain test result from a machine, like below.
T1 1.24535 2.56335 2.43253 1.24538 2.55619 4.35243
T2 1.42542 1.63728 3.57295 4.59275 1.57320 2.72057
T3 5.12857 2.45375 6.38593 2.58375 3.57259 3.57...
I thought this would be simple but obviously not!
Basically, I have a date and want to do a 'between' on two date columns like this:
myDataTable.Select(myDate & " between (StartDate and EndDate)")
Where StartDate and EndDate are date columns that do exist in the DataTable.
Any ideas?
...
Hi
when i run my application on my friend's win 7 os, i get .Net security error.
here is a screenshot
and here is manifest
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2...
Hello,
I'm currently designing an assembly that will be used by third parties. One of the classes has a long process of TCP connections and it informs about its process using events. For example
''# Do stuff that takes some time
RaiseEvent CompletedFirstPartEvent()
''# Do stuff that takes some time
RaiseEvent CompletedSecondPartEvent()...