caution812's Q&A profile
Windows Forms Making "Everyone" the default option while installing the setup...
I know the solution of setting the "Everyone" option by default at time of setup installation, by modifying the msi in the ORCA editor. Now, I have to create the msi with no dialog boxes(no start or progress interfaces), the problem is there's no way to change the default setting from 'Just Me' which is default to 'Everyone'. Can anyone suggest what could be the solution for this if it is alt all possible to do Thanks for any suggestion and help. I have not tried this but i was told if you create a property (in the property table) in the MSI called ALLUSERS and give it a value of 2 it should set it without having that form. Matt ...Show All
Visual Studio 2008 (Pre-release) SecurityPermission Error
Frequently while Testing a standalone XAML I encounter Following Error, since i am new to XAMl i don't know why this is happening and how to handle Errorrs in XAMl. Please help!! Thanks in Advance Application Identity: file:///C:/Windows/Microsoft.Net/Framework/v3.0/WPF/XamlViewer/XamlViewer_v0300.xbap#XamlViewer_v0300.application , Version=3.0.0.0, Culture=neutral, PublicKeyToken=ed9f9a6c9f3a9db8, processorArchitecture=msil/XamlViewer_v0300.exe, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ed9f9a6c9f3a9db8, processorArchitecture=msil, type=win32 System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToke ...Show All
Visual Studio Express Editions How to run an embedded application
I would like to build an application that installs other applications. I have figured the following out: System.Diagnostics.Process.Start(System.Environment.GetEnvironmentVariable("temp") + "\theapp.exe /quiet") The problems I am having is actaully embeding theapp.exe into the setup.exe. It requires the folder WindowsApplication1_1_0_0_0 to be present, I want a single bundled application. I know there are packaging applications for doing that, but cannot find any that are free. Any help Public Sub RunMyResourceFile () 'double click on 'MyProject' and then click on the resources tab 'click add existing file ..for this example I added notepad Dim b As ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Suggestion for stock Vertex structs
I notice that the framework provides a few stock vertex structures like VertexPositionColor etc. This is cool but it would be great if these could inherit from an interface which provides a mechanism to get the SizeInBytes and Element information abstractly. These structs currently provide this information as static properties but this is no good if you are are trying to write a generic function that can deal with a number of different types of vertex structures seamlessly. My suggestion is that in future something like an IVertexInfo is provided that lets you deal with these concrete vertex structures abstractly. Perhaps something like this. interface IVertexInfo { VertexElement [] Elemen ...Show All
SQL Server message box in rdl
hi everybody i m using dynamic connection in rdl file firstly i m showing username and pwd . after this user name and pwd i make a connection string for my report. when i m entering invalid pwd, than report generate an error. and stop. is there any way by which i can trace error and flash a message box to user about his invalid user name or pwd. thanks ...Show All
Visual Studio Express Editions Is this possible???
As part of my program I would like to set up an address book. I have created the form for this. My question is: can I connect/create a database for just this part of my program. I have never created a database but am looking forward to giving it a go. This programming thing is totally addictive!! The reason storing in a text file is not the best of ideas - is that it means you have to write more code to do searching, sorting, modification of records etc. For this reason a database is a better bet. As to how difficult it is - With databinding, this is not a difficult task. Many of the walkthroughs / examples and webcasts which cover databinding can be modified to basically store different fields for ...Show All
Visual Basic Problem whit publishing
When publishing program to a computer thet don't have internet access and framework i found thet i have to include prerequisites. Becose prerquisites can't be downloaded from web in properties i specify thet prerequisites download from the same location as my application. When publishing start i got three errors: Error 1 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX\instmsia.exe' in item '.NET Framework 2.0' can not be located on disk. Error 2 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX\WindowsInstaller-KB893803-v2-x86.exe' in item '.NET Framework 2.0' can not be located on disk. See Help for more info ...Show All
Windows Forms Any FormBorderStyle type without titlebar
Hey, I have no idea how I managed to get this result (it was a while since I wrote the code) but somehow I got my AboutForm, simple as can be with text and stuff, without a title bar in ANY FormBorderStyle enumeration. If I choose FixedSingle or FixedToolWindow I get a neat thin black border for example. Don't get me wrong, this is great I love it - but I can't replicate it! Nothing seems different in the public properties nor in the generated code. What have I done :) Cheers That's a pretty neat trick, you'll have to tell us how you did it when you find out. Use Spy++ to look at the style flags for the window. The WS_CAPTION style flag enables the title bar. You'd have to write code like this to turn it off: protected override Cr ...Show All
Visual Studio Team System hard deletion of items (purge?)
I wonder if there is a way to completely delete files from TFVC. The reason is that i dropped some test projects into TFVC, played with them for a while to familiarize myself with the way things work, but now i want to remove these toy apps to make room for the real stuff that needs to be uploaded to TFVC, and i dont want any old files that happens to have the same path/name to show up in the change history of the new project. Thanks. ...Show All
Internet Explorer Development Internet Explorer Toolbar (Menu Bar) disappeared after installing IE 7
I use yahoo as my homepage, when the "Get IE7 now!" appeared in the toolbar, I clicked on it and installed it. Big Mistake so far...Here's the problem, after installing my IE menu bar (toolbar) containing "File, Edit, View, tools, help" vanished and I can't figure out how to retrieve it or get it back. I have checked and it is not hidden behind another toolbar. Along with that, The IE blue bar at the top & small bars at the bottom contain no information of the URL (webpage) when pages are loaded. In the Yahoo toolbar, under the pencil icon- there is no standard toolbar listed anymore. Also my tabs disappeared from yahoo and under the toolbar options there no longer is a check box to "Enable Tabbed Browsin ...Show All
Visual Studio Express Editions wide characters in program
#include "stdafx.h" #include <iostream> #include <string> int main() { std::cout << "Please enter your first name: "; std::string name; std::cin >> name; std::cout << "Hello, " << name << "!" << std::endl; return 0; } wchar_t where do i put this in for wide characters like japanese thanx A kid wrote: yes i got how i write the program but my command prompt won't let me type japanese any1 knw how i can OK, this is going to have a lot to do with Microsoft Windows platform and libraries details. 1. First Steps The first thing to do is experiment with getting your console application to display Japanese ...Show All
Windows Forms Flickering in ListBox
Hi, I have added a simple listbox in windows form under c# 2.0. It contains a collection of approx 10 strings as list items. Now when i resize the form whole listbox flickers. Please tell me any feasible solution, i need to use a checked listbox which also has same flickering problem on resize. I can use [ DllImport ( "user32.dll" )] public static extern bool LockWindowUpdate( IntPtr hWndLock); to lock the update at ResizeBegin and ReSizeEnd but these events are not available with UserControl class. Is there any easy solution to remove this flickering when i resize my form. Thanks & Regards Nirdesh Dabas nobugz wrote: Are you using TableLayoutPanel ...Show All
Visual Studio Express Editions how to select all textbox in the form?
hello im making a simple registration form and i want to clear all the text in the textbox after the information is added foreach ( TextBox t in Form1 ){ t.text=null; } Error 1 'WindowsApplication1.Form1' is a 'type' but is used like a 'variable' thanks for the help should be: foreach(Control curControl in this.Controls) { if (curControl.GetType() == typeof(TextBox)) { ((TextBox)curControl).Text = ""; } } ...Show All
Visual Studio 2008 (Pre-release) Another ArgumentNullException - can we check expressions at compile time?
I saw this reported previously, but wanted to report another occurence. When I run the query against an in-memory array, it runs fine. When I run against SQL, it fails: FAIL:System.ArgumentNullException: Value cannot be null. at System.Data.DLinq.ProviderBase.SqlUnary.set_Operand(SqlExpression value) at System.Data.DLinq.ProviderBase.SqlUnary..ctor(SqlNodeType nt, Type clrType, ProviderType sqlType, SqlExpr ession expr, Expression sourceExpression) at System.Data.DLinq.ProviderBase.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda , SqlNodeType aggType, Type returnType) at System.Data.DLinq.ProviderBase.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) at System.Data.DLinq.ProviderBase.Query ...Show All
Visual Studio Express Editions VB TextBox Array returns "Nothing"
Why does the following array return nothing for txtAllText(0,0) when the TextBox txtName0 has a value of "Brian" in it I can fill all the textboxes but when I try and reference the array it shows a length of 36 and each is "Nothing". What am I missing I tried New but that did nothing. Is there an easier way to work with an array of textboxes (5,5) Thanks. Eric (new in VB class) Dim txtAllText(,) As TextBox = {{txtName0, txtScore1of0, txtScore2of0, txtScore3of0, txtScore4of0, txtScore5of0}, _ {txtName1, txtScore1of1, txtScore2of1, txtScore3of1, txtScore4of1, txtScore5of1}, _ {txtName2, txtScore1of2, txtScore2of2, txtScore3of2, txtScore4of2, txtScore5of2}, _ {txtName3, txtScore1of3, txtScore2of3 ...Show All
