Hi,
I'm trying to draw aero-styled glowing text in a .NET StatusStrip with a DrawThemeTextEx class I found. This is my current code which I use as a renderer for the StatusStrip:
Class GlassStatusRenderer
Inherits System.Windows.Forms.ToolStripProfessionalRenderer
Protected Overrides Sub OnRenderToolStripBackground(ByVal e As System.Wi...
Does anybody know the solution for this? I create an exe file of my software. After first installation I have to disable the exe, so it cannot be run again because when someone purchases the software from me they can install it only once.
...
Hi,
I am using following code to get directory info. it works well if I search topleveldirectory.
But when i search alldirectories, it reaches system level information and throws error.
Is there any way to avoid searching system level information folder?
Thanks
Imports System.IO
Public Class Form1
Private Sub Button1_Click(ByVal s...
I want to filter records dynamically on user choice. The user may choose to show the debit amount greater than credit or credit amount greater than debit. Accordingly I want to put a condition similar to either totDebit>totCredit orTotCredit>totDebit`
Dim query = _
From product In Bills.AsEnumerable() _
Group product By ...
Hi,
I'm trying to add a feature in a winforms vb.net application i'm writing that would listen to global keyboard input for specefic user entered strings and replace them with another string (all done while the user is typing). In other words, i'm trying to achieve something similar to the autohotkey command:
::tyvm::Thank you very muc...
This is in ASP.NET. We are using a ExtJS frontend, and have our own VB.NET controls to make all the Ext Forms and stuff. However, I hope this can be done in plain javascript. There is already some Javascript on the page for the 'Test Connection' button click and handling the result.
However, I need validation on the screen to make sure ...
I have a gridview that I would like to be able to bind to several sqldatasources, but still use template fields. Each datasource is different and would have different columns so I'm not sure how to go about this. Is it possible to define a set of template fields or overlying template per datasource?
...
Dear All,
I have a small requirement in VB.NET and that is to fill an array with values retrieved from a table. That is i have a table called "user_roles" and that is having columns called "role_id" and "role_name". In the load event of the form, i want to execute a procedure and populate all the items (role_id) from the table "user_rol...
I'm helping out a colleague on this one so if I'm missing some details that's why.
We have an asp.net 3.5 web application calling a WCF service. Originally the app used a "Web Reference" to register the service however after having some trouble and burning an incident with Microsoft their solution was to replace the "Web Reference" wit...
I have written simple code to determine country location using the suffix on the url eg. .cn, .se, .br etc.
Does anyone have any ideas or even if its possible to determine country or location using urls that end in .com or .net?
I was just reading up on something and found online apps that can determine location/country from the ip so ...
My datagridview flickers and is very slow while loading. I reflectored the datgridview from Microsoft and discovered that there is a back buffer property which is not visible from the winForm. How do I set this property?
...
In a followup to another question I posted. I know it is possible to get a value indicating if the current system timezone is in daylight savings time. However, is it possible to specify some other timezone and determine if that timezone is in DST?
...
I am trying to import an excel file using asp.net and C#. I found an example in VB, but it is using something called "Server.MapPath" which is not resolving to a namespace. I am on .NET 4.0, C#, and windows XP. I found a "HttpServerUtility.MapPath", but I don't know if this is the equivalent for IIS7?
C#
public OleDbCommand ExcelCon...
I have a VB.net program that I have reading a text file, what is the best way to put the text file into VB to be able to check if a string is on one of the lines in a text file, sample code would be helpful.
...
I am working with dev ex controls and on a menu bar item there isnt a property for setting the button to Visible or not Not Visible.
Can you add properties like this to pre made controls? If so how would you do it?
...
How can I map properties of a type with no NHibernate mapping?
How should I manage the dependencies on old data access logic during the transition?
The application uses ADO.NET to invoke sprocs for nearly every database operation. Some of these sprocs also contain a fair amount of domain logic. The data access logic for each domain e...
Microsoft Access queries with somecolumnname = [?] do not show up in the list of Views in the New DataSource Wizard in Visual Studio.
The query works perfectly from within Microsoft Access by just prompting for the values of the parameters.
The columns of the query should populate labels on my form based on the values in a couple textb...
I'm writing a class library in .NET that wraps a COM dll and exposes specific functionality to be consumed by other .NET code. The COM library has several enumerations defined and I've used some of the enum types as parameters like so:
//C#
public void TransactionTypeSetByEnum(COMComponent.TransactionType transType)
{
this.Transact...
We have a big Form class that we like to split into peaces using partial class approach
That could be done by manually modifying a project file, and adding MainFormPN.vb entry
<Compile Include="MainForm.vb">
<SubType>Form</SubType>
</Compile>
<Compile Include="MainForm.Designer.vb">
<DependentUpon>MainForm.vb</DependentUpon>
...
Hello All,
I'm getting an invalid cast exception but I'm not sure why, here is the list of my conversions.
SQL -> VB.NET
char(4) -> String
varchar(50) -> String
tinyint -> Integer
char(1) -> Char
bit -> boolean
smallint -> Integer
smallmoney -> Double
int -> Integer
datetime -> datetime
Thanks in advance for your help
...