Forms :: Listview Itemactivate Stops Working?

Dec 23, 2009

I have two forms frmA, frmB. I have a listview on frmA with a couple items with tags. In the listviews Itemactivate event I get the FocusedItem's tag and open frmB. Everything works fine until I close frmB and come back to frmA. The original item is still selected but the Itemactivate no longer opens frmB. I can step right into the frmB.Show line on frmA, it's just that frmB nevers shows.

Private Sub ListView1_ItemActivate(...) Handles ListView1.ItemActivate
Select Case ListView1.FocusedItem.Tag
Case "showfrmB"

[code]....

I've tried adding Hides, Activates, etc. with no luck.

View 4 Replies


ADVERTISEMENT

VS 2010 ListView ItemActivate?

Mar 2, 2011

When the ListView's ItemActivate event occurs, how can i get the item that was activated? I tried using the 'sender' in the sub but it returns the ListView, rather than the ListViewItem.

View 2 Replies

C# - ListView ItemActivate Delay Between When The User Clicks The Item And The Event Fires

May 12, 2009

I have a ListView with the Activation property with HotTracking. There appears to be about a 2 second delay between when the user clicks the item and the event fires. Is there a way to get the event to fire immediately upon the user click?

View 2 Replies

Gif Stops Working?

Jul 28, 2009

I have an animated gif in a picturebox that's loaded from the start.The problem is, whenever any application goes on top of the app the gif stops moving.Example : the app is open (gif is animating), I open notepad, I open the app (gif has stoppd animating)How do I keep it animated, even when the app is not visible?

View 2 Replies

C# - ReSharper Stops Working?

Aug 13, 2010

Running solution with VB.NET & C#, ASP.NET, VS 2008 with ReSharper 5 Most of the time, ReSharper is working (redundant code grayed out, squiggles, etc.)Sometimes, on the same code where it was working, nothing is highlighted to show ReSharper is enabled.I haven't done anything except modify code and debug.

View 1 Replies

DLL Stops Working After SA Account Disabled

Nov 4, 2009

I've written approx 4 projects that utilize a central DLL for database access. The DLL was written in VB.NET using the .NET 3.1 framework. All the code works great. Recently, I went through all the code and updated the connection strings to use a new username and password since they were using the SA account on SQL Server 2005. After recompiling and uploading the DLL to the web server, I disabled the SA account. All of a sudden, the DLL stopped working. It just stopped. I know that the code is ok because I copied it into a aspx file and it worked. I had to re-enable the SA account in order to get things back to normal, but I really would like to eventually disable it.

View 1 Replies

C# - Accordion Stops Working With Update Panel?

Nov 21, 2011

i have a accordion control(using jQuery) on the page. When I insert accordion into an updatepanel, set a button outside the updatepanel as its trigger and click on the button the accordion stops working. If I remove the updatepanel, it starts working.

<script src="Scripts/ddaccordion.js" type="text/javascript"></script>
<script type="text/javascript">

[code]....

View 1 Replies

IE8 Back Button Stops Working On ASP.NET Page?

Jul 29, 2010

If you do a search for "ie8 back button disabled" you'll see a number of blogs with people having difficulties with the Internet Explorer version 8 back button becoming disabled. This now happened to one of my ASP .Net pages. The page uses a user control, aspx page, and a master page. It uses no redirects and seems to be happening when I click the back button and then the forward button (after the forward button is clicked, it does not fire the Load event and the back button becomes disabled).

View 2 Replies

VS 2008 : Button Works Once Then Stops Working?

Aug 17, 2009

I am having issues with my program. It should update every time i click the button, but it runs through perfectly on the first click, after the first click it does nothing.This is a UDP Program, where the client sends a packet with a sequence number and payload which are separate items in the packet. The server receives the packet, reads the sequence number, and then sends back the next sequence number the client should send.The client then receives that from the server with the same payload.. And then should change its sequence number to the one it recieved, and send that to the server..The client works up to where the client updates to the sequence number it receives from the server.. But both show no effect on any clicks after.

Heres my Client
Option Strict Off
Option Strict Off
Imports System.Net.Sockets

[code]....

View 21 Replies

VS 2008 Service Suddenly Stops Working?

Aug 16, 2010

I'm having trouble getting my archive service working. The service counts files in a directory and sends a email. Pretty simple. However, it randomly stops working. I debugged the service and found nothing wrong. I also have it writing to the eventlog so that I can use it to determine where it fails It progresses through each function normally. I thought my program was failing at on point, because it was only posting "Email Notification Service is Running". However, I realized it wasn't posting to the eventlog source so I've been playing around with different ways to post the message to the eventlog. Am I missing something from my code below? I'm really scratching my head with this one.

[Code]...

View 5 Replies

