I am creating a windows application using VB.Net and this application will take a SQl create .sql file as a parameter and will return all fields and their data types inside in a list or array.
Example:
USE [MyDB] GO /****** Object: Table [dbo].[User] Script Date: 07/07/2009 10:16:48 ******/
SET
ANSI_NULLS ON GO
SET QUOTED_IDENTIFI...
What is the VB.NET keyword equivalent of C# "volatile"?
If there is no keyword what mechanism is the equivalent?
...
Hello everybody.
All my questions in this topic related to asp.net 2.0
While working on some old project when i first opened it Visual studio asked me if i want to convert project from asp.net 2.0 to asp.net 3.5. Is it safe to chose yes ?
If i chosen no in the previous question, how can i later still convert it to asp.net 3.5 ? (Visual...
i have used following code to repeat a process creation/close iteratively
dim vProcessInfo as new ProcessInfo
For i= 1 to 100
dim p as new Process
vProcessInfo.Arguments = "some"+i.toString()
p.StartInfo = vProcessInfo
p.Start()
p.WaitForExit()
p.Close()
Next i
the above code worked for me successfully. but it takes too much time for ...
Hi,
I'm trying to design a windows form application. By default, .NET had put Tahome 8,25 on toolbar and Microsoft SansSerif 8,25 on everything else. To improve general look and feel of the forms I'd like to change them.
Which font family should I use as a default? And what size should they be?
For:
Classic data input form (label + te...
Hello! I am new in ASPNET. I am having a problem returning a default value for a dropdownlist. When a user select another value for example
(Names- Value)Private - 1; Friends - 2; Public - 3; (not binded to database but hard coded)
When a user select a value and saved it to a database. How can I return
a new dafault value for a dropdo...
is it possible to choose different colors of different pixels on the background property of a form in vb.net?
i would like to clarify that i do not want to use an image to color the form.
why do i need this? the short answer to that question is: i have a transparent form that will need to detect all the black colors behind it
...
I have a WPF ListView that I am trying to filter within a BackgroundWorker. My code is shown below:
Dim Worker As New BackgroundWorker
AddHandler Worker.DoWork, AddressOf Me.FilterAsync
Me.TextBoxText = Me.TextBox.Text
Worker.RunWorkerAsync(Me.TextBox)
Private Sub FilterAsync(ByVal sender As Object, ByVal e As DoWorkEventArgs)
'
...
I am creating a custom Label control (by simply Inheriting the standard Label control and re-painting the background and text) because I need a very specific background and border. In the constructor of the control, I set the AutoSize property to false so I can have a standard default size for the new label.
Public Sub New()
/*Se...
I've created another header row for a gridview programmatically. In this row I have a few controls including a label that I want to align all the way to the left of the cell. The one cell has a columnspan of 7 so it runs across the entire gridview. how do i align that label programmatically??
Dim cell As New TableCell
Dim lblfilter ...
I am new to ASP.NET and am trying to convert a web application from using hard-coded deployment locations (ie, /base/path/index.aspx) to discovering them at runtime. If I use Response.Redirect(), I can express the path as '~/index.aspx' and, at runtime, ASP.NET will build the correct URL to send the redirect to based on where the web ap...
How do I display a wpf window in my application when the application resides in a dll, not an exe? This project will be compiled to a dll and loaded into another application as an add-in.
In WinForms, I would just have the following code:
dim frmUserData as frmDataEntry = new frmDataEntry
frmUserData.ShowDialog()
How do I accomplish ...
We've got a number of gridviews that we're populating with data from an ADABAS datasource via some middleware that, unfortunately, gives us back lots of arrays of stringBuilder that we turn into a datatable, set as the datasource for a gridview, then bind.
It's convoluted, but I'm in a situation where I need to be able to update the gri...
2 Questions actually:
I know i must use Stored Procedures as much as Possible, but i would like to know the following please.
A: Can i get a SQL Injection attack from a SELECT statement such as (Select * from MyTable) ?
B:
Also, can i get a SQL Injection attack when I use the SQLDataSource in ASP.NET?
...
Hello,
I've got a categories table, and sub-category tables 3 levels deep (in the database they're called Categories, SubCategories, SubSubCategories, and SubSubSubCategories).
On the presentation side, I am curious what the best way is to manage those. The categories form a tree/hierarchy structure, so a tree control of some kind sou...
Hi guys,
Am in the process of architecting a new windows forms application, and I intend to use Visual Basic 2008 and SQL Server Express 2005. This is my first application in .Net and I really want to observe the best OOD & OOP principles to create an application that is easy to maintain and extend (add new functionality). My issue is i...
Am I being dense here? StreamReader.ReadLine states that:
A line is defined as a sequence of characters followed by a line feed ("\n"), a carriage return ("\r") or a carriage return immediately followed by a line feed ("\r\n")
So, why doesn't this work as expected?
' Server
Dim tcpL as New TcpListener(IPAddress.Any, 5000)
tcpL.Sta...
This should be pretty easy, but it throws VS2008 for a serious loop.
I'm trying out WPF with MVVM, and am a total newbie at it although I've been developing for about 15 years, and have a comp. sci. degree. At the current client, I am required to use VB.Net.
I have renamed my own variables and removed some distractions in the code b...
I have a bunch of PDFs that I'm just trying to open, resize the page, and then save. I'm also hoping that the file sizes will shrink significantly doing so. I am using iTextSharp and the resizing works just fine, but the file size is nearly identical, ever so slightly larger in fact. Here's the function I have now:
Dim reader As ...
So i am converting a metafile (EMF to be exact) to a jpeg or gif (doesn't matter as long as it's compatible with browsers) and when I do the conversion, all of the transparent pixels turn black. I have no idea how to do this in GDI+ but here is the method I am using to save the file:
Dim Img As System.Drawing.Imaging.Metafile = New Sys...