There are issue with using WebBrowser late bind calls related to object/property names generation.
For example:
WebBrowser1.Document.DomDocument.Forms.Myform.mycontrol.Value = "test"
will fail with more than one instance of the WebBrowser control
what actually happen is that mycontrol object become Mycontrol and compiled vb.net appl...
I need to insert the data into an MS Access database of (2010) with Asp.net (VS 2005)
Please check the code below. When I run the code I get an Error on ExecuteNonQuery.
Operation must use an updateable query
Public Function InsertScheme(ByVal pScheme As Scheme) As Boolean
Dim a As String = "Provider=Microsoft.ACE.OLEDB.12.0; " & ...
Hi, I have a relatively small project and I'm using a 3 tier architecture. Now I'm thinking about on how to split up some of the functions in different data classes.
For example I have a User class and a Group class. My User class has a User.GetGroups function and my Group class has a Group.GetUsers function. Would I put the first in t...
Now it seems like a really simple question and I may just be being thick, but what I'm trying to achieve is basically print an array to screen in the following format:
Item 1, Item 2, Item 3, Item 4
Although I say to screen, as that was the best way I could describe it, I'm actually writing it to the page inside some Javascript.
The w...
Hello Everyone
I need to write some data which is string to tiff file. I am doing in the following way
Dim OFile As System.IO.File
Dim OWrite As system.IO.TextWriter
OWrite = OFile.CreateText("Signature.tiff")
OWrite.Write(ControlData)
MessageBox.Show("Signature is recieved and it is saved in Signature.tiff")
ControlData is the strin...
Hi,
Could anybody kindly advise me what is the difference between Solution and project in vb.net
If I load either of this from my project folder, will effect be the same?
Thanks
Furqan
...
Hello.
I have the following code to add a new row into a datatable and then bind it to a gridview.
I need to add a new row anytime i click the Button2.
What do i need to change in the code so i can have multiple rows before i submit them to a database?
Private Sub BindGrid()
Dim DT As New DataTable
Dim Row As DataRow
...
Can anyone help me convert this to vb.net the converter I used doesnt work right and really dont know how to convert it.
public Person CurrentPersonCancellable
{
get
{
Debug.WriteLine("Getting CurrentPersonCancellable.");
return _CurrentPersonCancellable;
}
set
{
...
Hi All,
Long story short, I'm trying to write some toast-style popup notifications (similar to Growl) which should appear next to the system tray and stack as appropriate.
I can handle the instantiation/location/etc... but I want to add a capability for non-rectangular toasts. I'd also like to have Alpha transparency so a semi-transpar...
Hi Guys,
I am Fairly new to Linq and I am trying to write a simple query to return the error messages within my xml file.
<?xml version="1.0" encoding="utf-8"?>
<Error xmlns="urn:xxxxx">
The following errors were detected:
<Message>Internal Error</Message></Error>
The following works and returns the error mes...
I have developed a website that allows users to upload office documents then uses the office object model to convert the document to an HTML file that it then displays in an iFrame.
I have, of course, included references to Office.interop.word, and the site works fine on my development machine. When I uploaded it to my production ser...
Given the following code:
try
// code1
try
// code2
catch ex as exception
end try
// code3
catch ex as exception
end try
Are there any side effects to naming the two exception variables the same or should they have different names?
...
Hello,
I'm trying to create a Workflow that need to access a few WCF services.
Everytime that I try to add a specific WF In receive de following error :
Error 1 Unable to resolve the type 'http://schemas.microsoft.com/netfx/2009/xaml/activities:OutArgument(Dictionary)' referenced by Property 'GetParameterSetResult'. Ensure that the ...
I've written some code to handle an event as follows:
AddHandler myObject.myEvent, AddressOf myFunction
It seemed that everything was working at first, but when I ran the debugger, I discovered that oftentimes, myFunction would run several times each time myObject.myEvent fired. I figured out that I had allowed the code to add the ev...
say your silverlight area on a webpage is 200px by 200px.
you open a child window, is there a way to make it moveable outside the 200x200 silverlight area?
or say you drop down a combo box, let the drop down go out side of the 200x200 aea?
Thank you
...
I am encountering a strange problem when attempting to execute a DELETE query agains a SQL Server table using VB.NET, SQL Command, and Parameters.
I have the following code:
Try
sqlCommand.Transaction = transaction1
sqlCommand.Connection = conn
sqlCommand.CommandText = sqlQuery
sqlCommand.Parameters.Add("@userID", S...
I have a class that has purely static Methods and properties. I am calling an async method on the class "Load" that asks a web service for a chunk of data, which then fires an event that executes the return method, "LoadCompleted". I have no idea how long the call is going to take (the difference between calling the "Load" method, then ...
No coffee. Brain. Not. Functioning.
I have this linq query here:
Public Function ListAllVisitDates() As List(Of SelectListItem)
Dim visitdates = db.SchoolVisitDates.Select(Function(t) New SelectListItem() With {.Text = t.VisitDate, .Value = t.VisitDateID}).ToList()
Return visitdates
End Function
It returns a long date of MM d...
Recently, I've been running some tests with C++ and VB.net to compare execution speeds. In the last thread I posted, I talked about how I had encountered the fact that C++ was executing just as fast as VB, but got that issue resolved. Now I'm hitting my head against another wall:
I had made a DLL for VB.net to test out this theory and c...
Having problem understanding Delegate error. Error says expression expected, How do I fix? Thanks for any help.
Here is the offending line (#259)....
mylist.ForEach(Delegate Function(P As linkItem) As System.Char[] )
Here is the entire code.
<script language="VB" runat="server">
Function sectionTitle(ByRef f As String)
...