all groups > vb.net > march 2005 > threads for thursday march 17
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 31
Navigating to the parent subdirectory
Posted by BobAchgill at 3/17/2005 11:41:09 PM
Is this the right way to get to back up to the immediate
parent subdirectory?
Directory.GetParent("\")
or this?
Directory.GetParent("..")
Or this?
Directory.GetParent()
Thanks!
Bob... more >>
Tag and Late Binding
Posted by eBob.com at 3/17/2005 11:06:39 PM
In another thread VJ made me aware of Tag. Fantastic! I've been
wanting this capability for a long time. But it seems that I cannot
use it with Option Strict On. In an event handler I have ...
Private Sub chkbxSelI_Click(ByVal sender As Object, ByVal e As
System.EventArgs)
MsgBo... more >>
Converting vb6 to .net
Posted by notregister at 3/17/2005 10:49:02 PM
Hi, how do i convert the following vb6 codes to .net? Nibble is variable
declared as Byte
InputString = ""
Open CurInputFileName For Binary Shared As #1
Do
Get #1, , Nibble
InputString = InputString & Chr$(Nibble)
Loop Until EOF(1)
Close #1
... more >>
creation of controls dynamically and handling the controls
Posted by Murthy at 3/17/2005 10:16:49 PM
Hi,
I would like to develop an application such that it
should create a combobox(server side control) at runtime
and how should handle these controls at runtime.
In my case i have a link button "add the
control".whenever i click on the button it should create
the combobox servers... more >>
Can I save a datagrid to an Excel file?
Posted by anon at 3/17/2005 10:16:15 PM
I am trying to save the contents of datagrid to an excel file using VB.NET
2002 Standard.
Someone posted me a reply, but unfortunately it uses a web control and I do
not have that functionality since I only have the basic edition of vb.net.
Is there any other means of exporting a datatable or ... more >>
struggling vb6 enthusiast wants help
Posted by ROBERT BEE at 3/17/2005 9:46:36 PM
Below is some code I have copied from the web with the intention of
modifying but I keep getting the stated errors. This is the umpteenth
attempt at trying to get
OleDbConnection,OleDbDataAdapter to work without any success. Do the
references have a hierarchy like in vb6 or is there somethin... more >>
Windows environment variable
Posted by Greg at 3/17/2005 8:49:01 PM
Is there a way to set a environment variable in vb. like the following
command in dos:
set myserver=srv123456
I have tried using shell("cmd.exe /c set myserver=srv123456", appfochide,
true)
any help would be great.... more >>
Record Set question
Posted by vbmark at 3/17/2005 7:53:59 PM
I am calling a Visual Basic 6 DLL to that returns a Record Set.
Here is my code in my VB.NET program.
Dim objRS
objRS = oMyObject.ReturnRecordSet()
If Not objRS Is Nothing Then
Do While Not objRS.EOF
sw.WriteLine(objRS("UserID"))
sw.WriteLine(objRS("UserName"))
objRS.MoveNe... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
NumLock, CapsLock, Inset/Overwrite
Posted by lgbjr at 3/17/2005 6:39:23 PM
Hi All,
In VB.Net how do I determine if CapsLock is on/off (same for NumLock) and
whether the input mode is set to Insert or Overwrite (Insert Key). I just
added a status bar to my app, and I want to reflect the state of these three
items (similar to Word, Excel, etc.) I've found the key en... more >>
VB6 to VB.Net
Posted by notregister at 3/17/2005 6:35:02 PM
Hi, how do i convert the following vb6 codes to .net? Nibble is variable
declared as Byte
InputString = ""
Open CurInputFileName For Binary Shared As #1
Do
Get #1, , Nibble
InputString = InputString & Chr$(Nibble)
Loop Until EOF(1)
Close #1... more >>
system.io.stream
Posted by M. Posseth at 3/17/2005 6:25:58 PM
Hello i have a problem
i have this peace of code
Dim xmldoc As XmlDocument = fobjXMLSendXMLRequest(strXml)
Dim nodeData As XmlNode = xmldoc.SelectSingleNode("tirep").Item("data")
Dim strdata As String = "<data>" & nodeData.InnerXml & "</data>"
Dim sw As New System.IO.StreamWriter("... more >>
control program
Posted by Lam at 3/17/2005 4:47:02 PM
Hi
I want to write a VB or C# program so that it can calls up another
windows program and tells it to open it's menu
Item automatically.
For example: It can call File Manager and open 'File->New Folder' etc.
without manually click on the program
Menu bar
Does anyone kn... more >>
new sqlconnection problem
Posted by Agnes at 3/17/2005 4:46:39 PM
I want to use a table store the database connection. (e.g myDBC)
I use cmdReader to get the string from that table sucesfully and then want
to create it .
Dim strConnection as string = myReader.item(conn)
Dim cnSqlServer as new SqlConnection(strConnection)
I check that I can get the strCon... more >>
Is there an awk like utility for .NET?
Posted by Claud Balls at 3/17/2005 4:02:15 PM
When I was working with Unix one of my favorite tools was awk. I've
been using Regular Expressions, which are great, but sometimes I would
like to be able to return complete columns of data.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get... more >>
Windows Media Player in VB.NET
Posted by Nick at 3/17/2005 3:50:05 PM
Hi there,
I'm using the "Msdxm.ocx" to host Windows media player within VB.NET. I
was hoping that this would be a bit newer than the interface I have been
presented with, as well as it not supporting certain Windows Media files.
Has anyone got any information on using a newer version i... more >>
Writing to textbox from a file
Posted by Russell at 3/17/2005 3:37:05 PM
Hi,
I have a text file with some text in.
I have a textbox called textbox1 for example.
what do I do so when I click on a button (button1) it opens the text file in
the textbox so I can edit it.
also how do I save it
I am newbie as you can tell. I have tried and looked on the msdn but I am ... more >>
How to know the error of a DataGrid/SqlDataAdapter.Update (The white exclamation mark in a red dot)
Posted by DraguVaso at 3/17/2005 3:06:44 PM
Hi,
I have a DataGrid bound to an sqlDataAdapter. When I do a
SqlDataAdapter.Update, on 1 row I got a red dot with a whie exclamation mark
in it, to show me there is an error, and the changes aren't saved.
The problem is that I'm not able to knwo what error it is, I just get the
red cirkel ... more >>
Windows Service and the File System
Posted by Chris Dunaway at 3/17/2005 2:26:36 PM
Can a Windows service write to a file on the local file system? I was
using the Enterprise Library to log to a file and also to the
application log. The entries to the application log work correctly,
but the entries to a log file do not write. I cannot find the log file
it is supposed to be w... more >>
dropdown list box in from of image
Posted by Brian at 3/17/2005 2:21:03 PM
Hello,
I am trying to put a dropdown listbox in front of an background image
and it is not allowing me to do so. This in in a web app and it is a html
background image. Any ideas?
Thanks,
Brian... more >>
Loading Data as a single Byte
Posted by G Leifheit at 3/17/2005 2:20:48 PM
I'm attempting to pass 2 variables as type Byte as it is required to be type
byte for encryption. What syntax shoule I use in vb.net. Everything I have
tried has told me a value of type byte can not be converted into a
1-diesional array of Byte? Any thoughts?
Thanks
Glenn... more >>
vbs script:masking password
Posted by leventk at 3/17/2005 1:31:06 PM
i tried that script:
http://www.microsoft.com/technet/scriptcenter/scripts/misc/password/mspwvb02.mspx
. I prepared password.htm on Frontpage2003. But script dont work with this
password.htm file. I dont understand this example. If i mistake htm file, can
you send me example password.htm f... more >>
Removing VB6-isms, I'm stuck
Posted by Peter Row at 3/17/2005 1:29:14 PM
Hi,
I am currently working on a VB.NET project that has been going for quite a
while.
In the past it has been developed with a lot of compatibility VB6 functions
and
constants, e.g Left(), LCase() and vbCr
Whilst not currently able to port to C# I am trying to remove usage of these
func... more >>
Convert Access App to VB.Net
Posted by news.microsoft.com at 3/17/2005 1:26:39 PM
I have an MS Access application that I've done and would like to convert to
VB.Net. I have a few questions:
1. Is there a conversion routine for this?
2. How hard to convert manually?
Thanks.
... more >>
Open client's default email cleint application (not an email).
Posted by WATYF at 3/17/2005 12:47:53 PM
Hi there... I need some .NET code to open the default email client. I
do not need to open an email (that would be easy), I need to open the
application itself, as if the user is clicking on an icon to go check
their mail. I'm using VB.NET, but can convert C# if needed...
....anyone know how ... more >>
Component for generating Word/PDF docs?
Posted by Klaus Jensen at 3/17/2005 12:35:02 PM
Hi!
I need to...:
- Have a word-template
- Fill certain placeholders with data on the fly
- Insert images into placeholders
- Save/stream the doc
- Export to PDF (save/stream)
- Must not require an office-installation on server
My pricelimit is something like 2000$.
Any inputs on whic... more >>
Database Design problem
Posted by Agnes at 3/17/2005 12:27:10 PM
I got two same database in one SQL server, named (Data_branch_usa,
Data_branch_uk)
Now, as the user login the system, I will let the user choose which database
they want to enter.
I wonder,I should use a table to store the branch information or use XML to
store it.
I really got no idea abou... more >>
Option Strict On -help
Posted by carlin smith via .NET 247 at 3/17/2005 12:16:03 PM
I have an option strict on problem.
i am using the event for 1 button to be the event for several others, kind of like indexes in vb6.
it looks something like this:
*****
Private Sub btnNum0_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNum0.Click, btnNum1.Cl... more >>
DataGrid Multi Selections
Posted by Kenneth H. Young at 3/17/2005 11:30:40 AM
How does one get the values of multiple selected rows in a DataGrid? I
am trying to allow the builing of an email list generated from an LDAP
query. The below code works OK but it can create duplicates if a line item
is clicked more that once.
Private Sub DataGrid1_Click(ByVal sender ... more >>
XML File and an encryption
Posted by Nathan at 3/17/2005 10:54:43 AM
I need to encrypt a string before I write it down in my settings XML File,
and then decrypt it when I reload the XML File.
Unfortunately, I have no idea where to get started. Can anyone point me in
the right direction?... more >>
Upcasting in VB.NET
Posted by Bob Trabucco at 3/17/2005 10:44:10 AM
Does anyone know how you can do an upcase in VB.NET?
Example:
Public Class Class1
Private s As String = "Hello World"
Protected Property Prop1() As String
Get
Return s
End Get
Set(ByVal Value As String)
s = Value
End Set
... more >>
Updating Datasets
Posted by Ahmed Hashish at 3/17/2005 10:43:05 AM
Dear All
Can I use ANSI SQL statements on the datasets tables, for example if I
have dataset ds which has the table TB can I run the SQL "UPDATE TB SET
Field1='x' WHERE Field2='y'"
Ahmed
... more >>
Remove refernce from project
Posted by VB User at 3/17/2005 10:39:10 AM
Can anyone let me know how I should do to remove an excel reference which I
added to the project, now that I don't need it?
Thanks... more >>
VB.NET - Web App - Force Page Refresh
Posted by Fred Nelson at 3/17/2005 10:35:45 AM
Hi:
I have a VB.NET web application and I need to find a way to cause a page
refresh from within my application.
Does anyone know how to force the browser to refresh the current page?
Thanks very much for your help!
Fred
... more >>
Disable Taskbar
Posted by anthony at 3/17/2005 10:10:06 AM
Hi,
I have a VB.NET application that runs on Embedded XP, the user can logon
with password for different levels of right within the application. My boss
wants the XP taskbar being hiden or locked when the user logon at the lowest
level (by default), when the user logon as an administrator, he... more >>
Determining the Size of a Directory Without Using FileSystemObject
Posted by Phil Galey at 3/17/2005 9:34:56 AM
Using the following, you can determine the size of a file:
Dim fi As New IO.FileInfo(<Path to file>)
MsgBox(fi.Length)
.... but what about the size of a directory? The IO.DirectoryInfo object
doesn't have a Length property.
In is there a way in VB.NET to determine the size of a directory w... more >>
pass values in web form
Posted by Dan Pavel at 3/17/2005 8:31:35 AM
Hi,
I am new in programming and I have a problem. I must save a value in
database but i cannot pass the value from javascript to VB at strSQL
<%
Sub setare(cs)
If cs=1 Then
strSQL="UPDATE machines SET time=Stime WHERE ip='"&IP&"'"
Set rstDB = Server.CreateObject("ADODB.Recor... more >>
Change the address bar of ineternet explorer
Posted by Husam at 3/17/2005 8:15:02 AM
Hi EveryBody:
How can I use win32 api to change the address bar of internet explorer;
for example if i want to change the address bar from http://www.msn.cm/ to
http://www.yahoo.com/, how can I do that, is there any function like
sendmessage can handle this ?
any help will be appreciated
... more >>
Need VB.Net References
Posted by A P at 3/17/2005 7:55:51 AM
Hi!
I am new to VB.Net, and I am task to develop web based applications using
VB.Net . I only have these infrastructure:
Win2K server SP4 with .Net Framework 1.1
Visual Basic .NET 2003 Standard
Using MS Access as its database
I need a book/Internet URL that can easily guide me. Hope you ... more >>
Problems with Process.Start()
Posted by Jason via .NET 247 at 3/17/2005 7:23:22 AM
I'm trying to start a non-microsoft app, I've had much success=
using Process and SendKeys with Microsoft apps, IE, notepad,=
etc=2E but this new app gives me the error "The parameter is=
incorrect"=2E I'm not sure what the problem is, I've double=
checked the path and other things=2E
... more >>
Problems with OpenFileDialog and Process.Start - processtest.zip (0/1)
Posted by Doug Wood at 3/17/2005 6:17:40 AM
I am having a very strange problem that only happens with Windows
2000. If the Process.Start method is called after using the
OpenFileDialog, it will throw a Win32 Exception. The same code on
running on Windows XP works fine. I've attached a small project the
can reproduce the problem.
H... more >>
Encrypting & Decrypting String that can be placed in a text file
Posted by G Leifheit at 3/17/2005 6:17:03 AM
I'm looking for a way to Encrypt & Decrypt Data in a String Value that can be
placed in a text file. All i'm finding are items that storing the encrypted
value in a text file can be problematic because of special characters. I'm
looking possible at SecureQuerryString, any other option? What... more >>
VB 6.0 ActiveX and VB.Net
Posted by Egghead at 3/17/2005 5:17:16 AM
Hi all,
I am trying to put a Vb6.0 activeX control into a VB.net project. The Vb6.0
activeX control works fine in a VB6.0 app.
But the problem comes when I close down the Vb.net app. I get
the"Application error... memory cannot be written/read". On the other hand,
I will not get this error ... more >>
COM Components
Posted by David Pendrey at 3/17/2005 5:10:43 AM
Hello everyone :)
I am new to programming in .NET and I want to make the equivalent of an
ActiveX .EXE file in Visual Basic 5 so that I can have some classes
accessible outside of my application. I don't want to make all of the
classes visible, only some. Additional to this I was wondering if... more >>
How experienced in programming do you have to be for this newsgroup?
Posted by George Medlock at 3/17/2005 4:47:06 AM
Is this a good newsgroup to follow if you've never done any serious
programming, or is there a newsgroup for beginners?
... more >>
Reading CDATA from a XML file
Posted by yosh NO[at]SPAM liquidzone.net at 3/17/2005 4:03:44 AM
Im recieving a XML file from a webserver wich contains a CDATA
element wich contains more XML code...
the problem is that i have no idea on how to get the things in the
cdata field so i can use it as a "normal" xml document
Ive heard i should use xmldatadocument wich i have tried witout
s... more >>
Get userlist in a win2000 domain
Posted by harks harks via .NET 247 at 3/17/2005 4:01:49 AM
Hey i am trying to find users list in win2000 server in a specific domain
The vb.net prgm is running on a client machine is it possible to retrive the users list
if possible help me
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>PV9f7zP6VEWDVWL9f... more >>
Some controls seem disposed when using delegates ... ?
Posted by dast at 3/17/2005 2:27:02 AM
Hi,
I'm using a delegate to edit some controls on formA from another thread on
formB.
This works nicely the first time I run formA. But if I close formA and
reopen it I get errors.
When changing the checked state of a radiobutton I get an error saying that
I cannot access the control ... more >>
Need help: Create Access Database programmatically using VB .NET
Posted by sunlight_sg at 3/17/2005 12:51:03 AM
Hello, i am using ADOX + VB .NET to create a Access Database
programmatically. I plan to set some properties of the column such primary
key.
The code is as follows:
Dim cat As ADOX.Catalog
Dim tbl As ADOX.Table
Dim idx As ADOX.Index
Dim prp As ADOX.Property
Set cat = New ADOX.Catalog... more >>
Custom gridview
Posted by Dany at 3/17/2005 12:03:03 AM
I'm trying to create a gridview custom control in VS2005 with some column
predefined.
I get the error StackOverflowException.
Can anybody show me some resource link, please?
Thanks in advance.
Daniele Farina
There is the wrong code:
Imports System.ComponentModel
Imports System.Web.UI
... more >>
|