In visual basic , when you create a label in form view (via click and drag) is it possible to make the label have both a string and a variable included in it?
*
turns=1
label1.text = ("Turn:"(turns))
*
for example , so that label 1 will display
*Turn 1*
...
I am writing a program that and like to implement data verification system. It needs to return a unique string for any value entered. My question boils down to: is it possible for an AES function to return the same value for two different entries? The source values will becoming from data held on a magnetic stripe card.
more details
...
I have an XML File that I am processing using LINQ. I want to basically serialize the XML data into custom objects but don't know how.
Simplified XML
<Data>
<Group id="1">
<Child id="1"/>
<Child id="2"/>
<Child id="3"/>
</Group>
<Group id="2">
<Child id="1"/>
<Child id="2"/>
<Child id="3"/>...
Hi,
I was reading a couple of articles a while back which I think described a behaviour where you can, in a .net application (specifically VB.net), allow an exception to occur, and then handle it in some kind of application-level exception handler, as opposed to within a Try/Catch block.
My google-fu is weak at the moment, so I'm not hav...
Ideally I'd like to be able to copy/move between an accessible folder on my local drive and a network share that I don't have permission to access (but the application would).
I am using impersonation to give me access to the files in the network share but using System.IO File.Move or File.Copy forces me to use the same credentials for ...
I have a program that contains .dbml files. I created this file with Server Explorer.
I want to execute this program on other computers but I seem to be having issues with dependencies because I use LINQ.
How can I fix this?
...
I am trying to access settings in my config file, which is a series of xml elements listed as such:
<databases>
<database name="DatabaseOne" Value="[value]" />
<database name="DatabaseTwo" Value="[value]" />
</databases>
Now I want to access it. I have set up classes like so:
Public Class DatabaseConfigurationHandler
Inherits Con...
I wrote a program that allow two classes to "fight". For whatever reason C# always wins. What's wrong with VB.NET ?
static void Main(string[] args)
{
Player a = new A();
Player b = new B();
if (a.Power > b.Power)
Console.WriteLine("C# won");
else if (a.Power < b.Power)
Cons...
I have a table with many values inside of it that might have single quotes around them. I need to create a duplicate table without those single quotes. I can't modify the original table as I need to use it, 'as-is' later.
I've done this with a table.Clone and using a foreach to loop through the rows and columns removing single quotes ...
I am using a data grid view to display information from a database and I can't get it to update correctly.
I can see the data from the database but when I change information and save it it changes the entire column's information. My rows need to have different values in the same column so this is a problem.
-Here is my code so far, what...
Hi, i'm developing .NET app. and using some vb6 common controls
in design mode I can create image list and attach it to toolbar control
but when I'm programatically adding toolbar buttons
Toolbar.Buttons.Add(, "tbsave", "Save", MSComctlLib.ButtonStyleConstants.tbrDefault, toolbarImages.ListImages(1).Picture)
get exception "Invalid Key...
I am looking for how to implement a toolbar similar to the one used here when you add a new question, this toolbar should format the text entered in my text box and allow me to make it Bold, Italic, choose size and fond and highlights, colors as well...
One important thing, I want one that is both supported on firefox and IE, discountasp...
is it possible for a VB.net function with a return type of integer to return null ?
...
Possible Duplicate:
Storing Images in DB - Yea or Nay?
Hi
At the moment each Company on my website have 1 picture they can add to their profile.
I save that image into the database....its their Company Logo.
Now i want to allow them to add more pictures. Now i don’t know if i must save it all in the database or save it in fo...
I am using a standart .net 2.0 Gridview which uses an XMLDatasource to populate the Grid. The Data property of the XMLDatasource is set dynamically which allows the gridview to change based on input.
All this works fine however I am having problems with paging...
I have set the AllowPaging Property to "true" and set the PageSize Proper...
I have a form that have many text fields and all are being validated, I also added the NiceEdit plugin to be able to format text in my text areas, but it is raising errors like:
A potentially dangerous Request.Form value was detected from the client
Now I can simply go to the top of the page and in the page directive add ValidateReques...
Hello,
I need Week-Start-Date and Week-End-Date for particular Week number in a year (vb.net or SQL Server)
For example, if weeknumber=1 and year 2009, I should get:
StartDate=1/1/2009
EndDate=1/3/2009
if weeknumber=2 and year 2009, then:
StartDate=1/4/2009
EndDate=1/10/2009
Actually I got week number by using datepart(wk, Date) in...
What is the best way to clear an array of strings?
...
Using VB.NET, is there a way to pass a reference argument when invoking a function in a dll.
Suppose I want to pass arg2 as a reference argument, how would I do that?
method.Invoke(obj, New [Object]() {arg1, arg2, arg3})
In other words I want to point arg2 to something else within the invoked function.
...
I have a situation where I have several listbox controls on the same asp.net page. They are currently autosized to keep data from truncating. However, I would like to be able to determine the width of the largest listbox and then alter the size of the other listboxes to be the same.
The question is... How can I access the size of the...