Hi,
I have a fairly standard inheritance situation in my current LINQ-to-SQL project. I have a base class called 'Party' and classes called 'Individual' and 'Organisation' which inherit from it.
What I want to achieve seems (and probably is) fairly simple. I want to return a list of 'Organisations' sorted by Company Name. The problem i...
This is a strange one...
In a windows forms app (VB.NET/VS 2005) I have the need to occasionally check if the application DVD is inserted. In my production machine (and in the majority of our clients) this code takes less than an second to execute. But in some machines, it takes about 8 to 10 seconds. I couldn't find any common ground on...
In C# some of default name space such as System.Collections are listed without typing in using blah. In visual basic, they are not imports for you. Is there a way to force vb to auto imports some of default name space or VB work differently than C#?
...
I have a problem with Gridview sorting that is similar to others but I'm binding to a collection object as opposed to a data table.
The existing business rules and data access layers of an application follow the pattern of having an object and, if you need a collection of objects of that type, to have another class inheriting Collection...
I have a WinForms application (I'm using VB) that can be minimized to the system tray. I used the "hackish" methods described in multiple posts utilizing a NotifyIcon and playing with the Form_Resize event.
This all works fine aesthetically, but the resources and memory used are unaffected. I want to be able to minimize resources when ...
I have a unique development situation and would like some input from others.
I have a situation where I need to load loose xaml files within a rich client application.
A given loose xaml file may have references to an assembly not currently loaded in memory
so the referenced assembly is loaded before the loading the loose xaml. The loo...
I am evaluating VintaSoft .net control and Atalasoft DotTwain Image Capture. And I am very but very lost with the most of the definitions and keywords.
So I am asking this because I think I am in Lala land. Is it possible to listen or have the scanner tell my app that there is a scanned image and I can process it?
The idea is to have a...
I've been beating my head against this wall for quite some time now, so I thought I'd ask some experts.
I need to send an xml string from one computer to the next. I would like to format the xml something like this:
<xml>
<author>Joe the Magnificent</author>
<title>Joe Goes Home</title>
</xml>
Can anyone provide some assistance?...
I am calling an unmanaged C++ dll that expects a char* as one of its parameters and I want to push a byte[] into it. The project is written in VB.NET.
What type of marshalling will work for this?
...
Hi, i have an ASP.net web site ( http://www.erate.co.za ) version 2.0.
When someone open my website in Firefox everything looks different.
Why is that and how can i make it compatible?
Please help!
Etienne
...
What is the best way to structure a VB.NET windows forms application so that code can be reused and the app can be extended easily.
I used to create lots of new forms. This lead to lots of repeated code and forms which did similar things.
Now, for forms which do similar jobs, such as view/edit/delete items from a specific db table, I c...
Hello,
The title says it all really, is there a built in VB.NET function to format a number as an Ordinal?
Or do I have to write my own?
There isn't in C# so I'm thinking their isn't :(
Thanks
...
Is it possible to do something like this:
<% Dim foo as string = "bar" %>
<script type="text/javascript">
var baz = <%=foo %>
</script>
Where the <script> tag is embedded on my index page?
...
I'm using jQuery to handle all my ajax needs for an ASP.NET site coded in VB. When I use the built in $.ajax function to POST to a code-behind function and there is an exception, it simply exits the function, and shows an error on the client side.
Besides making debugging difficult when coding, the bigger issue is that the Application_E...
This is probably a no brainer but...
I've just opened a solution in VS2008 and for some reason the compiler doesn't recognised previously compiled errors.
I hit build and I get 100s of errors :
Name 'IIf' is not declared.
Name 'IsNumeric' is not declared.
Name HttpUtility is not declared
etc..
Think this must be something to do w...
In ASP.NET, a ListBox has a Rows attribute I can set to say how many rows to show. A DropDownList, though, doesn't. Is there any way I can set the maximum number of rows a DropDownList should display? Code? Markup? CSS?
...
I'd spent several years in the day job with VB.net. Out of work I'd flick between it and C# for different projects/hobbies.
Now that the day job is almost fully C#, VB.net is starting to look foreign and a little removed. Does any beg to differ?
Should I keep my delve back to VB.net for any particular scenarios? I mean, does it win ...
I'm having some trouble figuring out how to use more than one left outer join using LINQ to SQL. I understand how to use one left outer join. I'm using VB.NET. Below is my SQL syntax.
T-SQL
SELECT
o.OrderNumber,
v.VendorName,
s.StatusName
FROM
Orders o
LEFT OUTER JOIN Vendors v ON
v.Id = o.VendorId
LEFT OUTER JOI...
I have both Fruityloops and Propellerheads Reason software synths on my Windows PC.
Any way I can get at and script these from either Visual Basic or Python? Or at least send Midi messages to the synths from code?
Update : attempts to use something like a "midi-mapper" (thanks for link MusiGenesis) don't seem to work. I don't think Rea...
I have classX:
Sub New(ByVal item_line_no As String, ByVal item_text As String)
' check to ensure that the parameters do not exceed the file template limits
Select Case item_line_no.Length
Case Is > m_item_line_no_capacity
Throw New ArgumentOutOfRangeException(item_line_no, "Line No exceeds 4 characters")
...