Stepping Through All IE Entities?

Dec 21, 2011

I am quite new to VB and have a Problem. I need to step through all IE entities and extract the html source of a tab where some conditions are met.

Private Sub TabPage1_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TabValues.Click, TabPage1.Enter, TabPage2.Enter
Dim err = "", status As String = ""

[code].....

View 1 Replies


ADVERTISEMENT

Each Loop Not Stepping

May 27, 2010

I'm creating a console application that uses System.Management to get WMI information about a selected computer.

The code below executes when the user enters the number 4 to see hardware information about the computer in question. Included is the function called to access the WMI Namespace's object collection[code]...

View 8 Replies

IDE :: IDE Won't Allow Stepping Into A Function?

Feb 13, 2010

have been experimenting with new algorithms for some existing classes, do it by copy and pasting code into newly created classes, adding the references then trying to adapt the unit tests till thy pass.Am stuck in a case where the code in the newly created class makes a call to another class (shared by the newly created class and the existing working class) and the IDE won't allow me to step into the code, showing "external code" on the call stack and mysteriously stopping on a non-breakpointed line in the code it wouldn't step into...a line that immediately precedes an error-generating line which i'm trying to trace and debug. In addition the working existing class makes the same call with no error and the IDE allows normal stepping into it

View 1 Replies

IDE :: Stepping Into A Referenced DLL?

Sep 1, 2011

After reading through several forums, which suggested that I should add a referenced DLL (whose source cod I have) to solution as an added project, I am unable to step through the code of the referenced DLL that generates an error. I also turned off"Enable just my code" from Tools->Options-> Debugging. However, I am still not able to step into the referenced DLL's code I added the pdb file and the referenced dll to the bin/Debug folder of the original code that I am working on

View 4 Replies

Stepping Into COM Callable?

Dec 17, 2009

I have a solution which contains among other things a project which is COM callable.

I would like to put some breakpoints into this and step through it but VS tells me "The breakpoint will not currently be hit".

how I can step into a com callable?

View 1 Replies

Stepping Through A Program?

Nov 27, 2009

Having a bit of a headache with stepping through a program.

I changed the Keyboard to VB6 in Tools > Options with the same result.

He's what happens.

* I put a break point on Line2. The app stops there and so far so good. * I press F8 or F10 or F11 (tried everything) and the app returns an error on line8 instead of stepping to Line3.

The error is obvious, but I want to step through my program 1 at a time.

1: connData.Open()
2: strSQL = "123"
3: strSQL = "123"

[Code]....

View 5 Replies

Stepping Through DLL Code?

Feb 10, 2009

I have a program, which is a GUI, that calls a DLL. I have both the program and DLL checked out of VSS. When I run the program (in debug mode so that I can step thru the code), it's erroring out in the DLL. How can I step into the DLL code to see where the error is occurring?

View 4 Replies

C# - Stepping Through VB6 COM Object Wrapped By .NET Class?

Jun 16, 2011

I have a VB6 object that is wrapped by a .NET class. As far as I recall it is possible to step through a VB6 object (compiled as a library) by simply running the VB6 library and inserting a breakpoint at the desired location.However this does not appear to be working in my case. I have attempted to recompile the VB6 object and re-reference it in my .NET project but this doesn't appear to have helped. there a way to insert Debugger.Launch() equivalent into a VB6 project?

View 1 Replies

IDE :: Application Run At Full Speed While Stepping With F8

Feb 24, 2012

I am using VS 2010 on Win 7 32 bit.I am debugging a VB application (simple Windows form) by stepping through it with F8; however, for some unknown reason it sporadically runs at full speed after I press the F8 key. This can happen at any given location in code and sometimes not at all.

View 2 Replies

VS 2010 F8 (stepping)executes Only First DIM Stmt And That's It?

Dec 23, 2010

'global declaration
Dim FILE_NAME As String = "EventList.txt"
Dim PATH_FILE As String = Environment.CurrentDirectory() & "" & FILE_NAME
'end of global declaration

[Code]...

Using F8 to step through all of the code, it gets to this sub, highlites Dim fs and then hit F8 again it just pops up the form, no message boxes - nothing. Other notes: EventList does exist in stated directory.

Any ideas why it wouldn't complete the sub? the first debug line after hit the f8 is: A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll but the file is there

View 5 Replies

VS 2010 Stepping Through && Reading Strings?

Apr 29, 2011

what is the easiest way to step through a string in this manner... I want to have my program look for one keyword and then another.. in otherwords it needs to find "hello56" and THEN find the word "bob" there are so many places the word "bob" is but I need to locate the "bob" thats after "hello56" Hope this example is clear.

