all groups > vb.net > april 2005 > threads for monday april 11
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
Urgent !! ---- How to add New menu options in File menu of Ms Word
Posted by sarvjeets NO[at]SPAM ggn.hcltech.com at 4/11/2005 9:23:33 PM
Hi all,
I need to incorporate new menu option in File menu of every MS
word .
Are Addins helpful in this case . I need to Create a setup which will
add this functionality to existing as well as new Word document.
Can anyone guide me something on this . Any url for the same .....
... more >>
printing web forms
Posted by sql at 4/11/2005 4:02:15 PM
Hi all,
I use javascript's Print function to print my web page. But the web page
contains multiline text boxes. The print function only prints the visible
portion of the multiline textboxes. How can I print the web page with all
contents of the multiline textboxes?
Thanks in advance.
... more >>
How to back up an object...
Posted by Simon Verona at 4/11/2005 3:39:48 PM
I have a custom class inherited from a third party control.
Within the class, I need to make a backup copy of the class so that I can
change the properties (font size etc) for printing.
So, I'm using code such as...
Dim backup as dmsreport =me
backup.font=newfont
backup.prin... more >>
.Net Framework Installer Class
Posted by Mark Assousa at 4/11/2005 3:36:44 PM
Hi,
I'm having trouble finding the right news group for this posting so here
goes...
I am attempting to execute some special actions within an installation
project for a standard .Net Windows application. I have a custom
Installer class that needs to access a disk file installed during t... more >>
Opening a dbf file with .NET code
Posted by genojoe at 4/11/2005 1:56:01 PM
I have a simple dbf file with the name of OTHWAGE.dbf. I can open it in
Visual Studio Server Explorer and see its fields and records by creating a
Data Connection. When I copy the connection string and combine it with code
from VS Help, I end up with the following:
Dim sConnection... more >>
Question on impersonation
Posted by Jake Smythe at 4/11/2005 1:55:36 PM
Hello,
I have some code that impersonates a user upon launching of the
application. We now have the need to run some command line items. The
impersonation doesn't seem to pass to the commands being run. Is there a way
to do this? Basically looking for a way do a runas on a command line... more >>
FileInfo.CopyTo Problem
Posted by Michael Murphy at 4/11/2005 12:45:29 PM
Hi,
I have a Windows VB.Net app in which I need to keep files in one folder =
in sync with files in another folder. I have pasted the code below. Can =
anyone tell me why I end up with a folder with all the file names =
correct, but the length of each file is zero. =20
Thanks for your help.
Mi... more >>
How to access var outside of class?
Posted by Brett at 4/11/2005 12:31:58 PM
Say I have an object that is placed onto a form. It will get this
declaration:
Public Class1
Friend WithEvents ObjectName1 As SomeCompany.ObjectName
Private Sub DoSomething
Object1.method1 = True
End Sub
Public Class2
Private MainClass As Class1
Private Sub DoSomethingElse... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Datagrids and hyperlinks to more data.
Posted by Tmuld at 4/11/2005 12:23:44 PM
Hello,
I am using a flat file database that has been imported to SQL Server
2000. So it is a DB with one table.
What I want to do is display 3 of the 30 fields on an .aspx screen.
One of the 3 fields would have a hyperlink. Upon clicking that
hyperlink the remaining 27 fields of that part... more >>
Date function
Posted by Eduardo78 at 4/11/2005 12:06:03 PM
I am trying to find out any function or code to calculate days between to
dates, and another one that I select a date and then select a number of days,
weeks, or years from a control, and I will bring me what they It would be
after the number of days or weeks selected.
Lets say for example ... more >>
win ap with arguments
Posted by raulavi at 4/11/2005 12:03:03 PM
Hi EveryBody:
How can I make windows application project start with arguments and return a
variable.
Thanks for your help... more >>
adding properties at design time
Posted by Miky at 4/11/2005 11:12:12 AM
Hi,
I'm looking resources or tutorial where I can learn how to add
properties to other objects at design time for VB.NEt or C#.
I want to reproduce the same effect as when your drop the tooltip object
on a form. Once it's done, every object has a new property added to the
property box so we... more >>
Windows application start with opreating system
Posted by Husam at 4/11/2005 11:09:04 AM
Hi EveryBody:
by VB.Net
How can I amke windows application project start with starting of opreating
system and end with ending the opreating system, for exaple like the windows
service project when you start with starting windows opreating system and
stop with ending of opreating system ?
... more >>
Xml appending child nodes
Posted by hharry at 4/11/2005 10:52:54 AM
Hi All,
If I have the following xml:
<Response>
<AddressDetails>
<Address>
</Address>
</AddressDetails>
</Response>
and I need to insert multiple address records like this:
<Response>
<AddressDetails>
<Address>
<City></City>
... more >>
Why not color?
Posted by brix_zx2 at 4/11/2005 10:48:02 AM
I'm writing a program in VB .NET 2k3, I have a datagrid bound to a database
(Access 2002). Does anyone have info or know where I can go to change the
color of a row based on the value in one column? I have found stuff on
alternating colors and all that good stuff but nothing that I need. Th... more >>
Auto scaling engine in VB2005
Posted by Reinier VDW at 4/11/2005 10:44:04 AM
Hi,
I am using VB2005Express Beta2 (CTP Feb2005) which appears to have a new
auto scaling engine. For that reason it does not accept i.e. the command
Me.Scale(2). Where can I find some documentation on this new auto scaling
engine?
Thanks,
Reinier
... more >>
Saving Settings in VB.NET
Posted by Kirk at 4/11/2005 10:13:26 AM
Hello,
I am trying to find a VB.NET method that will allow me to save and read
an application's settings in a separate file located on any drive,
any folder. I have found a couple of methods for doing this, but they
are (in my opinion) more complicated than I require.
I found a method that... more >>
Why use Dim outside of sub?
Posted by Brett at 4/11/2005 10:12:28 AM
What is the difference in:
Public Class Form1
Inherits System.Windows.Forms.Form
Dim myUrl As String
and
Private myUrl As String
In other words, using Dim or Private outside of a sub. Both can be seen
within any sub in that class.. Private seems more explicit. I'm also ... more >>
POSTNET barcodes
Posted by GeorgeAtkins at 4/11/2005 9:53:03 AM
I am looking into the feasability of writing a program (probably as an
active-x addon) for my school district that accepts zipcodes and returns the
correct POSTNET barcode. This would most likely be used when building mailing
labels in MS Access. I realize that Word produces the barcodes, but ... more >>
MDI ignoring Handles for Ctl+F6
Posted by Paul at 4/11/2005 9:09:52 AM
I have a MDI form which hosts numerous MdiChildren forms. I want to
prevent the users from toggling to other MdiChildren forms. The
program allows it by pressing Ctl+F6 or Ctl+Tab.
In the MDI form I use the KeyUp event and set Handles = True:
Private Sub FrontierMDI_KeyUp(ByVal sender ... more >>
read app.config
Posted by Carlos AZ at 4/11/2005 8:33:03 AM
I have the following XML file named (applicattion.exe.config):
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<AppSettings>
<add key = "PathBD" value = "c:\project\data\maco.mdb" />
</AppSettings>
</configuration>
Can anyone send me the code for reading value of 'PathDB' ... more >>
Schedule task in VB.NET
Posted by krallabandi NO[at]SPAM gmail.com at 4/11/2005 8:07:06 AM
Hi,
I have a console application written in VB.NET. I schedule the job
using windows 2000 scheduler. It is all working fine but, its opening a
console when it was running. How to disable the console?
any clues?
Thanks.
... more >>
Reading Dataset Value
Posted by Wayne Wengert at 4/11/2005 8:02:08 AM
I am trying to assign the value of a field in a dataset to a grid (Farpoint
Spread). When I add this line of code:
FpSpreadMatchingNames.Sheets(0).Cells(jj, 1) =
ds.Tables("MatchingNames").Rows(jj).Item("LastName")
I get an error that "Item" is Read Only. So what? I am trying to read i... more >>
File pointer to be positioned at the last occurance of a keyword
Posted by kd at 4/11/2005 4:15:03 AM
Hi All,
I have a .txt file, in which I have to look for the last occurance of a
keyword, and process contents of the file from that point onwards.
How can this be achieved? Can anybody guide me?
Thanks,
kd... more >>
Connectionstring
Posted by patang at 4/11/2005 12:30:01 AM
In my VB.Net project when I access an Access database without setting any
password, everything works fine. However, when I set the password and use
this connectionstring
"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\myproject\mydatabase.mdb;Jet OLEDB:Database Password=test;"
I get me... more >>
DataGrid Bind to DataSet, then Bind to DaTaview, GOT ERROR...PLS HELP
Posted by A_PK at 4/11/2005 12:00:00 AM
I have problem databinding the DataGrid with DataView/DataSet after the
filter...
I create the following proceudre in order for user to filter as many as they
want, but the following code is only allow user to filter the first time,
when they tried the second time, the speficied cast error me... more >>
How to get email from exchange server using VB.NET? thanks
Posted by ywchan at 4/11/2005 12:00:00 AM
I know that System.Web.Mail can help to send email. I wonder there is any
way to retrieve email using VB.NET? Thanks
... more >>
Newbie VB Question
Posted by Paul Hadfield at 4/11/2005 12:00:00 AM
All,
Sorry if this is a really silly question, but.....
Is it possible to set a return code for a DOS environment somewhere for a
VB.NET app?
When writing .BAT files for Windows 2000 I often need to use the ERRORLEVEL
value to determine if a program was successful or not. How can I
pr... more >>
Cancelling the current print job immediately...
Posted by Ajab Gajab at 4/11/2005 12:00:00 AM
Hi All,
I am developing an application in VB.Net where I need to provide user with
cancelling or stopping the current print job. Like, if a user clicks on
"stop" button, then printer should print already processed contents of a
page. This can be easily achieved in VB.Net by using e.HasMorePage... more >>
Connect student version of vb.net to a sql database?
Posted by Frank at 4/11/2005 12:00:00 AM
Hi
I am a poor student studying towards my MCSD. I have managed to get a
cheapish student version of vb.net. Problem is that this version does not
connect to sql databases and I need it to because access ... well I just do!
I was wondering if anybody knows of any 3rd party tools or com obje... more >>
Creating events in VB.net
Posted by Jeffrey Spoon at 4/11/2005 12:00:00 AM
Hello. I have been working on the program below. However I'm not sure
how to get my own event working properly. I created my ThresholdNormal
class and put a condition in the sub CheckThreshold. It then raises the
ThresholdOK event. My event handler Private Sub Threshold_Normal should
then ru... more >>
Can't set breakpoints
Posted by Tom Edelbrok at 4/11/2005 12:00:00 AM
I have a VB.NET program running under VS2003. It is just a simple program
for learning VB.NET, with a main form and a form load event. Inside the form
load event I set a breakpoint. However, every time I press F5 to run the
program the breakpoint displays a question mark glyph in the left hand... more >>
Previnstance function
Posted by Tom Edelbrok at 4/11/2005 12:00:00 AM
In the VB.Net documentation it says that there is no direct equivalent to
VB6's 'PrevInstance' function, so they suggest making your own with the
following code:
Function PrevInstance() As Boolean
If
(UBound(Diagnostics.Process.GetProcessesByName(Diagnostics.Process.GetCurrentProcess.Pro... more >>
VS2003 DataGrid Bug or Feature??
Posted by DazedAndConfused at 4/11/2005 12:00:00 AM
When first loaded, the first column of the first row of a DataGrid is back
colored (this is true of VS 2002 VB & VS 2003 VB and is not a problem).
When navigating programmatically through the data grid using BindingContext
the back colored value(Column 1, Top Row) does not change as the grid... more >>
Copy Directry including across the Volumes.
Posted by Rik at 4/11/2005 12:00:00 AM
Helllo Experts,
Could anybody tell me, how I can copy a Directory from One Drive to another
drive, using VB.NET code??
I will be very thankfull to you for that.
TIA
Rik
... more >>
Can't set focus to controls on TabPage
Posted by Paul Close at 4/11/2005 12:00:00 AM
A new solution/project consisting of a single windows form with a tab
control, 3 tab pages and a text box on each tab page. I expected the
following to set focus to the text box on the selected tab page but it does
not.
Private Sub TabControl1_SelectedIndexChanged(...etc
Select Case... more >>
Integrate MSDN 2005 on Visual Studio 2005
Posted by Fabio at 4/11/2005 12:00:00 AM
Hi all,
Someone know how to manually integrate msdn 2005 on visual studio 2005 beta,
I have both installed, but the msdn does not integrate itself in visual
studio. I tried to unistall and install both, but the problem still.
when I installed the vs 2005 for the first time, the vs 2003 was... more >>
Anyway to convert an object type using a System.Type?
Posted by Don at 4/11/2005 12:00:00 AM
Is there anyway to convert an object from one type to another using either a
System.Type object containing the desired type to convert to or a string
variable containing the name of the type to convert to?
- Don
... more >>
Unexpected behaviour of MyClass (please ignore 1st post)
Posted by Diana Mueller at 4/11/2005 12:00:00 AM
Public Class Base
Public Function Foo() As String
Return MyClass.GetType.FullName
End Function
End Class
Public Class Derrived
Inherits Base
End Class
Why does Derrived.Foo() return "Derrived"? Shouldn't that be "Base"?
... more >>
A simple question
Posted by Adrian at 4/11/2005 12:00:00 AM
Hi
sorry for such a simple question!
I want to be able to create a structure or is call a class in VB.net? eg
test1
I want it to have a number of elements that I refer to as test1.username,
test1.password...
But I cant think how to do this.
thanks
... more >>
Setup and Deployment Projects
Posted by Mansoor Dehghani via DotNetMonster.com at 4/11/2005 12:00:00 AM
Hi
when i want to deployment and setup projects for win form then
an error happen at start:
Microsoft Development Environment has encountered a problem and needs to
close. We are sorry for the inconvenience.
Error Detail:
An unhandled exception has been caught by the VSW exception ... more >>
How to read a stream of data?
Posted by ywchan at 4/11/2005 12:00:00 AM
I have used a stream reader and sometimes it contains more than one rows of
text. How to read all the lines in a stream reader?
sr.Readline can only get line by line...and every times the total lines
varies...I wonder how to get all the lines at the same time. Thanks!
... more >>
Unexpected behaviour of MyClass
Posted by Diana Mueller at 4/11/2005 12:00:00 AM
how to automatically run a function every certain period of time?
Posted by ywchan at 4/11/2005 12:00:00 AM
I would like my application to perform some function every 5 to 10 min...how
to automate it? THANKS
... more >>
Screen Resolution
Posted by Ellis Yu at 4/11/2005 12:00:00 AM
Dear All,
Anyone know how to make the application look the same regardless of
any resolution? Many thanks
Best Rdgs
Ellis
... more >>
Datagrid checkbox question
Posted by Hennie at 4/11/2005 12:00:00 AM
How can I use a checkbox to trigger an add / delete procedure on a datagrid?
If the checkbox is checked a field in the datagrid row and a session id must
be saved to another table.
The problem is the datagrid row is not selected first, so how do I get the
field value from the row the checkbo... more >>
|