Addnew databinding problem:
Hi - i have databinding problem, i wonder if someonecan help:
Briefly, i have table with the following fields
ID (identity, not NULL)
ClientID (integer, not NULL)
ProgramID (integer, not NULL)
StartDate (datedtime, not NULL)
EndDate (datetime, nullable)
Databind is...
Hi Guys, if i've implemented dragdrop code on a treeview to re-arrange the nodes.
I validate the node that i'm attempting to move in the DragOver event.
In final phase of validation, we must ensure that the TreeNode under the cursor is not the TreeNode that is being dragged or a child of that...
Hi - I've written a recursive routine to save the contents
of a treeview to XML file. This works - but only the root
node is correctly formatted. All other nodes are on the
same line: Any idea whay this happens and how can i fix it.
Thanks in advance for any help.
Code sample:
Private Sub...
Hi,
I'm new to ASP.Net and i've been following course work and projects supplied on a CD-ROM. I've copied
a project to my C:Drive and and changed the folder and file properties to read/write. However when I
try opening the .sln or .vbproj file it gives an error message "Unable to get the...
Hi - I have a web-browser control on a form - the browser control displays a word document via a .navigate method. I would like to be able to click any where on the document and 'click event' or similar is fired - so that i can do my stuff - in this case play an audio file. Presently clicking on...
Hello - is there a simple way to configure the web-browser control such that all links on a displayed web page are disabled. (Only the URL set in the .Navigate method is displayed - users can't go to other sites).
Thanks for any help in advance, Ken.
I'm using the WebBrowser control to open Word, Excel files. I want the loaded documents to be in a "read only" mode. However, the WebBrowser allows edits, context menus, etc. I've tried SubClassing the control, but have determined that this is impossible thru normal methods. Any ideas.
Note: If...
Hi - i'm trying to printing the contents of a web browser control. Users want the prompt dialog displayed before printing.
I done something like this:
AxWebBrowser.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT, SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_PROMPTUSER, 0, 0)
If i on clicking the cancel button...
Hi - i've followed guidelines on HOWTO: Use the WebBrowser Control to Open an Office Document in Visual Basic .NET
http://support.microsoft.com/?kbid=304643
Now i want the the docment to be displayed in Print layoutview mode, with no ruler and readonly.
I've got hold of the document object...
Hi, I've created a number buttons on a form dynamically.
I then setup handlers for MouseHover,MouseLeave, Click etc: See below:
Private Sub CreatebtnControls()
Dim answer As String
Dim index As Integer
answer = 5
For index = 1 To CInt(answer)
'...
Hi Guys, i'm building a setup and deployment project. I need to create subfolders under "\Documents and Settings\All Users" such as \MyCompany\MyProductName\ - how do you do this?
In my application i do the following - to read this folder:
AU_Path =...
BindingManagerBase issue
I have a strange problem in using databinding - i wonder if anyone can help.
Briefly - i have a class with a dataset and all associated code to update the DS.
The UI form gets a reference to the DS and controls are bound to the fields in the DS.
When i add a new record...
I have a large config XML file that uses simple tags:
e.g
<tag1>"Data1"</tag1>
<tag2>"Data2"</tag2>
I read this file into a dataset then process the only row. This works very well - also updating the xml file is a breeze.
However some tags really need attributes so that further process may be...
Hi - i've installed MS VB.Net Resource kit - however when i open the welcome page(http://localhost/vb.net resource kit/welcome.aspx) vs.net 2003 pro displays the code instead of starting up the asp application. How do i get this to work.(The local web server is up and running - i'm using XP pro)...
I have a event handler for a command button double click event. When the app runs - the code in the event handler never gets executed. Why? I've had a look at the MSDN help and the double click event is not listed for a command button - however it is available from the drop down list. Is there...
Hi - i'm trying to connect to the a local pubs DB (SQL7).
Connection string is:
Public OledbPubsConnString As String = "Provider=SQLOLEDB.1;Data Source=(local);" _
& "User ID=sa;Password=sa;Initial Catalog=pubs"
' The connection to the Pubs database.
Dim cn As New...
Hi - does anyone know the sequence to read a Access DB picture/image field using the oleDbReader and getbytes method. (I know how to stuff the resulting byte array on a picture box...).
Secondly - what is the correct syntax to use when you want to write/clear an image back to the database.
Do i...
Hi - i'm using a strongly typed dataset called say, CategoryDS - which links to a table Category in a DB. Category table has the following field:
CategoryID , int, (key)
CategoryName, string
Description, string
VB.Net has created all the methods and properties for CategoryDS - great.
I'm have...
HI - how do you escape the apostrophe and quote symbol in a text field when used in a sql statement.
i.e. SELECT name FROM mytable WHERE names='qwerty's'
Will this escape sequence work against an Access DB?
Thanks in advance.
Ken
Hi - i have a text field in a access DB which can accept text upto 255 chars (the max size of path+filename)
When i write to this field via VB code (INSERT ...statement) i get the following error message:
"Message=The field is too small to accept the amount of data you attempted to add. Try...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.