[Code]...

View 3 Replies

VB Program Works Fine When Stepping Through But Crashes When Ran With The .exe?

Aug 12, 2011

Problem: The excutable of the vb program crashes when trying to run but when I step through the program inside of visual studio it runs successfully.

Details: The program performs a winscp.com transfer from a ftp server and then takes the downloaded file and extracts the data from it before sending it to a webpage. The program also decrypts a des3 encrypted file which holds the login details for the sftp server and the webpage.

My Thoughts: I was thinking this could be something to do with the excutable jumping ahead of the slower transfer and decrypt functions thus causing a "file not found" exception to be produced and the program to exit. Lending to this if I slowly (aka spend 10+ seconds stepping through the code) move through the code it works just fine.

As requested Crash Messages:(I capture everything in exceptions and exit properly so no "crash" is reported but the error I get in my logs is as follows:)

1st run with standard test case:Could not find file 'C:UsersAdministratorDesktop..ILC2INFOENC.txt'

2nd run standard case (the file above was not deleted by my cleanup function either as it could not be found)Could not find file 'C:UsersAdministratorDesktop..ILCNETSL10663.csv'

Background:The first file that is found missing is the encrypted login information file while the second file is the winscp.com downloaded csv file.

View 1 Replies

VS 2005 : Debugger Stepping To Non-executed Statement?

Nov 9, 2009

I've seen this in two different places & can't quite figure it out. I can think of at least two possibilities but don't have a lot of confidence in either.When stepping thru code I encounter the following:

If x = True Then
y = New ContextMenu
Me.ContextMenu = y

[code]....

x is False. The debugger stops on the If & I press F11 to evaluate it. The Debugger then advances to Me.y.MenuItems.Add(z), which is *not* the next statement that should execute. Nor does it appear as if it does execute as, when I press F11 again, the Debugger exits the Sub, as it should. But why highlight it as if it will execute?This is even more confusing in the next example:

If Not Me.FindForm Is Nothing Then
If Not TypeOf Me Is A AndAlso Not TypeOf Me Is B Then
Me.x = "OFF"
End If

[code]....

Me.FindForm is a Form, so it's not Nothing. Me is type A so the 2nd If is False. The Debugger stops on the 1st If, I press F11 & it advances to the 2nd If, as it should. Then I press F11 again & it advances to FatalException in the Catch block. What? Did the attempt to evaluate the TypeOf Me cause an error? It shouldn't, and it doesn't seem as if it did as F11 again exits the Sub rather than stepping into FatalException. So why did it stop there?

My first thought was that the intermediate code got out of step with the displayed source code. I've seen that in other IDE's with interactive debuggers, but usually because those allow you to run the Debugger without re-compiling the code. Not so with VS-so that seems unlikely.My second thought is that it's stopping there because those are the last 'executable' statements in the Sub. But that doesn't really make sense as, in other Subs, it will stop on the End Sub.

View 3 Replies

Force MS Chart Control To Not Use Decimals When Stepping Axis?

May 9, 2012

I have a data point with a y-value of 1 being plotted, the MS Chart control will use increments of 0.2 on the y-axis. How can I force it to not use a decimal, keeping in mind I will have values of >100 so I can't just force an increment of 1 on the y-axis?

View 1 Replies

IDE :: How To Disable Debugger Stepping Into DLL Control Source Code

Apr 6, 2011

I have created a DLL that contains basic functions used in my projects. With the DLL I:Compiled it as a Release Moved the .dll file to another folder Deleted the .pdb files in the binRelease folder When I add the reference of this DLL to my projects and I debug my code, I step through line-by-line and when it comes to a function from my DLL, it actually opens up the source files of my DLL and debugs line-by-line in the DLL source code.

This is REALLY annoying for my purposes and I have tried many things now to disable the debugger stepping into my DLL code. I did a text search in the DLL file and found it stores the path of the project folder.

So far the only thing that's worked is moving/renaming the folder where the DLL project source files are. But everytime I re-build the DLL, once again I would have to move/rename the folder again as it's updated the location of the source.

View 2 Replies

Stepping Through A Directory With Dir.getfiles(path,searchoption.alldirectories)?

Jan 2, 2012

When I have a directory setup with a subdirectory and both the top directory and sub directory have files in them I get a list of all the files with no directory info. That's OK, but I need to restore them to another location with the same directory structure in place. I'm essentially copying all files in a directory and it's subs to another location. The problem is the sub directory info is not in the files list so everything goes into the main directory. How do I get around this or can I? Here is what I'm using now.

I have a directory, NewProg in Program Files and a sub directory under it called Sub.

