How Repeaters Are Supposed To Work

Jun 25, 2012

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.

View 1 Replies


ADVERTISEMENT

"Make Single Instance Application" Supposed To Work Across Multiple XP Users?

Jun 30, 2009

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?

View 2 Replies

VB Form Equivalent To Asp.net Nested Repeaters?

Jul 5, 2010

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.

View 3 Replies

Custom Paging In Child(Inner) Nested Repeaters?

Jul 12, 2010

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.

User1
No Msg Code
1 abcd Cl-6

[code].....

View 1 Replies

Repeating While It's Not Supposed To VB?

Jan 28, 2011

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

[Code]...

View 8 Replies

Code Doesn't Go Where It's Supposed To?

Mar 2, 2010

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.

View 5 Replies

Form Do Not Close When It Is Supposed To

Jun 7, 2011

I have a method where I am making a trial period. When the date has exceded its trialperiod the program will not close.

The code looks like this:

Public Sub DemoRestrict()

If My.Settings.dteStartDate = Nothing Then
My.Settings.dteStartDate = Now

[CODE]...

Why does the form not close? is just runs to the next method in the load sequence

View 3 Replies

Make Sure A File Is Where It Is Supposed To Be?

Jan 17, 2012

I am making a program, but I need to make sure a file is at a certain place on a computer other then my own. How do I do this?

View 5 Replies

What Are Operators Supposed To Do With One Or Both Objects Being Set To 'Nothing'

Feb 1, 2011

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..

View 2 Replies

Custom Button Is Showing Border When Not Supposed To?

Aug 25, 2008

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.

View 1 Replies

Sql Select Statement In Vb Returning Value When Its Supposed To Be Null?

Apr 3, 2012

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 & _

[code]....

View 1 Replies

Change Calculator And Is Supposed To Calculate The Number Of Dollars?

Sep 16, 2011

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

[Code]...

View 8 Replies

Creating An Internet Filter That Is Supposed To Interface With Web Browsers?

Oct 22, 2009

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.

View 2 Replies

SelectedItem Property Of The Combobox Is Supposed To Return A Integer Value?

Jun 22, 2010

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?

View 4 Replies

Global Variable - Value Of Num1 Supposed To Be Equal Everywhere In The Form At A Given Moment ?

Nov 8, 2011

HTML

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 ?

View 1 Replies

Supposed To Be Fullscreen In WPF Touchscreen Application Is Moving When Inner Listbox Is Scrolled?

Jun 30, 2010

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:

[Code]...

View 1 Replies

Vb Shell Script - (supposed To) Local Area Connection Ipv4 Static Ip Address

Jun 12, 2011

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

[CODE]...

View 3 Replies

String Supposed To Find And Replace A Portion Of The Text And Write The Changes Back Out To The File Via Streamwriter

Jul 22, 2010

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:

[Code]...

View 2 Replies

LINQ Group By Multiple Values Does Not Work Well But Work Well In C#

May 29, 2012

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:

[Code]...

View 1 Replies

PerformClick() Doesn't Work - How To Make It Work

Feb 2, 2011

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.

View 21 Replies

VS 2008 Could Not Get Form To Work On Work Computer

Aug 21, 2009

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.

View 7 Replies

DB/Reporting :: Will SQL Statements That Work In Compact SQL Server Also Work In The Express Edition Of SQL Server

Jul 25, 2010

will SQL statements that work in Compact SQL Server also work in the Express Edition of SQL Server?

View 2 Replies

Work Around For PrincipalContext If Has To Work With .net 2?

Jul 21, 2010

Dim pc As PrincipalContext = New PrincipalContext(ContextType.Domain, GetPath) ADUserInfo.PasswordVaild = pc.ValidateCredentials(LoginName, Password)

View 1 Replies

Error:Project Work On Seven System-Don't Work On XP System

Oct 19, 2011

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

View 1 Replies

EXE Program Don't Work Debudding Of Program Work

Jan 8, 2012

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.

View 3 Replies

Get VB App To Work In VWD?

Mar 28, 2011

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.

View 1 Replies

How Does Look-up Work In VB

Mar 14, 2011

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

(RadioButton1 = 4 Seater Car, Normal Fare)
(RadioButton2 = 6 Seater Car, Time & HalfFare)
(RadioButton3 = 8 Seater Car, Double Fare)

But there is also a time Issue as well:

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?

View 5 Replies

Using VB6 Don't Work On .net?

Oct 19, 2009

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.

View 9 Replies

Best Way To Work With RSS Feeds

Jan 23, 2010

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?

View 2 Replies

Get A Percentage That Just Does Not Seem To Work?

May 23, 2010

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.

temp = FM/TM
temp = temp * 100
percent = FM * temp

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved