Jweige's Q&A profile
Visual Basic Accessing a Public variable from another form
I know it's supposed to be easy, something like this: Class Form1 Public xxx as string="Fred" Sub Form1_Load etc xxx="Joe" Form2.ShowDialog() End Sub End Class Class Form2 Sub Form2_Load etc MsgBox(Form1.xxx) End Sub End Class But the message box shows "Fred". If I can only access values that are explicitly set in the first form, I might as well explicitly set them in the second form as well! Help, anyone, please Thanks, you need to have a reference of the first form in order to access it properly. Take a look at this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=700821&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx ...Show All
Windows Forms error: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
Hi, I am developing a windows application in .net 2005 that runs a rather large stored procedure in sql server 2000 (about 165 parameters). I run a function that assigns all the select parameters from various check boxes and all the where parameters from various text/combo boxes as a datatable. In that same function, when i executedatatable (passing the connectionstring, commandtype, commandtext, and parameter array), i get a sqlexception with the error: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. The statement has been terminated. I've searched high and low for an answer to my problem. Though many people have encountered this same error, it seems none have reac ...Show All
Software Development for Windows Vista WaitForSingleObject doesn't work for Internet Explorer
Hi, I start Internet Explorer by CreateProcess: CreateProcess(....., &procinfo) myhandle = procinfo.hProcess; After that I wait for Internet Explorer to be closed: DWORD dwait = WaitForSingleObject(myhandle, INFINITE); This code works fine on XP, but for Vista it doesn't. The WaitForSingleObject returns immediately. So, while Internet Explorer is still running. Does anybody now how to do this properly on Vista Thanks in advance. Klaas I know why WaitForSingleObject returns almost immediately, but I'll have to ask around for the "proper" method. When IE 7 launches it starts up with normal permission mode (often called LUA mode) it then checks th ...Show All
Smart Device Development Problem with Designer...
Hello... i have a problem with the designer... i have an application with almost 200 components (yes a lot!) so i have make another form just for showing a progressbar... i created a function in the first form with progress++, but the designer cry's about this lines... where i call my function... and say that there are lines not created by him... is there any way of getting this out thanks!!! ...Show All
Visual C++ place for code
maybe this is a stupid question, but I have started microsoft visual C++ today (c++ itself also for the first time) and i dont know where to put the code. i'm making the program hello world, but it doesnt work it asks if i want to 'build' the programm and i dont know what it means. i named the program hello and i put the code in the place where it says: hello.cpp is this the right place if so, what am i doing wrong this is the code: // hello.cpp : Defines the entry point for the console application. // #include "stdafx.h" int _tmain( int argc, _TCHAR* argv[]) { return 0; } #include <iostream.h> int main() { cout << "Hello World!\n" ; return 0; } ...Show All
SQL Server long running report can not be rendered in Report Manager or through Subscription
I am using a stored procedure which will run about one hour and ten minutes to return a dataset to reporting services to generate a report. The report generation is OK if I run it inside Visual Studio 2005. Once it is deployed, it can not finish. Both cases I set "Do not timeout report execution". I even try to create a subscription to let it run throught. But it still can not finish. The traces information in ReportServer*.Log is like this: <Header> <Product>Microsoft SQL Server Reporting Services Version 9.00.1399.00</Product> <Locale>en-US</Locale> <TimeZone>Central Standard Time</TimeZone> <Path>C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\LogFiles\Rep ...Show All
Visual Studio Express Editions Creating a new version of an existing solution
I have recently fininshed a program, "Basic Program", and I am intending to use it as the basis for another program, "Advanced Program". However I am at a loss as to how to create a copy of an existing project whilst keeping all the project settings etc. If I simply copy the folder, the project and the files (.sln and .ncb etc.) all keep their old names. Manually changing these names causes countless problems. Is there an easy way to copy and rename a solution Thanks in advance. Select the solution name in the Solution Explorer, then change the Name property in the Properties Window. If you don't see the solution name: Tools + Options, Projects and Solutions, General, turn on "A ...Show All
Visual Studio Express Editions Copy files from FTP to Harddrive
Hi. I have code which downloads a file from my FTP space onto my hardrive. Can somebody help me to incorporate a loop so it downloads every file in the FTP dir, and puts them in the HD. So it downloads every file in ftp://ftp..../pub/myprogram and puts them in C:/myprogram. This is the code i have for 1 file: Imports System.Collections.Generic Imports Utilities.FTP Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Values to use Const localFile As String = "C:\myprogram/blah.exe" Const remoteFile As String = "/pub/myprogram/blah.exe" Const host As String = "ftp://ftp.invision.ecwhost.com" Const username As String = & ...Show All
Windows Forms outlook delegate problem
I'm having an outlook delegate problem. I'm using exchange 2003 with outlook 2003. When I'm trying to set delegate i receive a massage "the delegates setting were not save correctly. unable to activate free/busy information" I tried to open outlook with "outlook /CleanProfile" and that doesn't work. My outlook in fully updated. I cant see any problem Please help!! Thanks! This forum IS NOT for Windows troubleshooting questions. Please use the Microsoft Newsgroups to ask general Windows questions: http://www.microsoft.com/communities/newsgroups/default.mspx ...Show All
SQL Server JDBC Driver Connection.setTypeMap not supported
Hi, I have noticed that Connection.setTypeMap is not supported on the SQL Server 2005 JDBC driver. The consequence is that it is impossible to use UDTs via JDBC. Is there any plan to implement this in the future Thanks, Ben There are currently no plans to support setTypeMap, can you tell me more about the scenario you are trying to enable We can definitelly revisit this feature based on customer feedback. ...Show All
Visual C++ Does VS2005 include Windows Installer?
Does VS2005 include Windows Installer If so, how do I run it to create an installation package for users to install or upgrade my products You can download Windows SDK. For more information, visit http://msdn2.microsoft.com/en-us/library/aa370563.aspx ...Show All
Internet Explorer Development Internet Window Problem
There is a game that i play.... The game is on the internet and is opened in a large window. There are advertisments etc below the game. you press the arrow keys to move around, whenever i press the down key it moves further down the page. also when i type something it is fine with all keys and responds well..but if i press the backspace key it takes me back to the previous internet page.. There is another computer that uses this game and it does not have any problems. it has all of the latest keyboard drives, is this the problem ...Show All
Visual Basic Fileget
Hi, i am using fileget to read a file, but i am going the following error: System.Security.SecurityException was unhandled Message="Late bound calls to file system methods in the Visual Basic runtime are not permitted." my code is the following: Public Structure rec <VBFixedString(4)> Public icount As String <VBFixedString(48)> Public iTellerID As String <VBFixedString(48)> Public iTellerName End Structure Public myrec = New rec Dim iFr As Short iFr = FreeFile() FileOpen(iFr, "day_08.log" , OpenMode.Binary, OpenAccess.Read) FileGet(iFr, myrec,1) FileClose(iFr) What i am doing wrong Please help. Thank you for ...Show All
Visual Studio Express Editions VB2005 Express - Adding a Help File
Trying to understand how a help file (.chm) is incorporated into a VB2005 Express application. I was assuming that at the time the program is compiled, the .chm file is 'bundled' with the application. Can access the help file no problem after running it at the development stage but when I publish the application and run it on another computer, I am unable to access the help file from the help menu. Therefore, does the .chm file need to be downloaded/installed with the application and is there a recommended location Looking at other applications on the computer this may be the case. Clarification would be much appreciated. Thanks Bill Hi Bill, the .CHM file isn't 'bundled' with your app ...Show All
Visual Basic Need help on Visual Basic and Excel
I have a few reports already design on excel, I go to edit query and just change the range of dates then just refresh the data. I now I can get the SQL language from the edit query option. What I will like to know if there is a way of getting this through Visual basi. I will like to do a menu in visual basic with buttons for all the reports then bring a submenu within visual (the program) wich asks for the date ranges and then using the sql language and the date range; bring the report in excel. I know how to design the buttons (a menu) and submenu through visual basic, but I don;t know how to open and design these excel reports using the sql language. I will appreciate any help, thankyou. Take a squiz at this and see if it's any ...Show All
