I'm having the exciting task of finding out about VB.NET's <> and Not operators. Not - I'm assuming by my small use of it - is the functional equivalent of ! in languages such as C# and <> being equivalent of !=.
In VB.NET a common problem is doing Boolean expressions against objects that don't have a reference, it appears. So if we d...
I have used the Gridview_PageIndexChanging event in asp.net.i have used the code like this:
gridFileDetails.PageIndex = e.NewPageIndex
During the run time when i clicked the next page,it generates an error:
An exception of type
'System.InvalidCastException' occurred
in FFK.DLL but was not handled in user
code
Additional...
I have a Web Service Application Project in Visual Studio 2008. This is supposed to be an ASP.Net 2.0 project and at some point this has been rebuilt using 3.5.
VS has kindly added in project level imports to System.Linq and System.Xml.Linq, but when I have re-targeted the project at 2.0 these project level imports have remained.
Beca...
Sounds simple enough, but its not working. In this example, I want to set the values of 3 fields to equal a 4th. I could do something like this....
Dim str1 As String = "1"
Dim str2 As String = "2"
Dim str3 As String = "3"
Dim str4 As String = "4"
str2 = str1
str3 = str1
str4 = str1
... but that's kind of wordy (yeah, I know, vb is w...
Trying to use a call recording API using sockets. We have the API documentation but the samples are all in C++.
How would I declare the following in vb.net or c#???
#define SIF_GENERAL 0x08000000
#define SIF_CONFIGURATION 0x08010000
#define SIF_ARCHIVE 0x08020000
#define SIF_SEARCH 0x08030000
#define SIF_REPLAY 0x08040000
#define SIF_S...
I am creating a Kiosk application. I have it full screen and I am drawing directly on the form:
Private Function CreateHeader(ByVal headerText As String) As Boolean
Try
Dim oGFX As Graphics = Graphics.FromHwnd(hwnd:=_oP.Handle)
Dim oRect As Rectangle = New Rectangle(x:=0, y:=0, Width:=_screenSize.X, Height:=150)
...
I have been a VB.net developer for a long time and changed recently to C#.
When I was using VB.net, to call user settings, I just need to create a new setting using the designer and then call it from code with the My namespace.
Here's the code
My.settings.anysetting
I can change or get data from it.
However in C# the My keyword doesn't w...
Hi guys, I have a repository class that defines some basic Get/Save/Delete methods. Inside these, I use NHibernate to do the work on my business entities. For example:
Public Class SecurityRepositoryNHibImpl : Implements ISecurityRepository
Public Function GetUser(ByVal UUID As System.Guid) As Entities.User Implements ISecurityRepos...
I'm using WPFToolkit's Datagrid control. I can populate the datagrid, but I'm having trouble with the DataGridHyperlinkColumn. I would like it to visually display the link as the Person's name, but for the link to go to whatever UriLink's value is.
How can I do this? What am I doing wrong?
Xaml:
<dg:DataGridHyperlinkColumn Header...
Very periodically, some of our forms in our MDI vb.net project will return me.parent as nothing. I've never seen this while debugging, but it does cause an un-handled exception on our client machines - and the form that they have open varies from case to case.
Is there any sort of event, short of a 'me.parent = nothing', that can cause...
What's the best way to prevent javascript injections in a VB.NET Web Application? Is there some way of disabling javascript on the pageload event?
Recently, part of the security plan for our vb.net product was to simply disable buttons on the page that weren't available to the specific user. However, I informed the guy who thought of ...
The app I am writing deals with utility service addresses, and right now I am forcing the user to know enough to separate the parts of the address and put them in the appropriate fields before adding to the database. It has to be done this way for sorting purposes because a straight alphabetical sort isn't always right when there is a p...
Is there a simplistic reference for all preprocessor directives?
...
I have an ado.net statement I want to convert to use NHibernate:
Dim sql As New StringBuilder()
sql.AppendLine("SELECT r.RoleId, r.RoleName ")
sql.AppendLine("FROM dbo.aspnet_Roles r ")
sql.AppendLine("WHERE r.RoleId IN ")
sql.AppendLine(" (select roleID from dbo.MenuRole where menuId = @MenuId) ")
sql.AppendLine("Order By r.RoleName")...
Are there any good programs out there to compare to compile .NET assemblies?
For example I have HelloWorld.dll (1.0.0.0) and HelloWorld.dll (2.0.0.0), and I want to compare differences how can I do this?
I know I can use .NET Reflector and use the Assembly Diff plugin. Are there any other good tools out there to do this?
...
How can I break a large mp3 file into one or more mp3 files, and still have each part playable in a media player?
...
My Application ( Vb.Net) is to scan Access DB forms and find out the Activx control if present and it works fine. But my problem is...
In some DBs we have tables with mapping path to specific locations (Table Property->Linked Table Manager) and when we relocate these DBs then we need to change the path manually otherwise it will show a ...
i have used this code.and it shows an error:
Dim row As GridViewRow = CType(CType(e.CommandSource, Control).NamingContainer, GridViewRow)
The error is as folows:
An exception of type 'System.InvalidCastException' occurred in FFK.DLL but was not handled in user code
Additional information: Unable to cast object of type 'System.Web.UI.W...
Is there any tool available which can generate data-flow diagrams and entity relationship diagrams directly from VB.NET source code?
...
I have two separate web services, the first configured to extract data from a live database, the second from a test database.
When consuming these web services from an application the object returned is a MyMessageData class which is defined in the web service.
In the application I would like to instantiate a empty the MyMessageData (f...