VS 2008 Attempting To Log Into A Website?
Jul 10, 2010
But, I'm trying to make a fairly simple program that will log into a website(for now that's all I want it to do).
Currently I have: A 2 Text Boxes, Web Browser, And a button.
I have the ID's of the Username and Password fields on the site, I just need to know how to get the info to the fields.
View 10 Replies
ADVERTISEMENT
Aug 11, 2009
How do I fix it so that the program selected will be executed in windowed mode?
View 3 Replies
Jan 18, 2011
A form has a multi line textbox that is read line by line searching for "MSH". When found it adds that line as a parent to the treeview. each following line is added as a child. Works fine if only one "MSH" line but if more than 1 I get must clone or remove message. I did clone the message but I don't want a duplicate of what is there. I have tried several variations and have not been able to get the 2nd MSH to be added as a child but not parent.I have started to repeate code so was hoping some of you experts can point me in the correct direction. Here the section of code that partialy works.
Dim LoopK As Integer = 0
Dim New_MSH_Parent As String = "No"
Dim MSH_Node As New TreeNode() ' parent node
[code].....
View 7 Replies
May 12, 2009
I have a program where the main form is called (shown/activated) via a keystroke combination. When the form pops-up, I've set the focus to a textbox to begin typing right away.
When the keystroke event occurs, I have:Me.Activate()And in the Form_Activated event:
Textbox1.Focus() Simple right? It works the way I want it to, even after I've compiled and run the EXE, but ONLY if Visual Studio 2008 is running. Once I close my project in VS, with the program still running outside VS, the form is shown, but input focus is not set to the textbox.
Input focus is however still set to whatever it was previously, like a word document for example. My form will be topmost, but if I attempt to input text, it would still be entered into the word doc. why having my projects' source open in VS has anything to do with running the compiled EXE of said program?
I've even tried API calls to SetForegroundWindow and ShowWindow with the same result.
View 4 Replies
Aug 27, 2010
I'm, following the tutorial on creating your first program in Visual basic. I'm instructed to start a new project, and select windows form application. When I hit okay I get the following error:"Could not load file or assembly 'Microsoft.Build.Engine, Version 3.5.0.0, culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified."
View 1 Replies
Jan 2, 2010
When I attempt to drag a WMP control from the toolbox this error arises: [code]Has anyone had this problem? I was able to add this component previously, however this was on my desktop computer.
View 1 Replies
Feb 19, 2010
What Im making is like a face book and tagged login from my app
1. I have Combobox with 3 urls in there ( Facebook.com Tagged.com and Bebo.com )
2. I have a Form2 with webbrowser
3. I have a Button when clicked it should open up my form 2 and preview of the website which I selected in my combobox in form1
All I'm trying to do is when I select lets say facebook in my form 1 and click load it should open up my form 2 with facebook website in it.[code]Now when I click my button in form 1 it will load Form2 ( named Explorer1) but my form2 is not showing me facebook or tagged page for some reason
View 13 Replies
Apr 6, 2009
What I want is: To scan a website every 15 mins or so, (craigslist in this case), and email myself any new posts that come up. I know I need to use WebClient, but I never used that before. Another question would be how to only email when a new post is up and not receive the same email every 15 mins.
View 2 Replies
Dec 13, 2009
Im attempting to make a "Licensing" system, but I dont know where to start. I know I would need some sort of "database". Heres the basic idea of what I would like my program to turn out. "License" creator: -I give a "permanent" ID Generator to someone -They get an ID that only works for their computer, and doesnt change unless the computer is changed -They give me their ID -I input the ID into a "database" -Program creates a "License" file using the "permanent" ID Main Program: -Loads the License File -Checks if the License is a valid file (using the database)
View 2 Replies
May 28, 2011
I am not attacking this in the correct manner. See this code snippet ' Where dgv is the form DataGridView
[Code]...
View 2 Replies
Jul 12, 2011
I am attempting to make a form public. I've start out with this class:[code]I can see the stupid form thru intellisense, but when this code is run I'm getting a null reference exception. I believe this is because the stupid form has not been initialized. I thought that placing 'new' in my class definition would initialize the form.
View 4 Replies
Mar 4, 2012
I am currently writing an app that as a part of it function it has to write a value to the registry in
[Code]....
A first chance exception of type 'System.IO.FileNotFoundException' occurred in WindowsApplication1.exe I am bit confused by this error as I am not accessing any files but editing the registry. I am running Visual Basic 2010 (as administrator), dot net framework 4 on Windows 7.
View 1 Replies
Jun 13, 2011
Given the following code I get error
"Cannot bind to the property or column rname on the DataSource"
Public Class CustomerUpdFrm
Private RowPassed As DataGridViewRow = New DataGridViewRow ' Passed row variable
Private Sub CustomerUpdFrm_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
[cODE].....
View 4 Replies
Apr 14, 2011
I have a form where two fields on the first page of the form make up the primary key. I want to check for duplicate values before attempting to insert the record, since I don't want the user to go all the way through the form only to find out they can't submit it. So I'm trying to check for duplicate values when the user tries to go to the next page of the form. I wasn't quite sure how to do it, and sure enough I'm getting an error. ("Object reference not set to an instance of an object.") The problem is apparently in my if statement, "If myValue.Length > 0 Then", but I'm not sure what needs to be in place of that.
Protected Sub CustomValidator1_ServerValidate(ByVal source As Object, ByVal args As System.Web.UI.WebControls.ServerValidateEventArgs) Handles CustomValidator1.ServerValidate
'get values
[code].....
View 4 Replies
Aug 25, 2011
I have the following subroutine:
[Code]...
The intention is that an event handler is set for any control added to the form, but only if it's a certain kind of control — determined by what its most-derived type is. Putting overarching design concerns aside for the time being, although this subroutine functions properly, when running the debugger the constant exceptions keep leaving messages in my "Immediate Window". It's annoying, and presumably throwing exceptions only to immediately re-catch them is wasteful.
View 3 Replies
Jan 13, 2010
I had this incredibly ambitious goal to make a video game and so I am teaching myself/relying on kindness and knowledge of others as I go along. So far I have learned a lot, however needless to say, this is a monstrously difficult challenge, however one that I am very passionate about completing. The idea is that I am making a trading card style game and I was hoping that I could continue to use this thread and your kindness to keep me going whenever nessecessary throughout this challenge.So, here is where I am now. (Please forgive me if i have posted too much details/not enough details. Since I am new, I am not sure what information you need to help me. This will be corrected as time goes by and I learn more)I have created a card class with two properties. name and picture with name As String, and picture as PictureBox. the constructor looks like this: [code]
My next goal(and where I am currently stuck) is making i so that when the user clicks on one of the items in the listbox, a picture of the appropriate card(saved in a pictureBox of its own on a different form, and referenced in the card via the picture element) will be placed inside the empty picture box on the deckPage.
View 7 Replies
Feb 26, 2012
I 'm a beginner and have a project that I'm using to turn lights on and off. I need to use separate forms for display on remote monitors. My problem is each form needs the same serial port open to work and the port won't open unless it's closed in the previous form. Using a module works for opening and closing the port, but only for one round. If I try to revisit a form I already accessed it doesn't work.
Public Sub sp1(byval SerialPort1)If Form2.SerialPort1.IsOpen = TrueThen Form1.SerialPort1.Close() If Form3.SerialPort1.IsOpen = TrueThen Form3.SerialPort1.Close() Form1.SerialPort1.Open() end sub
Public Sub sp2(byval SerialPort1) If Form1.SerialPort1.IsOpen = TrueThen Form1.SerialPort1.Close() If Form3.SerialPort1.IsOpen = TrueThen Form3.SerialPort1.Close() Form2.SerialPort1.Open() EndSub
Public Sub sp3(byval SerialPort1) If Form1.SerialPort1.IsOpen = TrueThen Form1.SerialPort1.Close() If Form2.SerialPort1.IsOpen = TrueThen Form3.SerialPort1.Close() Form2.SerialPort1.Open() EndSub
end Module
View 2 Replies
Jun 7, 2011
Using NPOI and attempting to follow a tutorial here: [URL]..I'm coming across an "Object reference not set to an instance of an object" error at this line: sheet.GetRow(1).GetCell(1).SetCellValue("some test value")
when trying to use this code:
Imports System.IO
Imports System.Web.Security
Imports NPOI.HSSF.UserModel
Imports NPOI.SS.UserModel
Imports NPOI.SS.Util
Imports NPOI.HSSF.Util
[Code]...
Yet the question is still open...why didn't the code in the first example work? Do you have to declare every new row of data? What happens when you have lots of rows of database data?
View 1 Replies
Mar 20, 2012
Note: This code actually codes from a tutorial book I'm reading at the moment, so you can imagine this is frustrating me greatly! I'm building a basic shopping cart, using VB.NET 4, Visual Studio 2010 and MS SQL Server R2 2008. The code below is supposed to remove items from the cart, by reading a session variable, editing it to remove the appropriate ProductID and return the amending string to the session variable. It is then supposed to rebind the data to the gridview (gvCart) to refresh the data...but it seems here there is an error.
Every time I build the site in Visual Studio, it validates fine. But every time I run the site, and attempt to use the remove button it gives me the error:Incorrect syntax near ')'.ith the IDE pointing me toward the final parenthesis
Protected Sub gvCart_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles gvCart.SelectedIndexChanged
'This method is hooked to the Remove button & is removing items from the cart
[code].....
View 1 Replies
Dec 22, 2011
I have the login form glitch figured out, and now I'm wanting to make a system within the login form's code to check to see if the characters save file exists...
I have the save, load, and test load functions here as follows, and I want to figure out a way to make something test to see if both the character name and the password match a file and or see if they actually exist in that combination.[code]...
View 2 Replies
Nov 17, 2009
I've been working on automating our build processes and wanted to come up with a painless way to run unit tests on a regular basis. To that end I've thrown together a simple app that examines the project files and prepares a list of solutions to test. The prototype works in that the tests are executed with the expected results, but as soon as I try to redirect my output the app bombs on the Process.Start call, complaining that a file could not be found.
I've tried several iterations on what I've seen done elsewhere, including several posts here, but I have yet to get this to work properly.
This works:
Private Function WTF(ByVal aWorkingDirectory As String, ByVal aFileName As String, ByVal aArguments As String) As Boolean
Dim lProcess As New Process()
With lProcess
[Code].....
View 1 Replies
Jan 6, 2011
Im trying to make a basic Client/Server. The server can handle multiple clients and each client can send /recieve messages from the server.It works fine with just 1 client. but as soon as i connect with a second client. The first one no longer works. Anything sent from the first client is ignored by the server and when running the server in debug mode it gets errors from the client 1 stream.
Its as if the server will only hold one stream at a time and whenever another client joins the other streams are shut but the new client works fine. Even though i never close a stream.
[Code]...
Edit: FINALLY FOUND IT! Stupid mistake i forgot to put the ClientN variable up by one for each new client.So i was creating a new space in the array but erasing the first slot for the new client
View 2 Replies
Feb 7, 2011
building a table from code behind and attempting to change alternate row colors.I have it working but at he moment only using Drawing.Color when I would like to use a hexidecimal value, is there a way of doing this?
Here is the code thats doing it at the moment:
If j Mod 2 = 1 Then
r.BackColor = Drawing.Color.Aquamarine
'Table1.Rows(j).Cells(i).CssClass = "odd"
[code]....
View 1 Replies
Aug 20, 2009
In trying to open an access dataset I first click on add new connection and at the prompt enter a microsoft access database file. I click on test the connection and it says the connection is working. I click the next button and get the following error message: Format of initialization string does not conform to specification starting at index 0.
View 1 Replies
Oct 13, 2011
I wrote a program in vb.net long time ago. I ran into a problem when I tried to programmatically delete a file. Every once in a while, I get an error saying: Error:mscorlib The process cannot access the file. Could anyone explain to me what causes this error.
View 3 Replies
Feb 17, 2011
As the title says, when I attempt to update a row in a table in a database, I recieve an InvalidCastException. I am unsure why, since the variables I am using should be, and indeed, when I check them at runtime, are filled with the correct data.
I am trying to update using the method wherein the row that is being updated is identified with all the variables already stored. Interestingly, Intellisense is telling me that EntryID, the primary key, is only necessary in it's original form, and that the variables that I am attempting to update have question marks after their type.
View 1 Replies
Mar 29, 2012
I recently upgraded my system to Windows 7 64bit and ever since then I have had nothing but issues with my code attempting to access an Oracle database. I was using msdaora for my connection string however that does not work in 64bit. I changed over to OraOLEDB.Oracle which everything I can find on Google says to use however it fails every time. I have installed Oracle 11g 2 times now and even tried reinstalling VB.net 2010 and still no luck.
Here is my connection string....
Code:
MyConn.ConnectionString = "Provider=OraOLEDB.Oracle;Server=emsp.grhq.XXXX.com;Data Source=emsp;User Id=XXXX;password=XXXX"
And I am inporting....
Code:
Imports System.Data.OracleClient
Yet when I try it says...
Quote:
Provider cannot be found. It may not be properly installed.
View 10 Replies
Sep 16, 2009
I am attempting to get hiscores into the correct order but.. I am having troble with some of it.. I have this for my sort alogrithm
Code:
For i = 0 To Howmany
For j = i + 1 To 9
If ArrScore(i) < ArrScore(j) Then
temp = ArrScore(i)
[CODE]...
The hiscores text file looks like this:
Code:
Stuart:120,LoL:192,Computer:112,LoL:113,
The immediate window looks like this when its run.
Code:
0 1 , Stuart , 120
0 2 , LoL , 192
1 2 , 120 , 120
2 3 , Computer , 112
2 4 , LoL , 113
3 4 , 112 , 112
View 3 Replies
Feb 26, 2011
i'm creating a website that allows people to upload images to the website in a folder called images on the Site. But I don't know how to upload a file and I'v searched everywhere Please Note: In this Website were not Using the asp:fileupload, were developing our own interface
View 1 Replies
Jul 24, 2009
How do I obtain the URL of the website I navigated to?Let say: I navigated toI want, for example, a label to "grab" that URL.
View 5 Replies