I have a problem that adding a new ROW with duplicate UNIQUE id throws CONSTRAINTException that I cannot always catch.. Randomly general exception halts my VB software, sometimes catching works. here is my code.
Private Sub BindingNavigatorAddNewItem_MouseUp()
try
DataGridView1.CurrentRow.Cells(0).Value = InputBox("give new ...
I use BindingNavigator1 that has ADD ROW / DELETE ROW buttons. However, I want to make my own bigger button with hotkey alt+a.
How to call BindingNavigator1. AddNewItem button from my button / or make hotkey for it? There is no existing method..
...
I have subclassed the ASP.NET Panel control to customise the rendering of the GroupingText. However, while it appears fine in the final output, it is not appearing correctly in the designer.
A sample of what I am doing follows:
Is there anything else I need to do to make it appear correctly in the designer?
Imports System.Web.UI
Pub...
Hey,
I have a report that requires the user to enter their ticket number, then they click view, and it generates. Pretty standard. What I would like to do is have the report automatically export to a pdf when they click view. Does anyone know if this is possible and how I would approach the matter?
Thanks for any input.
...
VB.net seem to place my database file into /userprofile/local settings/apps/2.0/data/random/random/appname/data/ folder.
Can I define easier location for my published app. I am also worried that when upgrading this database is ignored or something bad happens?
...
I wonder if I can simulate the action of the button
in this website by VB.NET code ?
http://www2.xonefm.com/hot10/index_in.aspx
...
Ok, say a user buys a 6 month subscription to my online app. Using c# or vb.net, How would I work out what the expiry date should be to be inserted into the database.
...
How would I use regex to split the set-cookie header into name and value:
Eg. test_cookie=Cookie+check; path=/; domain=.Site.com
name: test_cooke
value: Cookie+check; path=/; domain=Site.com
...
how do i make it say that on form load, the first item in the listbox is selected?
...
A partner of ours is making a call to a web service that includes a parameter called token. Token is the result of an MD5 hash of two numbers, and helps us authenticate that the user using our partners system. Our partner asks the user for two strings, concatenates them, runs them through MD5, and then calls our web service. The result...
i designed a very simple vb.net application. i would like to my users to be able to access it through a website instead of locally. is this posible? how do i do it? does the webserver have to have special extensions? do i have to convert the program into a different format?
...
Does anyone know how to parse SQL Text with VB.NET?
Ex: I got a sql file "CREATE TABLE..." i want to get an array of columns and an array of data types.
...
I am moving from VB to C#. I am trying to loop through a collection class which is a collection of data classes but I can't seem to get the actual values out of the data class properties(find the correct code to do so). I have a method that loops through the collection class(Contacts) and saves each record(Contact). I am using reflection...
I need to convert my winform VB.NET application to an ASP.NET application.
My current application has 4 forms, it reads a remote XML file, and uses a datagrid to collect user input and to create a report.
It is a very simple application, and I would like to know where to start to convert it to ASP.NET.
...
Hi, I am working on a simple FOSS VB.net program that operates mostly in one window( http://code.google.com/p/slotshuffle/ link if anyone would like to help review the code or or wants to see for reference).
I have searched online for ways to notify users of an updated version, and most of them involve changing the method of deployment...
I just listened to podcast of Chris Smith talking about F# in which he talks about how F# is a language which allows you to approach problems in a different way than in C#/VB.NET, i.e. instead of "pushing bits around" you "chain together data transformations", and that how F# will "become like XML", something that you use in addition to ...
Hi,
I am trying to fix an ASP.NET application that is also written is VB and uses session variables to store the information from the logging page. In Firefox, the application runs just fine, but in IE (I am using IE 8), when I summit the logging credentials, the session variables become empty (takes me back to the logging page).
The ...
Does anyone have a function that will iterate through ever masterpage/sub masterpage that a content form belongs to, and iterate through each control of said masterpage/sub masterpage?
The reason why i ask is that i'm building up an increasingly confusing stack of masterpages and am starting to "lose" controls - i.e. not being able to f...
I am working in a vb.net application.I've placed a button within the DatagridView control .Button caption is not displaying in DatagridView.Following properties are set to the button
Text as Browse
UseColumnTextForButtonValue as True
...
Near duplicates
How do I calculate relative time?
How do I calculate someone’s age in C#?
Anyone know how of a function in VB.NET or C# that will take two dates, calculate the difference and output that difference in an english string? For example if I pass the dates '3/10/2009' and '3/25/2009', the function would return the s...