Application Stops Working When Minimized Or Lost Focus?

Aug 5, 2010

I have an application I run on a netbook that is folded up inside a robot.Occasionally, something from the system tray will pop up unexpectedly. This removes the focus from my application I also thought there was a way (in forms properties in the vb6 days) that would allow to "run when minimized"? In short, I want this application to be running and nothing (asides an application error message) else getting in the way.

View 4 Replies

Service With Timer SMTP Email Stops Not Working?

Jul 21, 2010

I'm having complications with imlementing a service that uses a timer to send emails. In my code, it stops in GetDocuments() after TisValid() validates the directory path. I tried using a addhandler and threading but neither worked.

View 3 Replies

VS 2008 System Wide Hotkey Stops Working?

Oct 11, 2010

Has anyone used a system wide hotkey and notice it no longer works? But the program is still running fine. When I run my program and it starts the hotkey, sometimes it will work fine all day, other times within 15 minutes I press the keys and the program does not react to it. I am using the keys Control-F2. Here is my

Public Sub SetHotkey()
Try
Select Case ComboBox2.SelectedIndex

[code]....

View 1 Replies

C# - Code Stops Working After I Create A Setup Using Publish Wizard?

Jan 15, 2012

Public Sub bk()
Try
Dim strDatabasePath As String =

[code].....

View 1 Replies

Code Stops Working After Create A Setup Using Publish Wizard?

Jan 15, 2012

Public Sub bk()
Try
Dim strDatabasePath As String =

[code]....

View 1 Replies

IDE :: VB 2008 Express: Program Runs On PC But Stops Working When Trying To Run .exe On Another Computer?

Jun 3, 2011

