Our automatic crash-report system has started sending in more and more reports of this kind of crash:
System::Windows::Forms::Application::ThreadException event occured
SENDER: System.Threading.Thread
EXCEPTION: System.ArgumentException
MESSAGE: Font 'Arial' does not support style 'Regular'.
SOURCE: System.Drawing
CALL STACK
at Syst...
I am using ASP.NET.
I am not sure what you will call this but I would like text to be displayed in my text box called txtName. So when the form load the text box will have faded text that will say "Required". Then when the user click inside the text box i want the user to place a value inside the text box.
Is this possible in ASP.NET?...
I have been asked to fix a Community Server forum where thousands of users were created via a script. All of their profile pages are SEOspam for prescription drugs, etc. The forum was not using email verification or admin approval for newly registered users. I turned on the latter for now, but captcha would be nice.
My problem is that i...
I have a list view control that users can add items to but I need to be able to tell what item they have selected.
...
I have developed a custom DirectX UI library equipped with everything from buttons to a gridview.
I need a screen-layout editor of some sort. It just takes too long to do it by hand, whether through a config file or hard-coding.
I could spend a month or two developing a DirectX editing utility, but I don't have a month or two to spen...
I'm using VB.Net, and I have a set of data which I have to able to filter through fairly quickly. Basically, the program is like google sugest, but instead of a drop-down menu, I'm using a listbox. When a user enters a word, I compare the word using LINQ and filter those that contain the user's input. The data are all strings of variable...
I need to generate random strings in vb.net, which must consist of (randomly chosen) letters A-Z (must be capitalized) and with random numbers interspersed. It needs to be able to generate them with a set length as well.
Thanks for the help, this is driving me crazy!
...
We currently have a asp.net website with some modules developed in VB.Net & some in C# (not just classes but also individual aspx pages and code behind). We figured we wanted to move to web application model as we need to implement CI with TFS.
The problem :
When we create a C# web application, copy the files from website & say convert...
I'm aware that questions like this have been asked before and I doubt it's possible, but I just wanted to make 100% sure that it isn't.
In VB.net or C# (either language, it doesn't matter), I want to cast a variable to a type represented by another Type variable. Here's an example of the kind of code that would be needed in C#:
Object...
I need to save a setting which is then available to all users of the application on the given machine. It needs to work on Vista/Win 7, and the application won’t be started as administrator.
Can’t Save to program directory as
the Program Files folder is protected
on Vista
Can’t save to HKEY_LOCAL_MACHINE as
that’s protected too
Can’t s...
I'm trying to add a reference to the GAC version of System.Xml in a Visual Studio 2008 web site project. I right-click the project icon in the Solution Explorer, and click Property Pages. Under the References tree option, I click the 'Add' button on the right. I navigate to System.Xml in the .NET tab, and double click it (the Path it ...
Hi,
I've got an assembly (loaded as ReflectionOnly) and I want to find all the namespaces in this assembly so I can convert them into "using" ("Imports" in VB) statements for an auto-generated source code file template.
Ideally I'd like to restrict myself to top-level namespaces only, so instead of:
using System;
using System.Collecti...
I'm trying to load up a YouTube page using Visual Studio 2008 and a very simple Visual Basic project that contains just a WebBrowser. I want to load the page when the form loads:
Private Sub Form1_Load(ByVal sender As Object,
ByVal e As System.EventArgs) Handles Me.Load
WebBrowser1.Navigate("http://code.google.com/apis/youtube/...
While debugging into view i did a quick watch and i found that for "ID" its showing a GUID due to that i had to change the name of the property in my model as i had property by the name ID, i had problems when binding the value from the session to the textbox.
Is there any other way besides changing the name of the property?
...
As resident techie I have been charged with teaching some colleagues VB specifically for use with Excel.
My main duties involve MySQL and Objective-C and haven't touched VB since University. While I'm not worried about the prospect of learning VB (how hard can it be, right?). I have no clue on where to point my "students" to start.
Any...
Hello Users,
I want to create a pdf file from Binary data. I looked around and found examples using iTextSharp by fetching data from the database.
But almost all of them show how to display in the browser. I want to create a file like
pdffromDB.pdf instead of displaying as shown below
doc.Close();
Response.BinaryWrite(MemStream.GetBuf...
I am working on ASP.net using VB.net. I need to load a page in a new window on button click.
Can someone suggest the code for the same.
...
Is this possible? It gives me an error, and I had previously thought it could work for folders and drives and stuff like that as well.
Icon.ExtractAssociatedIcon("C:\") did not work when I tried it, and threw an error.
How can I get the associated icon from EVERYTHING? This is vb.net
...
There is Aliases feature in C# that allows to work with different assemblies, containing equally named entities (classes, structures, enums). It is activated when you choose an assembly an referenced assemblies list. But I can't see any similar in VB.NET project. Is there such a feature in VB.NET? If no, why?
...
Hi,
I am using VB.net for coding.
I am having GridView Control in my application.
<asp:GridView ID="GridView1" runat="server" CssClass="innerGridTable" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="TrainerID"
DataSourceID="TrainerSearchDataSource">
<Columns>
<asp:ButtonField ButtonType="...