I'm having lots of trouble understanding how repeaters are supposed to work and how I'm supposed to use them. Basically, I have a label, a set of image buttons, and a div within a repeater. When you click on the button, I want to populate the div that was created with these repeaters (so a different div for each iteration of the repeater).[code]I can't get the repeater to iterate. It's only firing off once and then stops. I can't get a label with the repeater data source's Subject (a field in my database) to appear.
I am writing a program in VB.net (vs 2008) that requires that only one instance of the executable be running at a time. Naturally I went for the simple solution by selecting the "Make single instance application" checkbox in the Project properties. Unfortunately, this option does not seem to work across multiple users that are logged into a single XP machine, thereby causing the same issues for my program as if I were able to run multiple instances on one single user. Granted this is a corner case, that someone would switch users while my program is running, but I'd like to understand the limitations. So my question is whether the "Make single instance application" property is supposed to work across multiple users? or is it limited to only one-instance-per-user.
Here are the steps the recreate the issue (prereqs: computer with XP pro installed, 2 user accounts (not on a Windows Domain), and a dummy "single instance" program created using the property mentioned above):
1) Log in with user1, start up the single instance program 2) Switch to user2 (StartMenu -> LogOff -> Switch User) 3) Start up the single instance program using user2
*After step 3, the program launches without complaint even though another instance is running on user1. Is this a glitch? or by design?
I'm trying to convert an asp.net website to a vb.net application. It's my first go with vb.net so please try and make any responses as simple as possible.On my website I have a page that uses nested repeaters. The data source is a dataset with relations.Im trying to replicate this in a form. I've created my dataset and relations, but I'm struggling to find the best way to display my data within the form. For each parent row there can be a varying amount of child rows. The parent row simply shows an index number via label. The child rows contain text that can vary from a single character to 1000 characters.I have tried to use a dataRepeater as the parent control and a datagridview as the child control.I'm struggling to find out how, and at what point, to bind the data to the datagridview.
Iam using nested repeaters with Dataset (not using Datatable) to retrieve information by passing parameters. So far I have bind the two repeaters clearly and everything is working fine.Here the list of messages created by each user datawise(parameter passed) will be displayed, and there could be more than 50 messages created by each user daily, So now I want to do custom paging for each user.But Iam unable to proceed further, as the next, previous, back, first links are placed inside the child repeaters footer template and i coudn't access these links even by findcontrol method.
So, I'm making my program which let's people auto-update other programs. Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim path As String = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) & "UpdateFiles" Label1.Text = "Finding updates..."'To do: Find all files in the folder, and let em update one at a time. Write names of Plugins to label2.text ProgressBar1.Maximum = 10000
I have a VB.Net project that I haven't worked on in awhile. I got into this morning and started to run it. I got some errors so I decided to step thru the code. I enter the Page_Load event of a Form module and execute a function call and it takes me to a "End Function" statement. Totally bypasses the function that was called. I continued to step thru it and it just took me randomly thru code. No order whatsoever. I believe I've had this happen before but don't recall how I fixed it.
Using 2 objects of the same type, I'm trying to implement < and >, but I can't seem to find any authoritative source on what to do with either or both being Nothing. In other words what the accepted practice or MSDN suggestions are.[code]Accessors is my canonical method for centralizing an enumeration of the properties (all are decimal)return false for both if either is Nothing?I found a comment, but can't seem to verify or validate it that A null object is always less than a non-null object..
I was playing around with designing a custom interface for a test application and I am using a custom image for a close button. I am using the FlatStyle properties to define it's look'n'feel. I've set the border to 0 but when the application loses focus, the border of the button shows up.I have tried to force the property to go 0 again when the application's "LostFocus" event is captured but doesn't work.I am also using a "rollover" method using MouseHover and MouseLeave events to change the image of the button.Using Visual Basic 2008 Express Edition.
My code seems to behave a way I don't understand. Sometimes it returns null as expected and sometimes it returns a value when its supposed to be null. How can someone explain this? Here is the code that selects from access and displays the result in a messagebox:
cmd5.Connection = cnn cmd5.CommandText = "SELECT receipt_num " & _ "FROM brought_coffee, farmer where crop_year= " & yr & " and " & _ "brought_date=#" & dtt & "# and farmer_centre='" & ctr & _
I am trying to learn how to use the modulus operator.this excersise is a change calculator and is supposed to calculate the number of dollars , qtrs, dimes, nickels and pennies from the change that is calculated.
in the form if i put a value in for owed = 30.00 and paid 34.25 my dollars returned = 4 and that is correct but the number of qtrs = 0 and should be 1. I am not sure how to correctly use this - any assistance you can provide is great - this is purely educational
Private Sub btnCalc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalc.Click Dim owed As Decimal Dim paid As Decimal Dim change As Decimal
creating an internet filter that is supposed to interface with web browsers, eg. Explorer, Chrome (not a web browser I made) and then block specific websites on the browser. I'm kind of lost on where I need to start with the interface. Could someone please just point me in the direction I need to go for 1) the program to work with any browser 2) For blocking specific sites.
My question is, the SelectedItem property of the Combobox is supposed to return a integer value, is it not? Because I am getting back integers, sometimes, then the next time through I get back a String. Has anyone else had a problem like this with the Combobox?
Public Partial Class WebForm1 Inherits System.Web.UI.Page Public num1 As Double[code]...
This is a part of a calculator code. When you press the button "BtnAdd" the text in TxtRes is held by the global variable "num1" and the operation number (whether add or subtract) by "oper". My problem is : OUTPUT 1: prints num1 = 25 (for example)While OUTPUT 2: prints num1=0
Why is this happening ? Isn't the value of num1 supposed to be equal everywhere in the form at a given moment ?
I am writing a GUI application to run on a touchscreen device using VB.NET and WPF--it must be full screen at all times, like a kiosk app; the window must not be able to resize or move in any way. The window contains a ListBox that users can currently scroll through by dragging across the list. The problem I'm seeing is that when the user drags across the list, the whole window moves a bit, exposing the desktop underneath, then springs back into place once the user stops dragging. I have not been able to figure out how to keep the window stationary while still allowing users to drag across the ListBox to view all list items. Here is a somewhat simplified version of my code:
heres the script basically it sets (supposed to) Local area connection ipv4 static ip address to 10.XX.XX.2 but it dosent work it works fine if you run cmd as addy and put the script in netsh interface ip set address "Local Area Connection" static 10.XX.XX.2
Dim txtlen As Integer = Len(TextBox2.Text) Dim IPAddy As String = "" Dim asciiSplit(4) As Char
I have thios code that will load a php file (text file) into a sting via streamreader then its supposed to find and replace a portion of the text and write the changes back out to the file via streamwriter. I put my code together and after running it look at the file and it's unchanged. After looking closer it appears the problem is the find & replace operation I am doing on the string. Here is my code:
I found that when group by multiple values does not work well with VB.NET, but it works well with C# ,here are my code, is there something wrong with my VB.NET Code? Here is my VB.NET code:
I have an application that requires data be entered, and after entering, a button is clicked to process that data. Clicking the button works just as it should--the data is processed properly. In constructing a test module, I provide a set of data values, followed by:
btnWhatever.PerformClick()
Nothing happens. I have used this syntax for years, and it has always worked flawlessly. I have triple checked everything else and isolated the problem to the failure of the PerformClick(). The PerformClick() is in a test subroutine that does nothing but fill textboxes and labels with default data, then calls the PerformClick() on the button to begin processing. Again, the button works fine, the data is entered as it should be, but the PerformClick() does not fire the click event.
I have a form that works on my local Machine I created into. I have Office 2007 on this machine. I created the Form with the Excel 12 Reference. I move the Entire conetence of the Project folder to my work computer. Which has Office 2003. Do I need to recreate the form with the Excel 11 reference. I could not get the form to work on work computer. IT has a com error. I am acessing the EXE for the debug folder w/in the Bin Folder.
I'm using vb2008 with DB MSA2007 (save it to MSA2003) on Seven(7)System After I create my project I build it(make exe). then I took the file of project (application) and the DB from Debug Folder.
I tried to run this application with DB on another computer it's system is seven and MSA2007 and work very well. then I run it on pc it's system XP and MSA2003. it showed this error
Application Error THE APPLICATION FAILED TO INTIALIZE PROPERLY (0XC000135). Click on OK to terminate the application
I'm building a VB(2010) program to create the graphics for my laserprojector.The program works when I debug it in VB, but when I run the EXE program in the release directory, it doesn't work. The problem in the EXE program is theat I can't draw/view graphics in the picturebox..I coppied my whole program to a new VB project, but I'm having the same problem...In the original project, where the program works, there are no warnings or errors.
I created a windows form application using Visual Basic Express Edition 2008 but I did not know I could not use it on the web, which is what I wanted but being new to VB I just got a lot of headaches trying to figure this out. It works fine as a windows app but now just recently I installed Visual Web Developer 2005 to so I could create a web application from the windows app.
It is a simple windows application of a datagrid but now I want to run the same design application I made in Visual Basic to Visual Web Developer Express 2005. Is this possible? And, what do I need to do? I have all of the associated files in my project folder in Visual Basic Express folder.
how does look-up work in Visual Basic, I have done research on this but it does not explain. I have a Form1 called( Booking form) with 2 ComboBox's and 1 TextBox. each called (Destination_FromComboBox) and (Destination_ToComboBox) and (FareTextBox)and another form2 called (Fares Form) with 3 TextBox's each called TextBox1 (FromTextBox), TextBox2 (ToTextBox2), TextBox3(FareTextBox).So when I select (Booking Form) and Insert or select a Destination from (Destination_FromComboBox) and Insert or select a Destination To (Destination_ToComboBox) I want to read from (Fare Form/Fare Table) and give me the fare in FareTextBox on the Booking Form. Also on the booking I have 3 Radio Buttons
If the time is Between 05:00 & 23:59 then normal time should be used If the time is Between 00:00 & 02:00 then time & half should be used If the time is Between 02:00 & 05:00 then Double time should be used
I have watched loads of video's and looked through forums and other codes for the combination of the above, without success?
I have this great way to use VB6 I treated my project like a .exe file.Say I want to work on c:work directory.I just save as the .vbp file to c:work directory
All the other files (.frm,.bas,.cls) files are in a special directory called library ALL of my .vbp files, in c:work1, c:work2, c:work3 refer to that one same directory.How can I do that in vb.net?
Why this is important? Bugs always happen all the time. If I just run .exe file, when bug happen, I cannot do a thing. However, if I run the project file and run the program in debug mode, when bug happen I can figure out what happen.
I am a CS grad, but haven't had much to do with programming since my school days as I went the BA route.Anyways, there are a few things that I do manually on the computer and thought that I could probably save time by creating an application for them.But I'm not really sure how to start.I'd like to be able to keep a history of Completed eBay listing so that I know when the price point is good and when it is too high.I noticed that eBay has an RSS feed, so I think I can do it. Just a couple of quick questions:
1 - Can I instruct VB.net to open a web browser and read an RSS feed, or would I need to manually do this myself and then run the application?
2 - What is the best way to work with RSS feeds? Should I convert the data into XML first?
I am trying to get a percentage that just does not seem to work.I am using WMI to get the Total Physical memory of my system and then the Free Physical Memory. Then get the percentage.
2147483648 - Total Memory 838028 - Free memory
According to Task Manager my physical memory is 59%. This is the code I am using but I can not get 59% or 41% that is free.