And here I am with a new problem in my program When I debug it everything works fine (the buttons, progressbars, pinger, spambot, When I compile it and run the Executable file, it works too.When I run the Executable file on another computer (tried on 4 different ones) the program stops working and
I get this error:

{$ exception. "Failed to create the form For more information, see Exception.InnerException error: File or assembly ." Microsoft.VisualBasic.PowerPacks, Version = 9.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a "or one of its dependencies not found. The system can not find the file specified .."} System.Exception {System.InvalidOperationException}

[Code]...

View 1 Replies

Use Bmp.save To Create Some Thumbnail, It Works Fine For A While Then Stops Working?

Jul 20, 2012

I tried to use bmp.save to create some thumbnail, it works fine for a while then stops working,how to troubleshoot the problem? the code doesn't generate any error:

Dim bmp As Bitmap = WebsiteThumbnailImageGenerator.GetWebSiteThumbnail(address, 800, 600, width, height) Dim ScreenshotPath As String = Request.PhysicalApplicationPath + "Screenshots" Dim ScreenshotName As String = UserAccountDB.GetUserFullNameByUserLogon(User.Identity.Name).Replace(" ", "_") + Now.ToString("yyyy'-'MM'-'dd'-'HH'-'mm'-'ss") + ".bmp" bmp.Save(ScreenshotName) imgWebsiteThumbnailImage.ImageUrl = "~/Screenshots/" + ScreenshotName

View 1 Replies

Windows Media Encoder - No Erros But If Run The App Vshost.exe Stops Working

Jun 18, 2010

I'm using this code for encoding with wme.

No erros but if I rn the app vshost.exe stops working.

Its somethignw ith the DEP?

Imports WMEncoderLib

Public Class Form1
Dim WithEvents MyEncoder As WMEncoder
Dim MyProColl As IWMEncProfileCollection

[code]...

View 3 Replies

Restart Laptop Code Stops Functioning / Need To Copy Delete Then Paste To Get It Working Again

Feb 9, 2011

First of all i want to say i feel very rude as my current posts only consist of me asking questions and never posting to give answers. im still learning and do not want to give people diff advice and sending them down the wrong path.I am doing an assignment for my vb.net course and im having a problem with tabcontrol. I originally didnt do my code inside a tab control. Then i had to copy all the code and button etc over to the tab control then the code completely stopped working. I copied the code then deleted it and pasted it back into my project and it worked again. But it seems everytime i restart my laptop the code stops functioning and i need to copy delete then paste to get it working again!I need to hand this assignment in shortly and i dont want to if my code is working intermittantly..

View 5 Replies

Forms :: KeyPreview Stops Work After Some Control Is Disabled

Oct 20, 2010

I set the HourGlass, disable the button (to avoid ppl that are too used with FPS games), do the serial communication bit that last a couple of seconds, then the set the mouse back to normal and re-enable the button.And I have a few more like those through the software using text boxes or drop-down menus.[code]My form is set in design time to be KeyPreview = True and I even tried to set it again after the Click. The routine is simply not called and the ESC key on the keyboard does not hide the form anymore.

View 1 Replies

Service Reference Stops Working When Make Changes To WCF Service?

May 26, 2011

I'm using Visual Studio 2010 and .NET3.5. I've created a WCF service application. I'm including two DLLs that contain the types I'm returning. The first method I wrote works both in WCF Test Client and also in a console application I created to test. When I move on to the next method that returns a generic list of a type. It works great in WCF Test Client, but when I update the service reference it acts as if the service is unavailable. All my objects say can't find reference, and I can no longer see it in the object browser. It's like it just disappears. I can still see it in the Service Reference folder. If I go back to the WCF app and comment out the contract and implementation of that one method it work again. I created a local class very similar to the class I'm using from the dll, and the it works. Is there something I'm missing here? Can someone point me in the right direction?

View 1 Replies

Convert Already Designed And Working Forms To MDI Child Forms?

Dec 11, 2009

I build my first Project composed of several forms and it�s working just fine. Id like now to redesign the project as a MDI Application. Once created the parent form, I can create child forms but thats not what I need. What I would need is convert my already designed and working forms to MDI child forms. How can that be done?

View 1 Replies

Data From Listview To Be Loaded To Another Listview But Different Forms?

Apr 21, 2009

I am having a problem regarding to pass all the data on the listview from one form to another and add another columns. The purpose of my columns is that I want to put text from there because I am sending a mail but I want to get the status of my message if it failed or send and write it at every end of the rows.

View 4 Replies

ASP.NET DataPager Not Working With ListView

Sep 23, 2011

I have a problem with DataPager with ListView, I am using ASP.NET with VB.NET. I have searched for the answer, but I just can't seem to get it to work. Whenever I binded the data, the front page was okay, tried second page, still the same data, etc. Then I tried rebinding the data each time pager was changed, the listview dissapeared.

[Code]...

View 1 Replies

Sort A ListView And Have It Working?

Apr 26, 2010

I'm trying to sort a ListView and have it working.. but was trying something.. and was curious why it doesn't appear to work..

In a gridview, the sorting event you can do a

With CType(sender, GridView)
.DataSource = Os
.DataBind()
End With

[Code].....

View 1 Replies

Background Worker , Working With Listview?

Dec 1, 2011

ive developed my app and am im trying to improve its use ability. Ive created a dvd management app for myself and i have a function that retrieves all the data for all the movies displayed in my listview. It works fine but the interface hangs for the entire time.Ive decided to use a background worker so i can browse other movies with all the data is being fetched.Im having silly problems with getting the index value for my listview when im using the .DoWork()

ive had these errors:

1. Cross-thread operation not valid: Control 'ListView1' accessed from a thread other than the thread it was created on.

2. nvalidArgument=Value of '1' is not valid for 'index'. Parameter name: index

the function works a dream whenvnot being called inside the doWork()

'New Objects
Dim fetch As New Create
Dim download As New Download
Dim parse As New Parse

[code]....

View 2 Replies

Working With Text Files And Listview?

Feb 20, 2009

I want to be able to grab a specific file from a specified directory, read the lines and display them in a text box. What I want to do, is search for multiple text files in a specified directory, display each name in a Listview and, as I click on them, their info is displayed in the text box below.

what I have so far:

Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

[Code]....

Also, when I closed the program and re opened it, it duplicated all of the text files in the list, but did not duplicate them in the directory. Not that I want it to, it just seems odd.

View 11 Replies

Listview DragDrop Multiple Items Not Working?

May 6, 2008

I trying to do a drag drop from a listview in one form to another instance of the same form (same application running twice).I have it working with single items selections, but I want to make it work with multiple selections. 289508(VS.71).aspxThis works if I drag/drop onto itself (the same form), which I don't want, but I need it to work across instances.During debugging it seems the code DragDrop code just quits at the line during the drop:Dim myItems() As ListViewItem = e.Data.GetData("System.Windows.Forms.ListViewItem()")Any ideas what is wrong or how to drag/drop multiple items in a listview between apps?

here's my code:
Private Sub ListView1_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles ListView1.DragDrop

[code]....

View 5 Replies

VS 2010 ListView - Cross Form Command Not Working

Jul 28, 2009

I currently have 2 forms, one with a listview and the other with a button coded to add an item to the listview. I've just discovered though that any command, no matter how right the syntax, to a form from a different form doesn't work. The only command that does work is Form2.Show. Otherwise nothing happens. There are no errors whatsoever. All the items in each form are all set to public.

View 12 Replies

Working With Listview And Database - Searching Back The Old Posts?

Mar 11, 2010

I have a listview attached to a dbase app I am working on, the last column has a price value and I would like to create a total value for this column in a label or text box below the listview control.I was searching back the old posts looking for some pointers or a code snippet that would do this, but was unable to find anything. i'm using vb 2008.

View 4 Replies







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