all groups > vb.net > april 2007
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
Row Update Not Updating Data source
Posted by Alex at 4/30/2007 10:10:16 PM
I've got a procedure designed to modify the contents of a single row
in a data table. The code appears to work fine in that it compiles
and executes without error and the changes are reflected in the
dataset. However, when I close and re-open the app, the changes are
lost, which means that the... more >>
full path of share
Posted by Darin at 4/30/2007 6:17:51 PM
I have a share setup on the server that is actually c:\data\share.
So the client sees i:\, but on the server that is actually
c:\data\share.
Is there a way, from the client, to know exactly what the share is from
the server's point of view?
Darin
*** Sent via Developersdex http://www.d... more >>
Perform transaction on 2 databases on 2 different servers.
Posted by Hetal at 4/30/2007 2:16:39 PM
Hi..
I am working on VB.NET (windows forms) and i am using ADO.NET to deal
with databases. I have 2 databases say dbA (on Server1) and dbB (on
Server2). I am reading data from dbA and writing it on dbB. After i am
done writing, i delete information from dbA. Is there a way i can
perform this... more >>
gooood
Posted by ahmad at 4/30/2007 1:15:04 PM
1) If you are looking for the truth to soothe and please your self,
just click on this link.
2) If you are looking for the secrt of the family happiness, just
click on this link
3
) If you are looking for solving any social problem you face, just
click on this link.
http://www.islam-g... more >>
Get application name of Ms Word document
Posted by guido at 4/30/2007 12:34:28 PM
I'm using aspose.words (www.aspose.com) to extract regular expression
matches from multiple files within a folder. Unfortunately,
aspose.words does not support pre-Word 97 documents. How can i
retrieve the Word version of the .doc file, so i can avoid errors?
Thanks.
... more >>
Help with delegate callback error
Posted by Flomo Togba Kwele at 4/30/2007 12:17:32 PM
I have a class which processes for a relatively long time. I want to enable
other classes which call this one to receive process messages if they wish.
The called routine (the one defining the delegate) is named CASSPrintSQL in
namespace CASS. The code is:
Private Delegate Sub DisplayMess... more >>
debug mode faster than bin\exe ?
Posted by corey.hutchinson NO[at]SPAM gmail.com at 4/30/2007 12:02:35 PM
I have an application that when I run it in VS 2005 debug mode it
operates faster (10 fold) than when I execute the exe directly from
the bin directory. The one operation in particular in which the
performance differs so greatly is when the app makes a call to another
service and inserts the re... more >>
Question about sending email via Visual Basic 2005 on a ASP.NET pa
Posted by Tony Wissler at 4/30/2007 10:54:00 AM
Hello everyone-
I am hoping a couple of you will have some ideas on this one...
I have a webform created in visual basic 2005.
Basically, the webform gather answers to the questions asked on the form and
included a couple free type multine textboxes.
When the user presses submit an messa... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Strange Date Problem
Posted by Terry Olsen at 4/30/2007 7:41:56 AM
Given that variable dt = "3/31/2007", why does it produce the following
exception on some machines? It works fine on my PC, but others have sent me
this exception information because it threw up on their PC.
DLDT.Columns("Date").DataType = GetType(Date)
dr.Item("Date") = Date.Parse(dt.Trim).... more >>
Problem with: Use the following method to smooth edges of screen fonts: if ClearType is selected
Posted by active at 4/30/2007 4:31:17 AM
In control panel/Display/Appearance/Effects if :
'Use the following method to smooth edges of screen fonts' is checked and
ClearType is selected in the combobox (no problem if Standard is selected)
I get a crazy font display in parts of my picturebox.
Do you have any info regardin... more >>
Export procedure entry point in a dll
Posted by Joh at 4/30/2007 2:05:44 AM
I'm developing a dll with VB.NET and Visual Studio 2005 to be used as
a plugin in Skype. I'm supposed to make my dll export the entry point
of a procedure called DllInitSkypePluginB. Anyone now how to export an
entry point of a procedure in a VB.NET dll?
The definition of DllInitSkypePluginB... more >>
Can someone help me with this menu?
Posted by Carol at 4/30/2007 1:43:38 AM
I'm fairly new at this and trying to create a dynamic menu.
I use the function getMANames to put all the submenu item names into
an array. I am confident this sub is working properly.
When I look in debug mode the object insertJobMenu is reporting the
correct number of items. If I look at on... more >>
Forms
Posted by roblowein at 4/29/2007 11:20:17 PM
Hello,
I am writing some VB express code to collect data for a gas safety
certificate. Data that needs to be collected include name and address,
plus Boiler Perfomace and safety information. And the end of this
data collection I need to print out a certificate that looks a little
bit lik... more >>
Window that shows up and disappears no matter what
Posted by Don W at 4/29/2007 10:48:01 PM
The application is hidden and at times it must show a form that should appear
at the top of all other windows and its text box should have the focus no
matter where the focus was prior to the window becoming visible. Once the
text has been entered, the form should become invisible again. Wha... more >>
Publishing problem
Posted by John at 4/29/2007 3:51:09 PM
Hi
I am publishing a vb.net app to a remote ftp/web site. This seems to go
successfully. Once I try to install the app by using the url
http://www.mydomain.com/publish.htm and pressing the Run button, I get the
'(407) Proxy Authentication Required error' and application install fails.
Wha... more >>
Running sub in a separate process
Posted by John at 4/29/2007 3:38:27 PM
Hi
Is there a way to run a sub in a separate synchronous or asynchronous
process? One of the reason I would like to do that is I do not want this
process to effect the main app and also to cleanup the process resources
completely after it end.
Thanks
Regards
... more >>
COM problem
Posted by Martinez at 4/29/2007 1:15:20 PM
Hello
I try declare
Dim db as New BtDatabase()
and execute metod
db.open(par1,par2,par3)
but i get error :
System.NullReferenceException was unhandled
Message="Object reference not set to an instance of an object."
Source="Microsoft.VisualBasic"
StackTrace:
at
Microsoft... more >>
there is no 64-bit Jet (MS Access) OLEDB driver.
Posted by Darin at 4/29/2007 7:02:38 AM
Since there is no 64-bit Jet (MS Access) OLEDB driver, what is the
recommended solution for this delimma.
Our application uses SQL Server as the daatabase engine, but we have
about 5 meg of static data stored in an Access database. We chose that
because it is easy to read, and can be password ... more >>
Persistent settings
Posted by John at 4/28/2007 2:13:24 PM
Hi
I need to store the path to db in my app. I have used app setting for this.
Unfortunately various clients have different db paths and I have set them up
once on each client location. The problem is that when I send them updates
and they uninstall the old version and reinstall the new versio... more >>
Persistent settings
Posted by John at 4/28/2007 2:12:09 PM
Hi
I need to store the path to db in my app. I have used app setting for this.
Unfortunately various clients have different db paths and I have set them up
once on each client location. The problem is that when I send them updates
and they uninstall the old version and reinstall the new... more >>
Send keystroke to a datagridview control
Posted by Bernardo Salazar newb at 4/28/2007 10:20:02 AM
Hi everybody...
i need help with this issue: i have a textbox control with the focus. at
side, i have a datagridview control populated with some data. i need to
control behavior of dgv control from textbox. when i press pagedown/pageup
key (in textbox), i need to send that key to dgw, to move... more >>
a vb calculator, but with a twist.??
Posted by Ron at 4/28/2007 9:00:36 AM
Hello,
I made a vb calculator just a simple one using code like this.
ansmult = txtinput.text * txtinput.text
ansplus = txtinput.text + txtinput.text
but my calculator works like this. I enter in a number say 20 when I
hit the + , *, -, / operator signs, the 20 goes away from the testbox
... more >>
vb equivalent
Posted by John at 4/28/2007 12:20:54 AM
Hi
What is the vb.net equivalent of vb set x = nothing?
Thanks
Regards
... more >>
Zipping files
Posted by John at 4/28/2007 12:15:26 AM
Hi
Is there a way in vb.net to zip files?
Thanks
Regards
... more >>
vb.net c# mix
Posted by John at 4/28/2007 12:00:00 AM
Hi
Can I add classes written in c# to my vb.net project? If so how can I call
c# classes? Same as in vb.net?
Thanks
Regards
... more >>
How does WebRequest work?
Posted by Tosco at 4/27/2007 9:42:59 PM
I'm trying to use for the first time WebRequest, but all the simplest
examples that I find in the documentation or Internet don't work.
For example this:
Public Shared Sub Main()
Dim request As WebRequest = WebRequest.Create("http://
www.google.com")
Dim response As WebRespon... more >>
Can someone tell me where to post a code question for the following
Posted by jbonifacejr at 4/27/2007 8:52:28 PM
Sorry if this angers anyone. I'm posting here and to the .NET group. I
am unable to get a return value from a stored procedure in .NET using
the following Sproc and .NET code
Here is the code in my stored proc.
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[sprocRe... more >>
Date/time calculations
Posted by John at 4/27/2007 8:44:39 PM
Hi
How can I check if the value stored in a datetime variable is over an hour
earlier than current date time?
Thanks
Regards
... more >>
Where does the config file go?
Posted by Jerry Spence1 at 4/27/2007 3:37:57 PM
I am getting a protocol violation error from an IP product and after some
searching I found the following fix:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<!-- User application and configured property settings go here.-->
<!-- Example: <add key="settingName... more >>
Sending email from within app
Posted by John at 4/27/2007 3:15:25 PM
Hi
How does one send email from within a vb.net app?
Thanks
Regards
... more >>
Get file's associated application / app icon
Posted by LoanWolf at 4/27/2007 12:38:03 PM
I'm working on a Windows Explorer-like application.
What is the best way to find out what application is set to open a
particular type of file? Is there a function to do this? Do I have to go
through the registry and check ClassesRoot?
Also, once I have the application, I want to be able... more >>
how to correctly dispose/close a form?
Posted by Rich at 4/27/2007 11:52:03 AM
Public Class MainForm
Dim frm As DetailFrm '--frm is a Form Level variable
Private Sub MainForm_Load(...)
frm = Nothing
....
End Sub
Private Sub btnOpenDetail_Click(...)Handles btn.Click
If frm Is Nothing Then
frm = New frmDetailData
frm.Show()
Else
... more >>
Multiple Source Files and Delegate/AddressOf
Posted by eBob.com at 4/27/2007 10:59:53 AM
(Not that size matters, but ...) I have a program which is getting too big.
So I'd like to split it into several source files. I know that I can create
a ModuleX.vb source file which looks like this ...
Module ModuleX
Public Sub DoX()
MsgBox("message from DoX")
End Sub
En... more >>
Finding a share's directory spec
Posted by NetworkElf at 4/27/2007 10:39:58 AM
Hi all,
I'm writing a service that needs to discover the full directory path for a
given locally based share at startup. IOW, I need to have the service
running on someserver to take \\someserver\someshare and give me
c:\somedir\somedir\shareddir.
I'm not quite sure where to start readi... more >>
possible to use Bang ! notation in place of "Not" keyword?
Posted by Rich at 4/27/2007 9:22:06 AM
If Not st1.Equals("something") then
Do Something Else
End If
if str1 != "something" Then ...
I realize that != is C# stuff and/or can be also be used in Tsql, but is
there any implementation of bang ! in VB.Net? Just checking. Any samples
appreciated.
Thanks,
Rich... more >>
string extraction
Posted by Etayki at 4/27/2007 8:39:00 AM
Hi!
I am having this problem.
I have two strings:
george.bell@krypton.co.au
liana.sarin@lertin.gov.uk
I want a general expression that will extract the following from the
two strings above:
co.au
gov.uk
Does anyone know of how to do this in a few lines of code using
regular express... more >>
Querying a CSV File
Posted by ge0193387 NO[at]SPAM otc.edu at 4/27/2007 7:19:54 AM
I have a csv file here that is output from another program. Once this
csv has been completed the information needs to be extracted in
multiple formats into a formatted excel spreadsheet (sheet a is
ordered a certain way with specific information and summary rows, ...)
I created the code liste... more >>
How to capture Item's event through an object of its collection in a external class?
Posted by planet.creativa NO[at]SPAM gmail.com at 4/27/2007 6:53:50 AM
There are two classes
1) Key - contains some public variables, one method "Reset" and one
event "valuesReset" which is raised by Reset method.
2) Keys - this class is collection of objects of class 'Key' and it is
inherited with ReadOnlyCollection(Of key).
I'm pasting the code here
Class... more >>
About Hashtable
Posted by Rajeev at 4/27/2007 5:36:23 AM
Hi,
I am using a eventgenerator class that accepts HashTanle as one of its
parameter.
I have to pass NULL for that value in my vb.net code.
I tried DBNull but it is not working.
Could anyone help me with this ?
Regards,
Rajeev
... more >>
How to pass args for events
Posted by spaulsamin NO[at]SPAM yahoo.co.in at 4/27/2007 4:40:06 AM
Hi
Please let me know how to do the following
here, i have property and event in a class, now i want to fire the
event from the property when i get value, how to pass args for the
below event
would you FILL UP THE (?) MARK .
Property required() As Boolean
Get
... more >>
Regular Expression: Match with... tolerance
Posted by teo at 4/27/2007 3:30:05 AM
Hallo,
I'd like to match a given string, let's say
fghilm
in a bigger string, let's say
abcdefghilmnopq
but I'd like to have also a toleranche, let's say
about 1 chars
so if we have if in the bigger string
one different char, like z in
abcdefghzlmnopq
or
one missing char, like... more >>
Copying/Cloning a control
Posted by Jon Ellis at 4/27/2007 12:44:00 AM
Hi All,
I want to implement an 'generic' undo by placing a copy of a control in a
stack using System.Collections.Generic.Stack. Basically this way I don't need
to know if a user has edited text in tree, added or deleted a node etc,
added items to a list box etc etc. I just push the control... more >>
Coding complex interface among several people
Posted by Peter at 4/27/2007 12:00:00 AM
Hi,
I have a project which has a very complex main interface,whose controls will
be located in more than 10 layers of containers. How should we do to make
every one do their work side by side? Is it a proper way to create MDI form?
Thanks for any response,
Peter
... more >>
Insert to access database via vb.net 2003
Posted by Mike.Kanet NO[at]SPAM gmail.com at 4/26/2007 9:41:35 PM
I have been trying for the last couple of weeks to insert a new record
to a database. I have been able to update the existing records but
when I try to insert it does nothing, not even give me an error code.
Below is a sample of what I've tried lately:
Try
DataAdapter.InsertCommand.Parameters... more >>
extra row being added to table
Posted by Alex at 4/26/2007 9:15:34 PM
Whenever I run this code, I get an extra row added to my table with a
primary field text of "System.Object". This code is intended to
simply add a single row to a single table based on the value in the
tbOrd.text textbox. Instead, two rows are going in - one is intended,
the second is not. An... more >>
Possible to call methods 2 levels up the inheritence tree possible(not just 'MyBase.X()')
Posted by Jack at 4/26/2007 7:59:43 PM
Hello,
I have a 3-level class hirarchy:
1=Grandparent
2=Parent
3=Child
The Grandparent has a method called OnPaint which I want to override
from the Child class. I can do this, but how can I call the
Grandfather's OnPaint() method inside this newly overrided one in the
child class.
... more >>
Why doesn't the compiler use ToString for implicit conversions?
Posted by Mike S at 4/26/2007 7:28:31 PM
Maybe I'm missing some fundamental unwritten law of OOP, but I was
wondering why the VB.NET compiler doesn't take advantage of the fact
that all .NET objects, being derived from the Object base class, have
a ToString method defined on them, when a reference type is used in an
expression where a ... more >>
Big Trouble in updating any application
Posted by Vinay Patel at 4/26/2007 7:23:56 PM
Hi frnds
Here i stuck with big .. problem
i have developed one billing system software now the problem is when
ever i modify something in software ,
to install the new setup i has to uninstall previous s/w so is there
any way to create application
or setup or update pack in this case t... more >>
Forms not responding
Posted by kahsiang.wong NO[at]SPAM gmail.com at 4/26/2007 5:34:27 PM
Hi there,
When there is a new entry in the event log I will create a new
instance of a form which shows the information in the event log.
However, once the new form is created, my application becomes
unresponsive.
Can anyone help me with it?
Public Overridable Sub NewMessageArrive... more >>
Running a windows form project from commandline
Posted by RSH at 4/26/2007 4:13:42 PM
Hi,
I have a silly question...
I have a Windows Form project (VB.Net) that was created in Visual Studio
2003. The project runs great.
Now I have to add the ability to run the same application from a
commandline. The obvious issue is going to be with all of the form specific
settings... more >>
|