R1ZWAN's Q&A profile
Visual Basic How to force Form2_Load code to execute?
VS 2005 How can code in the Form2_Load Event be forced to execute from code in Form1 The following is an outline of my dilemma: WindowsApplication1 This application has two forms: Form1 and Form2 Startup form is Form1 Graphics are performed on Form2 Public Class Form1 'Public variables are defined here Private Sub Form1_Load(ByVal sender as System.Object, ByVal eventArgs As Systerm.EventArgs) Handles MyBase.Load 'Public variables updated Form2.Show() End Sub End Class Public Class Form2 Private Sub Form2_Load(ByVal sender as System.Object, ByVal eventArgs As Systerm.EventArgs) Handles MyBase.Load 'set graphic parameters here with use of Public variables set in Form1 Call Form2_ ...Show All
SQL Server Concurrency with SQLExpress
Hi: Need some advice. Here is the scenario: There are 17 Client PC connected to a Server with SQLExpress 2005. 17 Client will do verification of identity before sending data to display at server in first in first out basis using Datagridview ( the earliest data received will be display first) and stored for review at later stages. What should I do I plan to use VB2005 after trying the EXpress.The Tasks are simple: Data send --> Server Diplay and Stored---> Someone at Server will Acknowledge by Button--> Messages will be sent to inform Client data received. I could have 17 different Table (But with same fields!) and displaying the Data send by reading all 17 tables and display it with Datagriedview. But this ...Show All
Visual Basic A questions about the need to install the .NET2 SDK
Dear All, Having successfully installed some .NET1.1 app's we've turned our attentions to version 2. When we installed .NET1.1 app's we had to modify the Local Intranet trust levels to allow our app's to work. This we could do on our users' PC's as they where able to run the .NET1.1 configuration. However, when we come to .NET2, they don't have any .NET2 configuration. Unless we install the SDK, we can't increase the trust level and the app's don't work. So my question is, do we need to install the SDK in order to modify the trust levels or is there some other way to do it. Alternatively, am I missing some whole new aspect of security settings within .NET I note that we are also able to set up trusted/partially trusted app's wit ...Show All
Visual Studio 2008 (Pre-release) Reliable messaging, Cannot create a sequence
Hey, I'm creating a custom transport, and am currently trying to get RM to work. For some reason the server denies the client to start a reliable session, and I was hoping someone in here would know why This is what the RM part of my binding looks like: < reliableSession maxRetryCount = " 8 " ordered = " true " /> And the SOAP message sent is: {<s:Envelope xmlns:s=" http://www.w3.org/2003/05/soap-envelope " xmlns:a=" http://www.w3.org/2005/08/addressing "> <s:Header> <a:Action s:mustUnderstand="1">http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence</a:Action> <a:MessageID>urn:uuid:858ee524-81e8-46d6-9c63-93d87ff8c909</a:Mes ...Show All
Visual Studio Team System StaticAnalysisPolicy property question
Hello static code analysis team, I am working with the StaticAnalysisPolicy class and wanted to know if this is the correct code behind the EnableFxCop property. It seems that setting this property affects a different local variable. My assemblyfileversion is 8.0.50727.147 public bool EnableFxCop { [ return: MarshalAs ( UnmanagedType . U1 )] get { return this . m_enableFxCop ; } [ param: MarshalAs ( UnmanagedType . U1 )] set { this . m_enablePrefast = value ; } } ...Show All
Visual Studio Team System Changing _VIEWSTATE in different versions breaks the test scripts
The test scripts I created is based on the old version of the application. Everything was working well on the old version. Then a new version was promoted to the testing environment. My test scripts did not work. The error message is " KeyNotFoundExcept was unhandled by the user code ." The corresponding code is: request13Body.FormPostParameters.Add( "hidRedirectPageUrl" , this .Context[ "$HIDDEN1.hidRedirectPageUrl" ].ToString()); I guess this is because Web Test was not able to find the key "hidRedirectPageUrl". Thinking that the _ViewSate code is the only difference in the new version, I re-recorded my testing actions on the new version, get the new _ViewState code and copied the new _view ...Show All
Visual Studio Team System Open File for edit in Team Version Control.
Does anyone know if there is any API for open file for read/write in Team Thanks. Thanks for your quick response, Mr. Berg. I used Workspace.PenEdit() to check out the file. I also had a Open file Button, and want to load this file to a correct format (word, pdf.. ) and edit it on this editor and save it... Do you know how i can do this and also the team Version control can keep track of the history of I open file for edit. Your help will be appreciated. Thanks ...Show All
.NET Development ms exchange alldayevent error
hi everyone, i am having a problem in exchange that i cant seem to figure out. i am adding a new calendar item via vb scripts. the calendar item gets added just fine and views just fine from owa on the exchange box. however if that calendar item was an all day event it does not show up as an all day event when viewed from outlook or owa on the clients machine, but views fine when on the exchange box. the only way i have managed to get outlook to see the all day event is to open up the appointment through owa (client or exchange side) or outlook (client side) and re save the appointment as an allday event. i ran a sql dump of the ADO.RecordSet object for the appointment and they are completely identical before and after the save, so i dont ...Show All
Visual Studio 2008 (Pre-release) Making a custom menu like Vista's Photo Gallery
I like the way that Photo Gallery, Media Player and Movie Maker have a black bar at the top with drop down buttons, and I have managed to emulate the bar itself, but not the buttons... I am hoping someone here can tell me how this is meant to be done Do I just create a rectangle and make it act like a button - OR - is there a preset way to do this http://msdn2.microsoft.com/en-us/library/ms753328.aspx Here goes a sample which modifies the button template.You could modify that template to look like MediaPlayer buttons. I don't know whether the exact MediaPlayer button template is available or not. ...Show All
Visual Studio Express Editions Weird linked libraries
Hi, I have a VC8 project. I intended to link the debug version of a library, say WhatEver_d.lib, and this is the library supplied by Configuration Properties -> Linker -> Input -> Additional Dependencies. However, when I compile the debug version, VC8 complained that WhatEver.lib (the release version library) was not found. Of course it's not found, I didn't include the release lib directory (only the debug lib directory was included). I double checked and was 100% sure that WhatEver.lib is not specified in Additional Dependencies or Command line. What could be wrong This has puzzled me for the last two days. Sorry my fault. Since I also need to set libcmt.lib as No Default Lib, I forgot to separ ...Show All
Smart Device Development build cab
idesign application for pocket pc on vs 2005 and when i build cab file on it i discovered that to execute it , it must be that ppc have windows ce 5 so that i design it on vs 2003 to execute it to windows ce 3 and i don't know how can i build cab file can any one hilp me ........................ I am sorry this forum intended for Device Emulator. Moving this to Smart Device General where it has got better chances of being answered. -Thanks, Mohit ...Show All
SQL Server Looking for suggestions
I have two stored procedures (l'll call them P1 & P2). P1, after a lot of processing, creates a temporary table that is used by P2 after an "exec P1" is done. I've separated the logic into two stored procedures because, ultimately, other sprocs will need the output of P1. I get an error if I use #tempTable as the output table in P1 because it no longer exists after P1 finishes. ##tempTable works, but I'm concerned about concurrency issues. Any suggestions on what construct(s) I should be using Thanks in advance! Global temporary table (GTT) ( ##tempTable) might not be the one you need here is the downside of using GTT. 1. you cannot use it to cache Data f ...Show All
.NET Development ArrayLists
Hi All, I am using an array list because I need to collect a large amount of data from a data stream, and I dont know before hand how much data I am going to collect...therefore I can't use an array with a predefined size. The arraylist works nicely for small amounts of data, but once the actual amount of data gets large (say 50Mb) the memory usage starts to get way out of hand. If I watch the page file usage, after the data run is complete and I call trimtosize and garabecollect, the memory usage drops way back down...it will sometimes go from nearly 1GB down to 500MB...so thats a heck of a lot of extra space that wasn't needed. So, I figure it is because the array list doubles in size everytime it needs to expand, so by the end ...Show All
Visual Basic Port Web App and Launch .EXE File
I have a couple of very basic questions ... I am having trouble with the big picture. First, I have used VS 2005 to create a web application having to do with family stuff (i.e. not public) ... nothing fancy ... lots of text, a few grahics and about 100 web forms (pages). Now, after a lot of effort I have the app working pretty well as I test it on my machine and I would like to port the app to other family members (who are using XP Pro SP2 as I am but they do not have VS 2005 installed). I do not want to put the web app on a public server. Surely there must be some way that I can port all of the files making up the app to other people in the family so that they can view it on their machines using Internet Explorer (eg. create CDs that I c ...Show All
Visual C++ How do a create a new text file, and how do I insert an eof into it?
Hi, I'm looking to create a new text file. I am in second term C++ so we're not using the MFC or anything. We have covered opening, reading, closing ifstream and ostream objects from fstream.h , but nothing about how to create a file if one's not there. Is this possible Also - anyone know how to insert an eof into a file through a text editor or something in Windows I am given to understand the eof flag is represented by a ctrl-Z but I can't insert this using textedit. In the mean time I'm using a pipe symbol '|' as my eof flag which is much less elegant. Thank you o wise sages of the code. dangrmous wrote: Please read my inital question again I was asking how to INSERT and eof character into a document, not what and ...Show All
