tnsgod831's Q&A profile
Visual Studio Express Editions Saving dropdown items?
I am making an internet browser and i hav used the following code for adding a site to the favourite menu. itmFavo.DropDownItems.Add(web1.Url.AbsoluteUri) but how can i save the added dropdown items when the form is closing en how can i open them when i open the form. they would be declared as a variable - a collection in the Favourite class. Did you copy and paste the favourite class code into a new class file you shouldnt need to change anything if you did this. ...Show All
SQL Server Connecting to SQL Server on a different port
I have a server running SQL Server 2005 Dev behind a firewall that blocks the default SQL Server port. So, I changed the port that SQL server uses to another port. How do I connect to the database instance with SQL Server Management Studio. I have tried: xxx.xxx.xxx.xxx\MSSQLSERVER xxx.xxx.xxx.xxx:port\MSSQLSERVER name.of.machine\MSSQLSERVER On all of these, I get an error 25 - Connection string is not valid. I have the surface area configured correctly (i.e. named pipes and TCP/IP are both turned on), and the sql server browser is running. I can ping the server just fine, and when I go to GRC.com and do a shields up report it lists my port of choice as being open. What am I missing I also set the native client configuration's default p ...Show All
Visual C# or operand on Enum type
I need help to do the or operator on Enums. Here is what i am trying to do. Type type = ... . if (type.IsEnum) { Enum e = Activator.CreateInstance(type) as Enum; foreach (string name in Enum.GetNames(type)) { e |= Enum.Parse(type, name) as Enum ; } } The bold line get compilation error: Operator '|=' cannot be applied to operands of type 'System.Enum' and 'System.Enum' . Is there some way to go around the problem Peter Gustafsson Enum is a class and it does not define any or operator (or other logic/arithmetic operators). The best thing that you can do si to use an int instead of Enum and add th ...Show All
Gadgets Missing thumbnails on gallery.live.com
I seem to notice a lot of Gadgets on the galley.live.com page don't get their thumbnail image displayed (mine doesn't seem to show up about 80% of the time). Anyone have any insight into this issue Hi nadasurf2 (et al). I just verified that this has been fixed for the ones that had known problems. If you do see any additional issues with this please feel free to respond. Thanks! ...Show All
Visual C++ "error LNK2005"...How to fix it?please help me...
I'm using Visual C++ Express Edition..I'm programming in Win32 Console Application.When I compile the appliacation,compiler informs that: error LNK2005: "public: class String & __thiscall String::operator=(class String const &)" ( 4String@@QAEAAV0@ABV0@@Z) already defined in UseString.obj 1>String.obj : error LNK2005: "public: __thiscall String::String(char const *)" ( 0String@@QAE@PBD@Z) already defined in UseString.obj 1>String.obj : error LNK2005: "public: __thiscall String::String(class List<char> &)" ( 0String@@QAE@AAV $List@D@@@Z) already defined in UseString.obj 1>String.obj : error LNK2005: "public: char const * __thiscall String::c_str(void)const " ( c_str@String@@ ...Show All
Visual Basic Problem printing with RawPrinter and Win98
I use the RawPrinter class, as per MSDN discussions. This has printed perfectly well from a Win98 client to a shared printer on a WinXP machine. I now get error 120 when I try to run the OpenPrinter. All I know is that we have re-installed Win98 on the client, but I cannot find any info as to what might be generating the error. I can print to the WinXP printer from a WinXP client, just not Win98. Any suggestions ...Show All
SQL Server Removal of Dimension Name from Data Sample Viewer
Hi All, I have created a DrillThrough Action in my cubes. When I right-clicked on the data cell and click the Drillthrough action, the Data Sample Viewer pop-up. The Data Sample Viewer always contain a $ sign and the dimension name. Is there a way to remove the dimension name Thanks Chen Khoon Seah What application you are using to browse your cube Try installing beta of Office 2007 and trying invoking your drillthough action in Excel. Edward Melomed. -- This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
Windows Forms How do I make a form read only (vb.net)
Hi, I'm aiming to create a form to display non editable information. I am aware that I can set the enabled property to false, however this greys out the information and I dont want this. Is there any way I can make the form (or the controls on it) read only Thanks Well, as your aim is to create form for only display, you can use labels to show the value. If you want to make TextBox control as readonly, you need to set textbox's ReadOnly property to true. Hope this helps you. ...Show All
.NET Development Cannot load type ...
Hi, i have a problem. I have a class to do remoting, but i can't do it. The class is: namespace PoolHCService { public class RemoteHCPoolRef : MarshalByRefObject { } } In the server app.config i have: <configuration> <system.runtime.remoting> <application name="RemotePoolServer"> <service> <wellknown mode="Singleton" type="PoolHCService.RemoteHCPoolRef, PoolHCService" objectUri="RemotePool" /> </service> <channels> <channel ref ="http" port="7782"> <serverProviders> <formatter ref ="soap" typeFilterLevel="Fu ...Show All
Visual C# Converting System.Guid to _GUID
Hi, I have to convert a System.Guid variable to a _GUID but I don't know how. The declaration of the function (in Microsoft.FlightSimulator.SimConnect): public void ExecuteMissionAction(_GUID guidInstanceId); The guid I have: {0110DB64-FED1-4E40-A134-4F755A8245D1} And I have an other problem. I cannot use _GUID. I added ISymWrapper to the references, but when I want to build the project I get the following message: "error CS0122: '_GUID' is inaccessible due to its protection level" So, how can I call ExecuteMissionAction with this guid Thanks, Endre I tried Guid.ToString, but it didn't work. It sent me an error message while building the project: "error CS1503: Argument'1': cannot convert ...Show All
Game Technologies: DirectX, XNA, XACT, etc. StencilEnable
Does RenderState.StencilEnable control stencil testing, writing, or both I noticed that it doesn't have a complement to DepthBufferWriteEnable. -- Jeff S. ...Show All
Visual C# events response time?
this problem faces me alot which is some of the events didn't execute the code that it responsible to execute until i put a messagebox in the beggining of the execution block,take this as an example which is a event from a combebox events "SelectedIndexChanged" private void CB_SelectGroup_SelectedIndexChanged(object sender, EventArgs e) { //System.Threading.Thread.Sleep(2000); MessageBox.Show("kk");// <----------------1 int counter = editDataset.Tables[1].Rows.Count; for (int i = 0; i < counter; i++) { if (editDataset.Tables[1].Rows .ToString() == CB_SelectGroup.SelectedText && selectedTextInfo[CB_SelectGroup.SelectedIndex, 1] == editDataset.Tables[1].Rows [1 ...Show All
Visual Studio Team System Visual Studio crashing all the time
I have two virtual servers running, one with Team Foundation server Beta 3 and Sql 2005, and one with Visual Studion Team edition RC installed. When working on the Visual Studio box, it constantly crashes and especially when working with tests. Both virtual machines have 1500 MB of memory allocated. Is this not enough maybe I had the previos betas installed as well and they did not crash this often. Seems a bit too much for a rc... Has anyone else been having similar issues Hello Jonas, Could you give us more details about the situation in which it crashes Is it during debugging of tests What kind of tests do you have How many tests do you have in your solution Thanks, ...Show All
Windows Forms Height limit
Hi all I am using C# in VS.Net 2005. I have found that I cannot set the height of a form greater than 1036. Does anyone know if 1036 is absolutely the maximum for a form's height or any way to change the limit Thanks, To put a long story short. Let's look at this scenario: I am running a machine with 1280x960 and get the height limit 1036, but I am doing some maintenance work for an application targeting monitors with resolution 1600x1200 or higher (very common nowadays) and just need to rearrange two controls at the bottom of the form. The application was created with a higher resolution display so its height is 1100. Once I load the project and open the designer, its height drops to 1036. I have noticed that the hei ...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
