Best to explain with an example.
TabControl has Tab1 and Tab2.
I'm trying to make it so when Tab1 is selected, Button1 is visible and stays visible.
When Tab2 is selected, Button1 is invisible and stays invisible. I need it to work when the Tab is clicked, not when the content area of the Tab is clicked.
Thank you.
...
My application requires a user to log in and allows them to edit a list of things. However, it seems that if the same user always logs in and out and edits the list, this user will run into a "System.Data.SqlClient.SqlException: Timeout expired." error. I've read a comment about it possibly caused by uncommitted transactions. And I do ha...
Hi,
I'm a Java developer wich is just starting to learn .net. When coding my user interfaces with Java we can count with the TableModel interface wich makes the process of representing objects in data tables something really easy.
In .net what is the equivalent? I don´t want to show data which is stored on databases, but the tabular re...
Hi,
How to set time in a DateTimePicker control where i have already changed the display format = Time
I want to make the DateTimePicker to display time that i set.
e.g. set it to 5:30 PM
I try but fail using:
DateTimePicker1.Value = New DateTime(0, 0, 0, 5, 30, 0) 'fail at runtime
any idea, thanks
...
I am looking for some library that takes the TextWriter approach to writing SQL commands (much like there is the HtmlTextWriter in .Net for writing html). I am NOT writing CRUD-type commands for relational data, I am writing arbitrary SQL (bulk inserts, table creation, creating backups, etc). Any suggestions are appreciated.
...
Hi,
I'm reading an excel file using oledb in my asp.net code (vb).
I have no problem going over the data but in one of the cells there is a string that "hides" a hyperlink. I want that hyperlink and not the string...
Any ideas?
Thanks
...
I would like to convert Word document to an Image so i can use iTextSharp to then convert the image to PDF. Please let me know if there is a free way to convert word file into an image.
...
I have two separate areas in my form.
Left side for radio buttons, combo boxes, etc.
Right side for tabs and even tabs within tabs.
For each tab selected, I'd like to display different controls on the left side for use in that tab.
I've tried using many things, including focus, click, etc. Nothing seems to work the way I intend it to. E...
Hopefully I've explained myself good enough this time. Can't seem to get a real answer. Trying to make it so when I select certain tabs, certain controls on the left will disappear or reappear.
http://img43.imageshack.us/img43/7533/scrnshotg.jpg
Also, when "Stats" is selected, I need it to auto-select "Frequency"
Ex. On click/focus/se...
I apologize if that title is confusing. This question may be a result of lack of coffee and/or sleep, but my mind is not working correctly right now.
Anyways, I have an inheritance tree like so (I know the architecture isn't ideal):
BaseClass
GeneralForm : Inherits BaseClass
SpecificForm : Inherits GeneralForm
And an object like so...
"There is no row at position 0."
Hi I keep on getting this error message.
If mytable.Rows.Count >= 0 then
dim myid = dt.Rows(0).Item(6).ToString
End if
Please help me in this matter and I would never ever like to see this message again.Thanking you all.
qry_Sql = qry_Sql + " select SRNO,EMPNO,ATTN_YR,ATTN_MONTH,"
qry_Sql = qr...
Hi, I have a AdvWebGrid where the 7th coloumn is DynEdit where user will enter the value.Now I have to take the enetered value and insert into the Sql tablel. For example i have 7 records in the grid the user will enter some comments for the first three record and save.Now i have to insert/update the first three comments in the table.
...
This is the same as this question, with one remark:
We manage to get the printerSettings modified, but how can we save them back as the default printer settings? (the original question does not post/answer this)
The code I'm using right now:
<DllImport("winspool.Drv", EntryPoint:="DocumentPropertiesW", SetLastError:=True, _
ExactSp...
Good day, I've just started teaching myself VB.net. I'm trying to create a simple note keeping program.
I've come across a problem, where by I call the Clear method of the ListView object, and its column headers disappear.
screen shot of what happens
The code for button 2 is:
Private Sub Button2_Click(ByVal sender As System.Obje...
I'm currently using jquery ajax to call a pagemethod (which works great);
$.ajax({
type: "POST",
url: "ArticleList.aspx/GetArticleTags",
data: "{'articleId' : " + articleId + "}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
...
I wanted to create a function which would return the path of the current web site. This is what I thought was working while running in the IDE:
Public Shared Function WebsiteAbsoluteBaseUrl() As String
Dim RequestObject As System.Web.HttpRequest = HttpContext.Current.Request
Return "http://" & RequestObject.Ur...
I've just made myself up a problem and am now wondering how to solve it.
To begin with, I'm using some third-party components, including some calendar controls like schedule and timeline. They're used in the project classes more or less like that:
Friend Class TimeBasedDataView
'some members
End Class
Friend Class ScheduleDataView...
For example, you can type this.Loaded += in C# and press TAB a couple of times to automatically generate an event handler. Is there an equivelent in Visual Basic?
Typing Addhandler Me.Loaded and pressing TAB or RETURN does nothing.
...
Is there any equivalent to an aliasing statement such as:
// C#:
using C = System.Console;
or:
' VB.NET '
Imports C = System.Console
...but within method scope -- rather than applying to an entire file?
...
Hi,
I have GridView control in my asp.net page with auto generated fields
there is only footer template is present under asp:TemplateField.
I can bind this gridview with any of databae table as depend on user
selection. Now want to add new record in database so I have added text
boxes on footer template cells at runtime depend on numbe...