VivekGupta2812's Q&A profile
Software Development for Windows Vista Automatically request Vista admin privileges
I have an install application that we would like to automatically request admin privileges when it is run . We want to avoid requiring the user to right click on the exe and selecting " run as administrator " I have read that I can put this into the programs manifest, but have not found any detailed tutorial on how to do this. How can I force windows to try and run my application as an administrator under Vista Thank You! Some information on how to use a manifest with a requestedExecutionLevel can be found here: http://msdn2.microsoft.com/en-us/library/aa480150.aspx [Developer Best Practices and Guidelines for Applications in a Least Privileged Environment] ...Show All
SQL Server Day of Week Report with Total and Average
I have a database that collects equipment useage on a daily basis. I need to generate a report that tallys useage for the day of the week rolled up by the week so that the report looks like: Mon Tue Wed Thu Fri Sat Sun Week Ending Date: 123 123 123 123 123 123 123 Total Ave Any suggestions, recommendations or references Thanks. If the table you are storing these values into, contains a datetime column. You can use something like this in reporting services: select DateName(dw, dateColumn) WeekDay, someNumber from Table Then do a group by the column WeekDay. ...Show All
Windows Forms Cannot copy usercontrol at design-time
Hello I have attached a user-control, A, in another user-control, B (both created by me). When I try to copy A I get the error: "An error occurred while processing this command. Object reference not set to an instance of an object." What have I missed (S2005, Windows Forms) Regards Ah, C#, not VB... Components and controls are two different kinds of UI elements. Components don't, normally, have a window. A Timer is a component. Note how they appear in a strip at the bottom of the designer when you drop them on a form. For your RegExpTextBox, I'd assume you DO want to place them on a form in a position that you select with the designer. The best way to do that is to inherit from ...Show All
Software Development for Windows Vista SNMP pdu agent address is 0.0.0.0 when trap sent from Vista
When I generate a trap from a Vista machine using the WinSNMP APIs the agent address is 0.0.0.0 instead of the IPv4 address of the machine. If I run the same code on an XP SP2 machine the agent address is as expected. The code I am using to generate the trap is below. I am new to SNMP and the WinSNMP API so it is possible I am omitting some important step, such as explicitly setting the agent address. I have searched the WinSNMP documentation and googled for inspiration but I have not found a way to set the agent address. Where am I going wrong Does the source IP show up correctly Can you use that This might need more investigation at our end. Are you are an Empowered or Certified Microsoft parnter ...Show All
Visual Studio 2008 (Pre-release) Bug in TabControl/TabItem`s content visibility?
I use .NET 3 RTM. I have TabControl with TabItems. When I hide a TabItem (Visibility = Collapsed) and do not select another tab (sometimes I hide all tabs so I cannot select any tab), content of hidden TabItem is still visible. yes, I think it is a bug, and there are more than few issues here For ex. < TabControl > < TabItem Header = " Item1 " Visibility = " Hidden " > Item1 content </ TabItem > < TabItem Header = " Item2 " Visibility = " Hidden " & ...Show All
.NET Development Connecting to Access
I want to be able to connect vb.net to an access db I have variables with values from vb.net that I need to use I created a form in access of textboxes all individually labeled is there a way I can connect to Access and be able to fill this form and submit to populate this DB Thanks in advance!! You will need to use ADO.NET: http://www.google.com/search hl=en&q=ado.net+access ...Show All
Visual C# How to write in code when database nullable field is to be condition?
In my program, I set one condition and only when it is true can some thing be done. This condition is a field stored in MSSQL sheet's column, which can be nullable. My question is: in my condition code, what should I write as that condition " if xx == null " or " if xx == "" " or others By the way, it doesn't work when I write as "if xx == null" or "if xx == "" " . xx is of string type. try to compare strings and null like this if ( string .Equals(xx, null ) ) MessageBox.Show("null value"); ...Show All
Internet Explorer Development Internet explorer 7 MUI pack
Hello, I have Xp pro with multi-language user interface for the dutch language(and other languages). What means that xp is basically english but everything else is in dutch (menu, help etc...) Now my problem started with IE7 install I wanted to install the dutch IE7 version but I got the error message that the language of the operating system is not supported by this download (IE7-windowsXp-x86-nld.exe) So I installed the english version that did work BUT now all my IE7 menu etc.. is in english now Is or will there be a MUI pack for IE7 that will change my menu' back to dutch If there will be a MUI pack when is the release date If allready available please send me the correct link. Help would be appreciated. ...Show All
SQL Server Oracle data source connection problem using Report Manager
I have an issue when using Report Manager for viewing reports that use a certain Oracle data source. When viewing the reports in Report Designer the reports display without problems. But when trying to display the reports with Report Manager, after deploying the reports to the Report Server, I now get the following error message: blablabla....ORA-12705: invalid or unknown NLS parameter value specified For testing purposes I am running Report Designer, Report Server and Report Manager locally on a PC with Windows XP. I am using Reporting Services 2005, IIS 6, Visual Studio 2005, an Oracle 9.x client and an Oracle 9.x (not 100% sure) database that is hosted on a remote server. Earlier I got an error message that stated "ORA-121 ...Show All
Visual Studio 2008 (Pre-release) Control Template Hit Area
Hi, I'm in the process of creating a Control Template for a button, at this stage I have a problem. I have a button like the one in the link and I need to be able to hit only the circle and not the shadows or outside of the circle. Can I customize that behavior without using code My application is using a external Resource Dictionary file so I can customize several styles and load them in the application. http://aeroxp.org/thesleeper/btn.jpg ...Show All
Visual Studio Admin rights necessary for DSL Tools ?
Hi everybody, In my professional context, I do not have the admin rights on my computer. So, now, Visual Studio is not able to run the text templating engine neither the 'gacutil.exe' when I build the solution... Does an install documentation exist in this case, to explain precisely the procedure for the admin to allows a simple user to run the DSL Tools Thanks, OD. No unfortunately not. It is not really a supported or tested scenario. Although you may be able to make it work (e.g. see http://blogs.msdn.com/aaronmar/archive/2005/01/04/346397.aspx for some of the steps you'd need to take) you would have to be granted such a profusion of rights, e.g. over the GAC and shared areas of the registry, that it ...Show All
Gadgets saveAs dialog
Hi again, seeing that the documentation is still not updated, how it is with the save file as dialog I've discovered that I have to separate the file types by \0 instead of :. I wonder if I can leave the code with this null char or if this would be unexpectly fixed And how should I use the first parameter Is there any way how to suggest the file name for user Jan Ku era wrote: However, you should still terminate the string with two \0 (as was it with two ':'), that means on your bug list, the example should be "Text File\0*.txt\0Reg File\0*.reg \0\0 " Thanks for pointing that out, I've corrected it. ...Show All
.NET Development ConfigurationManager and app.config question
How do you get the settings from the <appSettings> when the config file is not called app.config ConfigurationManager.AppSettings["My Test"]; does not work for the following XML when the file name is MyApp.config but works when the file is named app.config. < xml version="1.0" encoding="utf-8" > <configuration> <appSettings> <add key="My Test" value="My Test Value"/> </appSettings> </configuration > Also, if I wanted to have several key's with the same value how do you iterate thru all the key's and access them without using their name The foillowing code, which comes from the Visual Studio 2005 help, did not work when ...Show All
Windows Forms Combo Box Problem
Hi, All my problem is quite simple but I am just stucked. First I would like to ask what is the best way to populate combob box in windows application. Some articles says datareader and some say using dataadapter then put into dataset n finaly in datatable. I am quite confuse over here. Now I am trying to use a datareader to fill a combox and getting an error of IList not support member. Can some body show me how to fill the combo using datareader. Another extra question is that beside the data that I get from the database I want my first line the combo to show a value like "Please Make A Selection" how can I insert this line as the first in the combo which is not part of the database. I wish to thank if any body could help ...Show All
Windows Forms Launching another window from my application
Hey, I'm new to the whole C# thing. I am using Visual C# 2005. I have created a simple web browser. It has all the basic functions of a browser. I created another form in the project that is an about box. I want people to be able to click on a button on my browser and have this about box show up so they can learn more about my browser. I already have the button on my form but I don't know what code to type that makes the about box show up when the button is clicked. Please help. Thanks! you could also use the ShowDialog() method which will block the previous thread/form and make the current form a modal dialog, which is handy so they dont click on your button multiple times and previous instances hidin ...Show All
