Hi
I've created a custom control in asp.net, if I drag it onto another web page it works fine, as expected, however I want to use it dynamically as in
Dim lCustomControl as new cldButton
However I can't work out how to do this, the compiler does not recoginise the cldButton as a control.I will add it to the page latter in the cod...
I have a process that's going to initially generate 3-4 million PDF files, and continue at the rate of 80K/day. They'll be pretty small (50K) each, but what I'm worried about is how to manage the total mass of files I'm generating for easy lookup. Some details:
I'll have some other steps to run once a file have been generated, and ther...
I'm running a simpler version of this regex:
<p\s*>(?:&(?:nbsp|\#0*160|x0*A0);|(?:<br\s*/?>)|[\s\u00A0]+)*</p>
On this string:
<p>paste in some bullets from word...</p><p>Firefox:</p><p>Bulleted list test:</p><ul><li>One </li><li>Two <ul><li>Sub item one </li><li>Sub 2 <ul><li>Subsub item1 </li><li>Subsub2</li></ul></li><li>Sub3</li>...
Anyone have some good examples (newb worthy) of what bulk inserting should look like or a great way to explain it, utilizing the whole LINQ to SQL method?
I've got a DB with about 7 tables I'm trying to link some .net pages to and as much as I can qry most of these tables, I'm having a heck of a time inserting into them. One complex sc...
Hello
I'm trying to build a scientific calculator with vb .net, except it is vista glass :-p
I basically want the user to be able to enter an equation like SQRT(5 * 6) / (2 ^ 4) and then I want vb to use system.math to solve it. If I write this in my code, vb is able to do it, so how could I do this at runtime.
Thanks
...
i am writing an application that will need to store less than about 1mb of data. this data will be read and edited by the user. this data will be very simple ascii data. the application is in vb.net on a windows-form. the data will be stored locally on the person's computer. i have several questions.
what kind of encryption method shou...
Hi guys,
I have a gridview in which I have set datasource as datatable. Whatever update I make to the gridview, it should reflect only in datatable not to database. When I click update
I have to get the row number of particular row which I want to update. How can I get the row number in rowupdating event of gridview inorder to update da...
Hello. I've read about this operator on a book but being that I don't use databases that much, I cannot think of any circunstance where I'd want to get a single item. I mean, I can have a set of conditions, but then I'd use First or Last, not Single. What is the difference? What is the point of having it return just a single item, and th...
Is it really impossible to create an extension method in C# where the instance is passed as a reference?
Here’s a sample VB.NET console app:
Imports System.Runtime.CompilerServices
Module Module1
Sub Main()
Dim workDays As Weekdays
workDays.Add(Weekdays.Monday)
workDays.Add(Weekdays.Tuesday)
Console.WriteLine("Tues...
Hello. This question might sound a bit stupid but here it goes.
I have two functions that can be called at any moment. The first function takes a snapshot, and the second one analyses the data taken from that snapshot. Of course if the user tries to analyse the snapshot before taking it, my application should throw an exception. I know ...
Simple question really. No elaboration required.
I have found similar tools for Java, C#, C++ and other languages but not VB.Net.
Thanks
...
Hello. I have two simple questions about regular expressions.
Having the string "$10/$50", I want to get the 50, which will always be at the end of the string. So I made: ([\d]*$)
Having the string "50c/70c" I want to get the 70, which will always be at the end of the string(i want it without the c), so I made: ([\d]*)c$
Both seem do ...
I have created FTPwebRequest to write a file from one of my Windows 2003 share hosting account to one of my Linux hosting account.
This is the code, I use to upload the file between servers (domains)
Public Sub uploadFileUsingFTP(ByVal CompleteFTPPath As String, ByVal CompleteLocalPath As String, Optional ByVal UName As String = "UserN...
I looked on the JSON.org website but I couldn't find any JSON library for Visual Basic .NET, does one exist? Did anyone have any success using Json.NET with VB.NET?
...
Hello. The way I develop may not be correct, any advice welcome.
At the moment I have a WPF application that uses a SQL2008 database. I have a copy of the database on a laptop and on my home machine. My application is versioned using SVN and I am obviously able go from the work laptop to the home machine and update/commit as required to...
I am working in vb.net and i have a simple requirement.
I have added a MDB file to a dataset and it contains 21 tables.
I have a datagridview and a combobox on my form.
I was able to get the combobox populated with the table names available in the dataset by iterating through dataset.tables.
Now i want to add the feature where the us...
I have a VB.net class registered for COM interop which I'm instantiating within an HTML page using the following code:
<script type="text/javascript">
var MyClass = new ActiveXObject("Namespace.TestClass");
</script>
I can call methods on it just fine, but suppose I want to set a javascript function as a property, like so:
MyClass.Te...
In VB.NET, why can't I see a member of a structure when I make it a nullable type?
Example:
Public Structure myNullable
Dim myNullVar As Integer
End Structure
Sub Main()
Dim myInstance As myNullable 'This works.
Dim myNullableInstance? As myNullable 'This works.
myInstance.myNullVar = 1 'This works.
...
Very simple question (surprisingly I can't find a similar question anywhere): how do I escape form data in VB.net? I have various lines like this:
Dim query As String = "exec sp_Message_insert @clientid='" + pClientId + "', @message='" + pMessage + "', @takenby='" + pUserId + "', @recipients='" + pRecipients + "'"
If I use an apostrop...
Using Excel 2007, is it possible to change the transparency of chart grid lines using VBA or VB.NET?
I have the following code, which throws an exception on the last line:
Dim axis As Excel.Axis = chart.Axes(Excel.XlAxisType.xlCategory)
axis.HasMajorGridlines = True
axis.MajorGridlines.Border.Color = Color.Gray.ToArgb
axis.MajorGridlin...