VS 2008 GetCookies Function Not Working
Oct 14, 2009I wrote a simple GetCookies function but it's not working...
[Code]...
For some reason or another the WebResp.Cookies.Count always = 0 even though I know it's not true. Why is this?
I wrote a simple GetCookies function but it's not working...
[Code]...
For some reason or another the WebResp.Cookies.Count always = 0 even though I know it's not true. Why is this?
My function is not working now?
Sub fillGridData()
Dim dt As New DataTable
dt = objGM.getGradeMasterData ' method return a DataTable
dtgGrade.DataSource = dt
[code].....
[code].....
View 5 RepliesI'm developing a system and the system contains an update function to update the DB. I have performed all the coding but have some minor problem in my SQL Statement and I'm unable to detect the SQL Statement Error. Hope someone could rectify the problem.
[Code]...
file.Exists function not working
Dim f1 As New FileInfo(Server.MapPath("/CaseStudyImages/TemporaryImages/"))
Dim f2 As New FileInfo(Server.MapPath("/CaseStudyImages/" & success & "/"))
[code]....
I'm using fileopen() function to open the file, after doing all the works I'm using fileclose() to close the file. But when I access the file again it returns already the file is opened by another process.
Sample:
Dim intFile As Integer = FreeFile()
FileOpen(intFile, mstrFilename, OpenMode.Binary, OpenAccess.Read, OpenShare.LockWrite)
FileClose(intFile)
Loading another form increases the memory usage of the application and after closing is not combing back to normal? dispose function at formclosed event is not doing that
View 12 RepliesI have a form that displays a graph. From the appropriate toobar button click frmGraph.show is called and it works. But when I call it from the assigned F6 function key the graph hardly ever displays. Sometimes it does display properly, sometime it flickers a one time display of the graph then it's gone, but mostly the form just draws the background but no graph. In debugging this i discoverd that putting a message box just before the call to frmGraph.show the graph will display properly everytime after i click ok in the messagebox. Anyone know how to cure this or at least a workaround that doesn't involve displaying the messagebox? This is the code with the messagebox("here") just above the call.
View 8 RepliesI've been trying to get the double buffer function working in VB.NET GDI+ for a space invaders game using the following command.[code]But because I am using a separate draw routine attached to a class it doesn't seem to work:[code]The aliens draw correctly but the images are very stuttery and double buffering doesn't seem to work.
View 1 RepliesHow is it possible to add a function description in VB.NET (VS 2005)? in C# this task is resumed to tape 3 times the "/" simbol just above the function declaration. (generates the <summary> tag and others)
View 14 RepliesI have the following code which I want to run when the page first loads and then again when an update panel (asp.net) is run. Therefore I need to use function pageLoad() rather than document.ready.
function pageLoad() {
$(".zoomImage").each( function() {
$("<img src='"+$(this).attr("src").replace("-thumb.jpg",".jpg")+"' />").appendTo(".howitworksText > div");
});
};
Problem is I can only get this working with document.ready - so therefore not when the updatepanel is run.
have an xml file like this.
<?xml version ="1.0" encoding ="utf-8"?>
<menu>
<menuNode title="Register" value="true">
[Code]....
I found the following example of how to print a root directory on the net
Code:
Sub Main()
Dim Current As String
Dim Root As String
Current = Directory.getCurrentDirectory()
Root = Directory.GetDirectoryRoot(Current)
Root = Directory.GetDirectoryRoot("")
Console.WriteLine("Current directory {0}", Current)
Console.WriteLine("Root directory {0}", Root)
End Sub
However it just causes the error "name directory not declared"
[Code]...
I have an array with about 10 items in it. In order to get the desired functionality I need to append some text to each item in the array in order to sort it properly. Once it is sorted I want to remove the text I added and then just display the second half of each item in the array. The sort works great, but the split function is not worrk.
[Code]...
I have no clue how to get ScreenToClient working. I declared the function using:
Private Declare Function ScreenToClient Lib "user32" (ByVal hwnd As Integer, ByVal lpPoint As POINTAPI) As Integer
Then:
Private Structure POINTAPI
Dim x As Integer
Dim y As Integer
End Structure
[Code] .....
What I want to do is move the cursor to 29,109 of the hwnd, not my screen (hence why I'm trying to use screentoclient).
I'm working on a spider bot and hit a snag in the last function?'This function navigates the web browser control to the entered URL.'It wait till the document is loaded completely into the browser control by testing the ready state of the web browser control. 'Then it returns the web browser document.
Private Function Navigate2WebPage(ByVal URL As String, ByVal TimeoutInterv As TimeSpan) As HTMLDocument
Dim T1, T2 As Date
Dim Interv As TimeSpan
Try
[code].....
the problem lies with "SHDocVw.tagREADYSTATE.READYSTATE_COMPLETE" I an example of it on the net and it works in the sample app but not in mine. It won't compile because it says "Name ShDocvw is not declared" and i've searched through the example app and can't find it "declared" anywhere. I had a look at the designer generated code and found
2003 - Friend WithEvents AxWebBrowser1 As AxSHDocVw.AxWebBrowser
2005 - Friend WithEvents WebBrowser1 As System.Windows.Forms.WebBrowser
what is a AxSHDocVw.AxWebBrowser? Now i've done some searching and found that apparently "SHDocVw.tagREADYSTATE.READYSTATE_COMPLETE" no longer works in 2005.
My Problem is, that I have some Buttons, Labels and TextBoxes I need to generate after the User told a number of Players. With the Code I'm using now only the last Player will have these Controls working, because they are moved - for example - from Player 1 to Player 3. how to create such a ControlArray The biggest Problem I have is, that these buttons have to have names like "1", "2", "3" and so on (or if it works somehow to read out the Index of a ControlArray the names will not be necessary).
This is the code I am using right now to generate the Controls, but as you see it won't work, because the properties will be changed when the For-Function restarts.What I need is a hint on how to get these Controls/Buttons into a Control-Array and then read out the Index-Number to use them in the Functions that are called.
Public Class Form1
Private btnTestNumButtons() As System.Windows.Forms.Button
Private Sub CreateButtonArray()[code]......
Can anyone help me figure out how to get a security descriptor working with the CreateNamedPipe API function? At this moment I get Marshal error 1336 "The access control list (ACL) structure is invalid." with the CreateNamedPipe function. All of the other functions seem to be completing sucesfully and are returning proper handles.[code]
View 3 RepliesI've reviewed the other posts regarding this subject. I'm using VB from Excel and the function keys are not working. I'm running Windows Vista Home Premium with Office Ultimate 2007 Looks like Excel is running VB 6.5So, this used to work for me...I've used the debugger quite a bit. When I try the solutions suggested Tools->Options->Keyboard (after checking check-box to show all settings) when I click on the box just below "Apply the following additional keyboard scheme" the only item in the list is default. There is no selection for VB 6 or anything else for that matter.
View 2 RepliesI'm using a DO interation to loop a function I'm using to test for internet connectivity. The code is working fine, except that when one of the tests is satisfied the loop stops. I want this to continue in the background while the program is running. How can I get this to work?
Private Sub checkInternet()
Dim InetChecker As Boolean
InetChecker = CheckForInternetConnection()
Do While LabelCount.Text <> ""
Thread.Sleep(10)
[Code] .....
I have a vb.net function which uses oledb to create a spreadsheet, then treat it like a database, creating tables and inserting values. The function takes in a filename and a dataset, and returns the filename if it worked. The function works beautifully on my dev machine, but not other PCs. Below is my function, is there anything wrong with the code? EDIT: There are no errors being thrown, the resulting file doesn't contain any data.
[Code]...
I am looping through all folders on the computer in a background worker. Starting with just the C: drive, the function works perfectly I've been tasked with adding recursiveness to this function to loop through all subfolders within each and every folder.
This is the working code without recursive. Startpath is set = "c:".
Private Sub BackgroundWorker1_DoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
Dim fs As New FileSystemObject
Dim fsfolder As Folder
Dim subfolder As Folder
[Code]...
EDIT: I was doing some testing and threw in an if check to skip the C:$ folders. Working ok so far and noticed something really strange. It doesn't loop through all the folders in the C: drive. I think it will loop through only the first 2 folders. One is C:Boot so I skip that and the other is C:Dev-cpp. It won't loop through the Program Files, Program Files (x86), or Users.
My Requirment is to Leave Blank space to the right of the each Lable (String) in Chart in SSRS.
Using Custom VB.NET Function, i want to Pass String Lable to VB.NET Function and then Function Return String with Padding Blank Space to the right of String.
Example :Lable String is : "United States of America"
My Lable output should be : "United States of America "
How can we achieve ?
Let me know if you need mor information.
is there any other way to achieve this ?
I have a backup / restore function working fine on Windows XP. When I deploy the application onto a Vista OS OI recieve the following error, can somebody please advise me how I can resolve this issue?
System.IO.FileLoadException: Could not load file or assembly 'Microsoft.SqlServer.Smo, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'Microsoft.SqlServer.Smo, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'
I have a Session value that stores an integer representing what permission a user has to perform tasks in my application. For some reason now however, the function to check the permissions is not working. On the line indicated by the comment, the CTYPE action always returns the integer value, and not the list of Enum values. Can anyone please see what's going wrong here.
[Code]...
The data:
Date
Name
Price1
[code].....
I have created an application using visual studio 2008. The application is to copy the data from one excel file and paste to another excel file. The problem happen when i try use the copy paste function at the same time in other excel file.(I have opened others excel file before the application start.) I'm noticed the value that i paste is not same from what i copy in the excel file.(the application is running behind and using copy paste function at the same time.) How to hold the value using vb.net when copy from excel for the application so that other copy paste function is not affect it?
View 2 RepliesIt appears that my favorite thing in the world is tackling projects that are beyond my current knowledge and abilities. I have a little project that I am working on which is a simple image viewer stocked with (upon completion) your standard Load..., Next/Previous, Zoom In/Out, Actual Size, and Full Screen capabilities. However, I am running into a few snags:
(1) I've been able to get my "Load..." button to display a file dialog box, but I cannot seem to get a working filter (with which only image file types are allowed to be selected) in working order.
(2) I have a PictureBox object (entitled PictureBox1) that displays the image selected via the file dialog box, but it loads images in their full size (1:1/100% zoomed) state without scrollbars, etc. to allow me to navigate the loaded image. I would like to have it load the image, initially, to fit within the dimensions of PictureBox1 and from there be able to zoom in/out via my "Zoom In/Out" and "Actual Size" buttons and be able to scroll if the zoom level is beyond the dimensions of PictureBox1.
(3) It dawned on me that I haven't the faintest idea how to get my "Next/Previous" buttons to allow the user (me) to navigate, in succession, the images contained in the folder in which the currently loaded image is stored. [code]
If it is deemed that this thread is inappropriately requesting help, I ask that it be locked/deleted quickly as I recognize that this is a large community with many discussions going without need of unwelcome posts.
I refer to the CompileExecutable function at.>> [URL] I have attempted to try and get it working for a Windows Forms based application from about my 4th post in this thread.>> [URL] Has anyone had any success in using it or a variation of it? links to VB.Net tutorials see here.>> [URL]
View 1 RepliesI am developing a vb.net media application using Windows Media Player which is working fairly well. However, I am having problems where the Function key handler will stop working after doing anything on the media control panel, i.e. mute, move the slider etc. So long as I don't touch the panel everything continues to work. I'm using the function keys to pull up menus for selecting other media and if I do anything with the control panel I can no longer display the menus.
View 1 Replies