files=dir.getfiles("C:Program FilesNewProg",searchoption.alldirectories)

My.Computer.FileSystem.CopyFile("C:Program FilesNewProg" & File.Name, "C:NewProg" & File.Name,True)The Sub directory is not created and even when it is there, it always comes up empty with all it's files copied into the main NewProg.

View 1 Replies

VS 2010 Built-in Method For Stepping Back Through Folder Paths?

Jan 27, 2011

Is there a built-in method for stepping back through folder paths? Or a better way then what I'm doing? To go back two folder paths I'm doing it like this...

[Code]...

View 5 Replies

IDE :: Very Slow Debug Stepping With Vista 64 Running Vb 10 Express On Hp Pavillion Notebook

Mar 31, 2011

My HP dv6 - 1030US notebook has 4 gb of ram, and a Fujitsu MHZ2320BH G2 hard rive with 166 GB. free. running vista 64 SP2 and all current kb's installed. My problem is trying to test Vb 10 express with this unit. I am an ex vb 6.0 guy(beginner level) and still put small # of apps together for my remodeling company.

[Code]...

View 8 Replies

Entities And Multiple Databases?

Sep 26, 2010

We've got the following scenario:

Central Database (replicated across multiple servers)
Client Database 1
Client Database 2

The Central db has Users and Roles amongst other things The Client dbs have similar tables to each other but with some fields tweaked - contact, address, At present, each client db has its own user/role information which is copied from the central db by a scheduled process. I want to retrieve the user/role information directly from the central db instead (bearing in mind tables in the client db make reference to the user entity)

View 1 Replies

Inner Join In Linq To Entities?

Apr 23, 2009

Given two tables, customer and orders, how would one do a linq query to entities to find any customers with open invoices started before a certain date?

View 1 Replies

Link Up Different Entities On Submit Changes?

Nov 15, 2011

I am just digging into L2Sql and I am a little confused on what to do about inserting several records into my database that are related.

For example:

I have an entity mapped to a user table called user. This class contains UserId and Username.

I have an entity mapped to a preference table called preference. This class contains PrefId, PrefName, UserId.

I have an entity mapped to a profile table called profile. This class contains ProId, ProName, UserId.

When I ask a user to register for an account, this will populate a User object. I will then create two "blank" objects to relate to this user, a profile and a preference.

I notice that the dbml has a User property on both the profile and prefernce entities. Am I right in thinking that if I pass the User object to this property, this in turn sets the UserId for these objects?

If thats the case, when do I actually do this? Surely I would need to InsertOnSubmit the user object, query it back to get the Id and then pass this User object to the others before Inserting them?

At the moment I have this,

Dim reg As New User
reg.Username = username
Dim pro As New Profile

[Code]....

View 5 Replies

XML Resolves Entities On Save?

Aug 9, 2010

I have a simple XML file like so:

<?xml version="1.0" encoding="UTF-8"?>
<foo attr="blah &#176; blah"/>

When I load it into the .NET XmlDocument and issue a Save, i.e.:

xmlDoc = New XmlDocument()
xmlDoc.Load("c: empar.xml")
xmlDoc.Save("c: empad.xml")

the new XML file contains the resolved amp 176 (a degree sign). This then breaks the final black box I'm trying to load the XML into. I've tried playing with the encoding, to little effect. Is it possible for the parser to just echo what came in, without resolving the entities? Inerestingly, it doesn't resolve &amp;#176;

View 1 Replies

Abstraction Between Database Entities And Objects In C#?

Sep 17, 2011

I've just gotten started with development using Visual Studio (though this can be seen as a more language-generic question), and need done design answers regarding how to suitable relate a Database Entity/Table with an Class in-code.

Currently, I create a class who's attributes or iVars directly correspond to the fields in an Entity.

When I come to fetching all 'Customers from a Table' for example, I run a Select all statement against the database and for each result-row returned, I instantiate a new class Object where I use the Class' default constructor to set the instance variables. (I really wish there was a method like PHP's mysql-fetch-object()?)

I can then add each of these objects to say, a List(of Customer) and return it.

This doesn't seem like the best way to do it. If I were to change the Database schema, I'd have to reflect those changes in the class also.

View 1 Replies

Asp.net - Concatenating String In LINQ-to-Entities?

Apr 7, 2011

This code works if I take out

" " + p.MIDDLE_NAME

Thus the remaining code looks like:

p.FIRST_NAME + " " + p.LAST_NAME

Maybe LINQ-to-Entities just doesn't support concatenating more than two strings at a time?

