all groups > vb.net > april 2004 > threads for tuesday april 6
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Launch default e-mail client with attachment
Posted by Kurt at 4/6/2004 11:57:32 PM
Hello,
How do I launch default e-mail client (Otulook, Eudora...) with attachment?
mailto: does not support attachments and SMTP does not open the default
e-mail client.
Kurt
... more >>
How to open a new browser window in ASP.net?
Posted by Miguel Dias Moura at 4/6/2004 10:44:15 PM
Hello,
i have an ASP.net page with a button. When the button is clicked i want to
open a new Browser window (400x200px) having only the title bar and nothing
else.This browser window would load newpage.aspx in it.
I would also like to know how to create a button to insert in newpage.aspx
an... more >>
ADO Record Set in Multi User Mode
Posted by Prabhat at 4/6/2004 10:41:52 PM
Hi All,
Can any body help me to use the ADO Recordset in Multiuser Environment for
SQL Server DB?
How Can I Restrict User 2 to Open the Same Row which is Opened By User 1 and
I will Display Message that "This Record is being opened for edit"?
Suppose User 1 Open a ROW using SQL "Select * ... more >>
How To Use Nested Namespace [Help]
Posted by Tiraman at 4/6/2004 9:46:03 PM
Hi ,
I would like to use nested namespace .
I have 3 namespace as dll's :
Namespace A
Namespace B
Namespace C
And i want to have some namespace that contain them all , some thing like
Namespace MyComp.A.B.C
Or
Namespace MyComp.A.B or Namespace B.C And so on .... more >>
Gradient window
Posted by Dag G at 4/6/2004 9:40:21 PM
I found this code on the internet. It failed because it seems that line
number 24 is not ready. The parameter lb is not declared. How should I
implement this?
Please help! D.G. Norway
The Code:
01 Private Sub Form1_Resize(ByVal sender As Object, _
02 ByVal e As System.... more >>
Type of a boxed Object
Posted by Klaus Löffelmann at 4/6/2004 9:26:31 PM
Hello,
Assume, I got an instance of a certain class that is boxed in an object. How
can I retrieve the type of the original class only using this object. The
type I get with GetType is always System.RuntimeType; the only reference I
can find is over its FullName-property. Is there another way ... more >>
Delete the files in Temporary internet cache
Posted by yxq at 4/6/2004 9:26:25 PM
Hi,
I want to delete the files in "Temporary internet cache" and "History"
folder, is it ok to use "File.delete"? What are the true path of "Temporary
internet cache" and "History" folder?
Thanks
... more >>
subtracting
Posted by Tom W at 4/6/2004 9:26:05 PM
This is the code ive got for a subtract button
mdcurrentresult -= txtresult.Tex
txtresult.Text = mdcurrentresult.ToString(
mbOperationbuttonPressed = Tru
Now this almost works it subtracts and gets the right answer apart from the fact that it turns everything into a neg... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Updating Data
Posted by Gary at 4/6/2004 9:07:56 PM
I have the following code to populate some textboxes on a form. This query
only brings in one record.
strSQL = "Select * from Contact WHERE sysID = '" & g_sysID & "'"
Dim DA As New SqlClient.SqlDataAdapter(strSQL, CN)
DA.Fill(objDS, "Contact")
Me.txtFirstName.DataBindings.Add("Text", o... more >>
How to determine which node was checked in treeview control?
Posted by yxq at 4/6/2004 8:45:42 PM
Hello
There are checkbox in my treeview, i want to know which node checked? in
which event? How to know which level node?
Thanks
... more >>
Namespace Question
Posted by Tiraman at 4/6/2004 8:34:17 PM
Hi,
I Build my own dll with my own namespace name and i would like to put it in
one place but for the project bin folder
so all of the projects will be able to use it .
i tried to put the dll in this place ----> c:\MyDlls\Test.dll
And i wrote in my aspx file the following
<%@ Impor... more >>
Namespace Question
Posted by Tiraman at 4/6/2004 8:29:48 PM
Hi,
I Build my own dll with my own namespace name and i would like to put it in
one place but for the project bin folder
so all of the projects will be able to use it .
i tried to put the dll in this place ----> c:\MyDlls\Test.dll
And i wrote in my aspx file the following
<%@ Impor... more >>
Include Files
Posted by Jason at 4/6/2004 8:20:19 PM
Hi,
I was unable to find a previous post on this topic. I am
writing a web application which consists of multiple .vb
files. I am not using an IDE like VS.NET. I wish to
compile my code into a DLL later on in the project, but
for now, I'm just running my code by opening it up in
inte... more >>
showing Windows form from code module.
Posted by Ram at 4/6/2004 8:17:34 PM
I have a code module with main as subroutine name.
How to launch a Windows form from here.
Thanks,
Ram
... more >>
ERROR [07002] [MySQL][
Posted by ME at 4/6/2004 7:21:20 PM
I am getting:
"ERROR [07002] [MySQL][ODBC 3.51 Driver][mysqld-4.1.0-alpha]SQLBindParameter
not used for all parameters"
when attempting to run the following code:
Private Sub DataGrid1_UpdateCommand(ByVal source As Object, ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs) Han... more >>
IIS reports SmartNav.htm as a 404 File Not Found, Why So?
Posted by anon at 4/6/2004 7:06:20 PM
IIS is reporting "SmartNav.htm" and "SmartNav.js" in the
/aspnet_client/system_web/1_1_4322/
directory on the web server as FILE NOT FOUND 404 errors.
Does anyone know why IIS is report this as a 404?
Should I place the files above in that said directory to prevent this? I
don't wh... more >>
Datagrid Relation View
Posted by WStoreyII at 4/6/2004 6:58:08 PM
I wish to make a custom view of relations in a datagrid
what i want to do is when the plus sign is clicked instead of showing the
link label
i want to show a grid with the subtable in that area between the selected
grid and the next grid.
however i cannot seem to find a method of obtaing the ... more >>
User controls and relative paths
Posted by Paul Bromley at 4/6/2004 6:52:29 PM
I am trying to get somewhere with user controls and have come up against an
obstacle with using relative paths.
I have a dataset in my user control, and have tried to enter the path with
the following:-
dsResultsTable.ReadXml(Application.StartupPath &
"\Textfiles\ResultsTable.xml")
It d... more >>
Problems in using VS.Net 2003's DataAdapter
Posted by Norton at 4/6/2004 6:38:45 PM
When i try to use OleDbDataAdapter's QueryBuilder, when i type some SQL
Statement "Select Top X .....", it works and display the correct result,
however i cannot generate the select statement successfully....
what can i do?
... more >>
String to DateTime
Posted by nobody at 4/6/2004 5:52:30 PM
I know that given a FormatString and a DateTime you can use
DateTime.ToString(...) to convert the DateTime to a String. My question is
how can you turn that around? Given a String and a FormatString, how can
you convert the String back to a DateTime? DateTime.Parse(...) doesn't use
the Format... more >>
csharp custom controls
Posted by Mark Vergara at 4/6/2004 5:26:39 PM
Hi
Please kindly help me on this Is there any web site that
can guide me through out my code by creating a
custom controls using csharp .Net ?
... more >>
Urgent: Fast way to read Parts of Big Files
Posted by DraguVaso at 4/6/2004 4:53:28 PM
Hi,
I have files I need to read, which contains records with a variable lenght.
What I need to do is Copy a Part of such a File to a new File, based on the
a Begin- and End-record.
I used this functions:
Dim intMyFile As Integer = FreeFile()
FileOpen(intMyFile, MakePathFil... more >>
HELP!! FAST way to read Parts of Big Files
Posted by DraguVaso at 4/6/2004 4:46:34 PM
Hi,
I have files I need to read, which contains records with a variable lenght.
What I need to do is Copy a Part of such a File to a new File, based on the
a Begin- and End-record.
I used this functions:
Dim intMyFile As Integer = FreeFile()
FileOpen(intMyFile, MakePathFil... more >>
DataGrid Display Graphic
Posted by Don Buchanan at 4/6/2004 4:46:11 PM
I'm trying to get a single column DataGrid to display a graphic. I set up
the DataGrid template to display and image. This is what I've tried based on
the example I found:
Dim dgiItem As DataGridItem
For Each dgiItem In DataGrid1.Items
With DirectCast(dgiItem.FindControl("Image1"), We... more >>
Delay
Posted by Babich at 4/6/2004 4:34:18 PM
Hi!
Is there any way to delay some command in VB without using timer control.
something like this:
command1
delay(50)
command2
delay(80)
command3
......
... more >>
Security Exception
Posted by MadCrazyNewbie at 4/6/2004 4:15:50 PM
Hey Group,
When ever I try to run my App on a Machine without Visual Studio on, or even
from a Network drive, I get a Exception saying
"System.Security.SecurityException" Has occurred in Run.Exe and comes up
with a "Just-In-Time" Debug window.
Any body suggest or point me in the right direc... more >>
Datagrid tutorial needed.
Posted by Andrew Baker at 4/6/2004 4:10:27 PM
Coming from VB, I find the changes needed to manipulate a datagrid are much
more taxing than previously.
Is there a good tutorial for things like:
Setting the column widths
making the grid uneditable
making the whole row highlight when selected
There are a number of posts but... more >>
FlexGrid Sel Styles ??? !! ???
Posted by johan NO[at]SPAM advansoft.co-dot-za.no-spam.invalid at 4/6/2004 4:07:53 PM
my question goes like this, I need to know how you change the colour
of a sel on the FlexGrid. the code i used goes like this....
With C1FlexGrid1
Dim NewStyle As C1.Win.C1FlexGrid.CellStyle
NewStyle.BackColor = System.Drawing.Color.Red
... more >>
Page hit
Posted by ruca at 4/6/2004 4:00:40 PM
How can I get the coordinates of where I click with the mouse?
It is possible to know?
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca
... more >>
Window Refresh
Posted by Ed Willis at 4/6/2004 3:53:35 PM
If I am processing through a loop in my code and I want to update a row
count on the window, how can I make the window refresh and show the label
etc. updating?
Thanks.
... more >>
how to read text from childMdi form textbox?
Posted by Adda at 4/6/2004 3:39:16 PM
If I cycle through the MdiChildActivate event of the
parent form I can read text in a textbox on the child
mdiform --
console.writeline(Me.ActiveMdiChild.Controls(1).Text)
But if I have a sub in the Parent form and reference a
child mdi form like this:
Sub ReadText()
Dim frm As New ... more >>
Navigate in popup window
Posted by ruca at 4/6/2004 3:34:25 PM
Hi
Can I pass a DataSet from one page (parent) to another (child, popup
window)?
How can I do that?
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca
... more >>
Is it possible only create form once and active the form second time?
Posted by foxchan at 4/6/2004 3:15:50 PM
A Newbie question. Is it possible?
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim oNewForm As Form1
'if already create a form for form.text="JustOne" then
JustOne.show()
'else
oN... more >>
primary key autoincrement question.
Posted by jaYPee at 4/6/2004 3:13:54 PM
I have a table in my sqlserver 2000 that has a field IDNO. i want this
field to be my primary key. however i don't want this field to use the
autoincrement feature. when i access this table from vb.net and try to
add a record this field is autoincrementing. how can i disable the
autoincrement of... more >>
VBscript to read/write to powerpoint,project,word files
Posted by Paul at 4/6/2004 3:01:03 PM
Hi I am trying to build a tool that can read from a powerpoint file (slide text) and a microsoft project file (schedule information)and then write to a word file. Can something like this with vb.net also are there any examples that might show some of the methods and classes used
thanks Paul. ... more >>
Hmm
Posted by CJ Taylor at 4/6/2004 2:52:06 PM
9,223,372,036,854,775,808
How would one pronounce that...
I can get to the trillion, but then I start making up numbers like I was
when I was three like "gagillion"
It is nice though that Microsoft .NET is U.S. Deficit Compliant.
... more >>
Radio List Box -- Disabling one item (Quite Urgent)
Posted by Jay at 4/6/2004 2:36:30 PM
Good afternoon,
I have a radio list box called rblNavigateOptions and I need to be able to
simply set one of those radio items to disabled before any item is selected
by a user.
ie.
When the rblNavigateOptions control is created one or some of the items it
contains are disabled.
Is th... more >>
Trouble understanding changesl from vb6 to .net ... how do you...
Posted by Support at 4/6/2004 2:02:19 PM
Hello:
What replaces "locking" a text or "combo" box so that input is not allowed?
Do not want to use disable.
How can you trap all keyboard input and set it equal to nothing?
Thanks
Terry
... more >>
checking if any radio buttons are checked
Posted by Remi Lillelien at 4/6/2004 1:41:38 PM
Hello all,
Given I have a GroupBox named grpChoices, within this box i have 8
radiobuttons, named rbtButton1 through rbtButton8.
Now I would like to have a button btnOK which is enabled=false as long as
none of the radiobuttons in grpChoices are checked, and enabled=true when
the user checks ... more >>
Declare Function and "As Any"
Posted by Lance Geeck at 4/6/2004 1:34:29 PM
I have many items that I lifted off from Microsoft's website several years
ago. These samples were in VB6.
I now want to convert an application to VB.NET. I am getting an error
that says "As Any is not supported in a declare statement" during the
automated
Conversion process.
Some examples... more >>
Import/Convert an MS Access Form into VB.Net
Posted by SteveMets at 4/6/2004 1:15:13 PM
Is there a method to convert or otherwise import an MS
Access 2002 form into VD.Net? I'm interested in
converting a number of MS Access aplications, and any
automation will help speed up the process. Thanks
... more >>
CPU Speed
Posted by Claudio Di Flumeri at 4/6/2004 12:36:08 PM
Is there a way to get the CPU speed (in Mhz) without using WMI? I need to
include this functionality in a program that have to work also in Windows 98
and I don't want to distributeWMI apart.
... more >>
".net" get physical file address
Posted by astroboy at 4/6/2004 12:28:43 PM
What's the syntax to get the physical address of something like this
"map/abc.mdb"?
IN classic ASP is Response.MapPath("map/abc.mdb") which return something
like c:\inetpub\wwwroot\map\abc.mdb?
How do I do it with VB.NET application?
Any help would appreaciate?
Thank you
... more >>
MZTools equivalent
Posted by Peter Osawa at 4/6/2004 12:06:29 PM
Hi,
In VB6 I was used to add procedure headers with MZtools, and other
goodies...
Is there an addin floating anywhere to add headers and others texts ?
TIA
... more >>
How to pause ElapsedEventHandler
Posted by DaveF at 4/6/2004 12:03:23 PM
public void StartTimer()
{
System.Timers.Timer myTimer = new System.Timers.Timer();
myTimer.Interval =
Convert.ToDouble(ConfigurationSettings.AppSettings["Interval"]);
myTimer.Elapsed += new
System.Timers.ElapsedEventHandler(this.myTimer_Elapsed);
myTimer.Enabled = true;
}
protected v... more >>
VS 2005 - When due?
Posted by Woody Splawn at 4/6/2004 11:16:54 AM
Does someone have a feel for when (roughly) VS 2005 is due?
... more >>
Which book?
Posted by Arda Han at 4/6/2004 10:25:40 AM
I am a Delphi programmer. I want change mt technical skill to VB.Net. What
is your recommended books?
Thanks
... more >>
Collect all open Windows.Forms and close them
Posted by Volker Jobst at 4/6/2004 10:25:18 AM
Hi,
I'm writing an application which should be able to close all open forms
except the main one. Thisfore I'm collecting all forms in an arraylist
before I show them, but I don't want to do that because that's a lot of work
and I'm not allowed to miss one call.
So, my question is: Is there ... more >>
combobox and listbox items
Posted by EricJ at 4/6/2004 9:58:06 AM
Hi all,
If you want to have your own class in a combo you override the tostring
function to display the text.(got that one here 2 ;p)
But i don't seem to find how to get the value, w function do i have to
override to work w the values ?
int = cbo.selectedValue (this sort of thing)
Tnx
... more >>
Combo Box
Posted by Sebastian Santacrice at 4/6/2004 8:43:01 AM
I have a few combo boxes that are multi lines and each row
of data corresponds with the other combo boxed rows of
data.
But then they there a lot of rows one combo box scrolls
down and the other stay the same. So now the rows of data
don't match from one combo box to the others.
Is there s... more >>
display new rec in datagrid on mdi form?
Posted by Adda at 4/6/2004 8:33:20 AM
I have a datagrid on a parent mdi form with connection1,
dataAdapter1, dataset1. From a main menu I call a child
form where I enter new data and update dataset1 with
dataAdapter2, connection2 on the child form, but the same
dataset (dataset1). The data is stored in a sql server DB
and is... more >>
get running apps. name
Posted by sneffe at 4/6/2004 7:16:08 AM
Hi, im writing a program to keep track of which programs is currently running. I would like to have the caption of running programs displayed in a textbox on my form. I cant seem to find an easy way to do this in vb.net. Does anybody have a piece of code that can help me?
Thanks... more >>
Flat Style ComboBox
Posted by WStoreyII at 4/6/2004 6:44:29 AM
Hello All,
How do you make a combo box appear flat most controls like the treeview and
the datagrid you can select border style none but there is no such option
for the combo box? is there a trick or do i have to make my own custom
combobox?
WStoreyII
Thanks again for all of the help
... more >>
Getting application name
Posted by mikkel at 4/6/2004 4:36:02 AM
Hi, does anyone knows how to get the application name for the active window? Any help is appreciated.... more >>
Config file settings
Posted by Gerry at 4/6/2004 2:51:04 AM
I use the app.config file to store my SQL Connection String settings (currently using integrated security)
e.g.
<add key="MyDatabase" value="data source=MyPC\Development;initial catalog=MyDatabase;Integrated Security=SSPI;packet size=4096" /
Whilst I will use SQL authentication for some PC... more >>
DHCP and DNS
Posted by Marco at 4/6/2004 2:51:02 AM
Hi to all
I've a simple question...It's possible to configure and manage DHCP and DNS serve
via Visual Basic .NET
I need to create a simple application in Visual Basic that allow to manage DHCP and DN
server
Has someone some ideas
Thanks in advance,
Marco... more >>
PRINT ONE LINE OF TEXT
Posted by s_yomega NO[at]SPAM yahoo.it at 4/6/2004 2:19:53 AM
Hi all.
I have to write a Windows Application presenting a textbox to the
user.
Each time the user press a button on the main form I need to print the
text of the textbox.
I try using the printDocument object but if I call its print method a
page is printed by my printer.
I need to print ju... more >>
Test For Tree Node Status
Posted by WStoreyII at 4/6/2004 12:22:06 AM
I need to find a way so that a user can select a node and then click a
button and then i can see if the node is a parent child granchild ect. how
is this done?
WStoryeII
... more >>
Is it possible to Read a File that is "In Use"?
Posted by joecm NO[at]SPAM yahoo.com at 4/6/2004 12:15:57 AM
I am using a 3rd party app that is constantly writing to a text log
file. I would like to monitor that file with another app, but I keep
getting the dreaded "in use" error when I try to read the file.
I have tried using the "FileMode.Open, FileAccess.Read,
FileShare.ReadWrite" parameters of t... more >>
|