all groups > vb.net > february 2006
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
Save and Load a TreeView to SQL Database
Posted by cjinsocal581 at 2/28/2006 9:33:31 PM
Hi all, I am struggling with the following:
Environement:
VB.NET 2005
TreeView Control
SQL Database
I need to be able to save a TreeView's nodes into a SQL database and
then be able to call them from the Table back into the TreeView when
the app starts up. (If the table is empty, then jus... more >>
Problem measuring a string
Posted by Martin Horn at 2/28/2006 7:47:13 PM
Hi all,
I wonder if someone can help me out with this problem.
I want to confine input of characters in a textbox to the amount that will
fit in a given width on printed output.
For example on the form that my program prints there is a space for text
that is 100mm wide, the string for w... more >>
Invalid Cast Exception using Inherited Object
Posted by cgoetz at 2/28/2006 7:40:38 PM
Hi all,
I'm using VS 2003 with the 1.1 framework and am experimenting with the
DataGrid and am applying several different techniques to it. Here is
what works:
Dim WithEvents datagridtextBox As DataGridTextBoxColumn
Apply different style criteria to the DataGrid and then...
datagridtextBox... more >>
Date calendar in datagrid
Posted by Reidar at 2/28/2006 6:48:59 PM
In a windows form, is it possible to use a date calendar in a date-field in
a datagridview?
regards
reidarT
... more >>
DataBindings Help
Posted by Andrew Bassett at 2/28/2006 6:12:44 PM
Hey everyone...
I have what I hope is a simple question. I have a form with about a dozen
controls bound to a databinding source. That datasource is bound to a
dataset. Without using a binding navigator, how do I do anything with this
thing?? I can't for the life of me figure out how to add... more >>
How to retreive deepest XPath value from XML using VB.NET
Posted by Goran Djuranovic at 2/28/2006 5:51:17 PM
Hi All,
Does anyone know how to retreive deepest XPath value from XML document =
by using VB.NET? For example, if I had an XML file like this:
<Root>
<Customer>
<Name>MyName</Name>
</Customer>
</Root>
I would like to retreive "\Root\Customer\Name" out of it. Something =
... more >>
Avoiding & when adding a JavaScript event handler using Attributes.Add()
Posted by Nathan Sokalski at 2/28/2006 5:26:25 PM
I add a JavaScript event handler to some of my Webcontrols using the
Attributes.Add() method as follows:
Dim jscode as String = "return (event.keyCode>=65&&event.keyCode<=90);"
TextBox2.Attributes.Add("onKeyPress", jscode)
You will notice that jscode contains the JavaScript Logical And ... more >>
Connection String
Posted by Pete Smith at 2/28/2006 4:55:25 PM
What is the connection string to connect MS Access database using OLEDB.
Not able to write quickly the above connection string. Vb.Net and .Net
Framework 1.1.
Thank you,
Pete
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Check for Updates not Working
Posted by Vayse at 2/28/2006 4:53:08 PM
In VS2005, clicking on Help/Check for Updates is no longer working.
Is there an address I can check to see if I'm on the latest version?
Thanks
Vayse
P.S. Currently on:
Microsoft Visual Studio 2005
Version 8.0.50727.42 (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727
Instal... more >>
Inherit from a Generic
Posted by PJ at 2/28/2006 3:26:18 PM
What is the equivalent syntax in VB.NET?
public class PagingList<T> : List<T>
{
}
... more >>
print functions in vb.net
Posted by WebBuilder451 at 2/28/2006 3:23:27 PM
I need some one to point me in the right direction. I need to create a simple
program that will list installed printers and get a list of items in a
directory (all PDF's then send them to the selected printer. Ok not that
simple.
Any help would be appreciated.
Thanks
kes
--
thanks (as a... more >>
User Control and Threading Help
Posted by teillon at 2/28/2006 3:18:25 PM
I'm trying to write a VB.NET utility that performs a looping task--say,
list all files in a directory, over and over again, continuously.
I want to be able to put this logic in a User Control with a text box
for the path to monitor and a list box to display the results.
I want to be able to ... more >>
How to cache a user control in the MasterPage?
Posted by rh at 2/28/2006 2:59:17 PM
Hi,
My MasterPage contains a user control used for navigation. I have some .aspx
pages that use this MasterPage and I would like to cache only the user
control used for navigation.
How do I go about doing so?
I know that I can cache specific controls on a page by setting the
VaryByCon... more >>
.NET Print to File
Posted by Samuel Shulman at 2/28/2006 2:26:01 PM
Hi
I set the PrintToFile property of the print dialog to True but the program
still sends
the document to the printer but not to a file (although it did create the
file the was empty)
Any suggestions?
Samuel Shulman
... more >>
BUG? RectangleF.FromLTRB(-100, 100, 100, -100)
Posted by Hypnotron at 2/28/2006 1:53:04 PM
Dim Dimensions as RectangleF = RectangleF.FromLTRB(-100, 100, 100, -100)
debug.writeline( "Height = " & RectangleF.Height.ToString)
Why the heck is height -200 ? How can you have a negative height?
Width is ok, but height is clearly wrong. This looks very much like a bug to
me. Further, w... more >>
Menory compaction
Posted by Adrian at 2/28/2006 1:19:31 PM
Hi
From within a VB app how do you cause a global memory compaction or free
up as per the many memory freeing applications?
Can you say via VB to windows to clean-up/ free up memory used by just one
application?
I have been looking for an example but thus far can't find one!
Than... more >>
vb.net Deployment - Storing the Installation Directory
Posted by Jesse Albert at 2/28/2006 12:07:32 PM
I'm having a complete brainfart so I'll just let you all know the issue
and listen to any possible solution you can offer without asking for a
specific way to do this ;)
I have a Solution ( VB 2005) that consists of 3 projects: A Service, a
Configuration Project, and the Deployment project.
... more >>
SOAP Client
Posted by cj at 2/28/2006 11:51:18 AM
Simple Object Access Protocol is new to me. Can anyone point me to a
simple soap example? I found something on MS site but they don't tell
me what namespace to include for dim SOAPClient = New SOAPClient to work
for example.... more >>
select query changing bound controls data
Posted by phonl at 2/28/2006 11:01:28 AM
I am a vb6 ADO developer looking at vb.net 2005 and ADO2.net.
I used the vb.net 2005 data wizard to bind some controls to a database. Now
I want to run a select query and have the bound controls reflect the change
from the query. How would I do that?
The wizard created a TableAdapter, Bind... more >>
Converting c# to vb.net
Posted by Venkatachalam at 2/28/2006 10:58:27 AM
Hello,
Can any one of you help to convert this code in vb.net. I dont know vb.net...
Thanks in advance
With regards
venkat
public event ReceiveDataDelegate ReceiveData;
public delegate void ReceiveDataDelegate(object sender, ReceiveDataEventArgs
e);
private void somemethod()
{
... more >>
Frameworks and Check/Install
Posted by MMesarch at 2/28/2006 9:45:48 AM
Hi,
A previous question about sharing applications had a response that I need to
make sure the other computers I was sharing my VB.NET application needed to
have the Framework installed.
I got through that and manually installed the dotnetfx.exe file on the other
computer.
But as I ... more >>
OnRenderMenuItemBackground question
Posted by academic at 2/28/2006 9:10:18 AM
I'm trying the following but can't determine in the sub if e points to a
item that is checked. I did a quick watch and looked and looked but can not
find anything that I can use to determine if it is checked.
Am I missing something? Is it there?
Protected Overrides Sub OnRenderMenu... more >>
Enum Properties Revisited
Posted by zacks NO[at]SPAM construction-imaging.com at 2/28/2006 8:33:25 AM
I have a class library that contains:
Public Class clsClassLibrary
Public Enum myMethods
METHOD1
METHOD2
End Enum
Private _method As myMethods
Public Property Method as myMethods
Get
Return _method
End Get
Set(ByVal value as myMethods)
_mymethod = value
End S... more >>
Exchange 2003
Posted by vbnetdev at 2/28/2006 8:22:20 AM
Looking for code samples and/or tutorials to automate Exchange 2003 tasks in
a vb.net enviornment using WMI or other tools as suggested, such as creating
mailboxes for users in active directory, modifying and updating the
recipient policy, aliases for users, and associated properties in relati... more >>
Threading - Object reference not set to an instance of an object
Posted by jay NO[at]SPAM firstcoastdesign.net at 2/28/2006 8:17:21 AM
Believe it or not...I am new to this side of development. I will try
to provide a little background on this app...I am calling this from an
aspx page. Feeding in the params and basically hoping to go out to the
servers specified in the xml files, run the command that I passed in
and return the... more >>
VB.Net and SQL Server Developer
Posted by PMBSS at 2/28/2006 7:53:25 AM
Sorry for posting on the board, but I am left with no other options.
We have an urgent requirement for a contractor or permanent person to
fill a role in Swansea with VB.Net and SQL Server.
Please respond if you have these skills and are available for work
immediately.
Note: I am not from... more >>
asp:label updated via javascript does not get its value saved in the viewstate
Posted by ibiza at 2/28/2006 7:52:57 AM
Hi all,
I have a label on a webpage that shows the result of a calculation.
When the page is loaded, the label text is "", and is updated with
javascript via its innerText property. Once I click on a asp:button, I
try to check the value of the label and it is still "" in the button
click even... more >>
Programming for USB Modem
Posted by Don Ford at 2/28/2006 7:15:29 AM
I'm using VB.NET 2003.
Device manager reports that my USB Modem is using COM 6.
For what it is worth the manufacturer has failed over a period of two years
to supply example code or methods.
The example program "VB.NET How-To: Using the Comm Port" does not dectect
COM 6.
The Act... more >>
Check if an object is a type object
Posted by Fredrik Strandberg at 2/28/2006 6:52:54 AM
Hi!
I receive an object as a System.Object argument to a method. I need to
check if the object is a Type object or not (that is, not a specific
type, but if the object is a type object in general). How can I do
this? Is there a way of checking if my object inherits from the
System.Type class?... more >>
navigation?
Posted by HockeyFan at 2/28/2006 6:29:33 AM
I've got a newbie question. I'm new to ASP.Net and have a control that
someone else wrote that produces the following:
<td style="white-space:nowrap;"><input type="image" name="ctl00$btnSystem"
id="ctl00_btnSystem" src="../images/btnShortcutSystemOn.gif"
style="border-width:0px;" /></td>
... more >>
"Object reference not set" when calling web service
Posted by DaveO. at 2/28/2006 6:14:33 AM
Hello,
I'm calling a VB.NET web service, also from VB.NET, and I get the error
" Object reference not set to an instance of an object" on the
following line in Reference.vb, when it tries to make the call:
Dim results() As Object = Me.Invoke("Phys_Post", New Object()
{SessionID, a, b, c, d,... more >>
datagrid and vertical gridline color
Posted by gerry.brennan NO[at]SPAM gmail.com at 2/28/2006 6:09:14 AM
Hi is there a way to change the color of the vertical gridline in a
datagrid or listview
... more >>
Web service - business objects don't show up
Posted by Water Cooler v2 at 2/28/2006 3:21:59 AM
I create a test Web service like so:
[WebService(Namespace="http://blah.com")]
public class ServiceThingy: System.Web.Services.WebService
{
[WebMethod]
public int ReturnFour()
{
return 4;
}
}
I create another class other than this, like so:
class BusinessOb... more >>
vb9 revisited
Posted by guy at 2/28/2006 12:22:27 AM
further to the comments raised by Justins VB9 post a few days ago - to which
i have never seen such agreement! - is there a site we can contact with our
opinions on the proposed changes?
--guy--... more >>
FS: Visual Basic.NET VB.NET books for sale - CHEAP!!!!!!
Posted by MiniMe at 2/28/2006 12:00:00 AM
I have for sale seven (7) Visual Basic 6 books. I'll take $21 for all
books. I'm selling them as a set only. I am in the Houston, TX area (USA).
If you are local to me, you are more than welcome to pick them up. If you
want them shipped to you, I will charge you actual shipping cost plus the
... more >>
FTP with SSH
Posted by Sara T. at 2/28/2006 12:00:00 AM
I have some problem to develop a small program to transfer files via SSH-FTP
(not ftps).
As I know, at this moment .NET framework both 1.1 and 2.0 are still not
support (support only standard FTP).
How can I do?
Could anybody reccommend any component both for free and comercial to handle... more >>
Eventhandler
Posted by Kalim Julia at 2/28/2006 12:00:00 AM
I need to delegate function using addhandler.
AddHandler mlcmdDELETERECORD.Click, AddressOf DeleteGridRecordEvent
Public Overridable Function DeleteGridRecordEvent(ByVal sender As Object,
ByVal e As System.EventArgs) As Boolean
mlDELETERECORDALLOWED = MsgBox("Are you sure want to delet... more >>
where can i get SQL Server 2000 Reporting Serices
Posted by LeAnne at 2/27/2006 11:17:40 PM
I've got SQL Server 2000 Developer edition.
Now, where can i get the SQL Server 2000 Reporting Serives from for Win XP
Pro??
I can't seem to find a link or any page where I could download this or buy
this from.
I just need a developer edition of SQL 2000 Reporting Services for Windows
XP Pro... more >>
Please help with an 'impossible' error!
Posted by jimmy84c NO[at]SPAM gmail.com at 2/27/2006 10:45:25 PM
Hi all,
I am getting the following runtime error:
"Cannot perform '=' operation on System.DateTime and System.Int32."
But I can't understand where the Int32 is coming from!!
The code is:
Drv.BeginEdit()
Drv("Editor") = Me.Recorder.Text
... more >>
Sending raw ASCII to a printer share...
Posted by Paul Aspinall at 2/27/2006 8:47:16 PM
Hi
I'm writing a web based system, which needs to direct prints to a Zebra
barcode printer.
I plan to use the ZPL (Zebra's own) programming language for sending Raw
ASCII to the printer, and therefore enabling the printing.
Does anyone have any sample code on sending Raw ASCII to a printe... more >>
View Source from WebBrowser (2005)
Posted by Doe at 2/27/2006 7:56:41 PM
I've been trying this for months. Doesn't work.
I've used the code in this article,
http://support.microsoft.com/kb/311288/en-us, HOW TO: Invoke the Find,
View Source, and Options Dialog Boxes for the WebBrowser Control from
Visual Basic .NET.
This code worked in VB.Net 2003 but not in VB.N... more >>
button in bold
Posted by James_Ptg at 2/27/2006 6:35:17 PM
Hello peole,
i'm begin with VB.NET (before i was under ASP and VB)
i have a -CheckBox- turned into a button with him properties Appearance.
so i whant that the text become in Bold so i have Write This ->
checkbox1.Font = New Font(checkbox1.Text, chkdef.Text)
But that dont work :-(... more >>
Getting primary key from new record instered into one table using ADO.net
Posted by Rico at 2/27/2006 5:55:01 PM
Hello,
I have a situation where I have a normalized table (Table1=InvoiceHeader,
Table2=invoicedetails). When I create an InvoiceHeader and Details, I'd
like to save the invoice header first, then associated the detail records
with that invoice by storing the InvoiceHeaders primary key (an... more >>
Using the && operator in generated JavaScript
Posted by Nathan Sokalski at 2/27/2006 5:42:42 PM
I have a VB.NET function that I am using in an ASP.NET page. The code
creates a String, which contains && (the JavaScript Logical AND operator)
and is used as part of the JavaScript sent to the browser. However, ASP.NET
is converting this to & even though it is intended to be part of the
... more >>
Printing
Posted by Samuel Shulman at 2/27/2006 5:18:12 PM
Hi
How can I give printing options from the Print Preview dialog so the user
will be able to select the pages to print
Currently when the user clicks on the print button in the toolbar the
document is sent immediately to the printer
Thank you,
Samuel Shulman
... more >>
extract data from spread sheet
Posted by Gonzosez at 2/27/2006 4:15:42 PM
How can I extract data from an excel spread sheet?
I know the sheet name but the range varies.
... more >>
web service project - no dll
Posted by MobileBoy36 at 2/27/2006 3:36:49 PM
Hi Group,
i'm building a simple "Hello world" Webservice in VS 2005 (framework 2.0).
The web service does work from within VS. But compiling does not result in
an assembly.
Also a disco file is not "produced" by Visual Studio.
The behavior is totally different compared with VS 2003.
What ... more >>
Help authoring tool for Windows app?
Posted by Ronald S. Cook at 2/27/2006 3:02:44 PM
I was just wondering if anyone knew the most common 3rd party tool to buy
for help authoring for our .NET Windows apps. We're looking to
choose/standardize on something. Or, is it possible there' snow something
built in that I'm not aware of?
Thanks,
Ron
... more >>
IIF in vb.net acts weird.. or is it me
Posted by parez at 2/27/2006 1:58:53 PM
Hi all,
why in the world would this fail ( throw an exception)
Dim str As String = ""
MsgBox(IIf(IsNumeric(str), Convert.ToInt32(str).ToString, str))
Why does it try to evaluate the true part when the condition is false.
Or am i missing something here.
Thanks ... more >>
Detecting a dialog
Posted by Phill W. at 2/27/2006 12:45:56 PM
Is there any way for a Form to detect that it has a Modal dialog displayed
"above" it and to get hold of a reference with which to manipulate that
dialog?
I have a Windows Forms application that can display several dialogs
(custom Forms contained in an external assembly - all my own code).
I'... more >>
|