Protected Sub btnFilter_Click(sender As Object, e As EventArgs) Handles btnFilter.Click
Dim dbContext As Campus6Entities = New Campus6Entities

[Code]....

View 1 Replies

Asp.net Mvc - .NET - Efficient Collection Of Database Entities?

Jan 15, 2010

I have a Page class and a PageCollection class in a 3d party ORM framework. I can fill the PageCollection based on parameters (pageid, parentid, url etc..) (SQL query). But I need the data multiple times around the ASP.NET MVC website (Sitemap, Authentication), so I chose to load all pages 1 time and reference that (global) collection.

GlobalClass.Pages //is PageCollection containing all pages

I have now created functions which return a temporary subcollection or single entity based on the parameters mentioned before (pageid, parentid, url etc..).

GlobalClass.Pages.GetByPageId(id) //returns single page entity
GlobalClass.Pages.GetByParentId(parentid) //returns subcollection

The site however got very slow.

cache the subcollections (GetByParent())? create internal hash-lookup tables for the collection? Something else...?

Namespace BLL
Public Class PageCollection
Inherits CustomCollectionBase

[Code]....

View 1 Replies

Databind To A Treeview Using Linq To Entities?

Feb 12, 2010

I have seen other similar questions dealing with WPF Almost exactly the same but I can;tfigure this out in ASP.net. I have a Pages table with a parentpage foreign key and want to databind them to a treeview. In the past I have created a hierarchicaldataset from a dataset but would like to stay within the entities framework if I can

View 1 Replies

EF4: LINQ 2 Entities Query Works In C# But Not In VB

Dec 11, 2010

the query below throws a System.NotSupportedException: "Unable to cast the type 'System.Linq.IOrderedQueryable1' to type 'System.Linq.IQueryable1'. LINQ to Entities only supports casting Entity Data Model primitive types." The exception is only raised in the VB.Net version. When translated to C#, no exception is raised.

Dim doesThisCrash = From outerOrder In orders
Where outerOrder.ProductId =
(From p In products Join o In orders On p.Id Equals o.ProductId

[Code]....

View 4 Replies

Get CurrentTime From SQL Server With LINQ/Entities?

Sep 14, 2011

I am using LINQ with Entity Framework, and I need to get the SQL server timeCan anyone tell me how can I create a method so it retrieves the current server time?

View 1 Replies

VS 2008 Linq 2 Entities Can't Add An Association

Mar 21, 2009

I'm a bit of a n0ob to all this and I'm having trouble finding good resources on the net.What I'm trying to do is define a one-to-many relationship between two entities. I'm using the GUI tool in Visual Studio - and have created the tables in Microsoft SQL Server Management Studio.Basically, I have two tables....a 'Users' table and a 'Sites' table. A single user can have many sites associated with it.Users has a primary key of 'UID' and the Sites table as a primary key of 'Site_ID'.Sites also has a column 'UID' that should indicate which user that site is associated with.Anyway - it sounded pretty simple; but no matter what I attempt to do, I can't seem to get it to work. Mostly, I get validation errors - sometimes run-time errors, or sometimes, no actual data even though there should sites that match the UID of the user.I am able to connect and write LINQ against my Users table/pull down User objects - but can't seem to get it to know that the Sites are associated with the user.In the GUI - if I go to 'Add Association' and create a 1 to many link between Accounts and Sites - and Validate - I get an error saying, "Error1Error 11008: Association 'AccountsSites' is not mapped."

It seems like, when I try to make an association, it wants to link the 'Keys' of each entity.But U_ID and SITE_ID are the keys and, obviously, shouldn't match.If I click on the line it created in the GUI and I go to 'Table Mapping' I can see that it is trying to match those keys. Since I want it to match user_ids my first thought is to just make the U_ID the entity Key in the Sites entity but, of course, that's wrong because it would no longer allow a 1 to many relationship.

View 1 Replies

Communications :: Track Entities Id's From Client To Server?

Apr 17, 2012

Well first off let me say I am not sure if this should be in network or game programing but I think network programing is more relevant.

Anyway

I am creating my first game that runs over a network and so far everything is working. I have a server program, the clients can connect and see each other flying around. (weeeee)

However I have hit a wall when trying to make them shoot. The most easy way I can think to do this, is to have the client tell the server �hay i need a bullet pointing at x angle moving at y speed� the server then spawns a bullet entity then sends a spawn entity packet to all the clients. The main problem I see with this, is that the clients gun will have a delay based on latency.(funValue -= 1000)

The only other way I can think to do this, is to have some fake bullets spawn on the client but when the client gets the spawn bullet packet from the server, I am not sure how to keep track of what fake bullets to delete.

View 1 Replies







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