tgbt's Q&A profile
SQL Server How can I connect to a remote sql server using windows authentication?
It is simple 1- I open the Sql Server 2005 Management Studio 2- I select Windows Authentication from the drop down. 3- I cannot write the user name and password, it chooses the default once, the one I am logged in with! But I am in a virtual machine outside the domain controller, I can access shares on machines that are on the domain controller, thanks to the file sharing of windows, but I cannot login to sql server, thanks to a meaningless restriction on that dialog :-) Now, how can I still use the Windows Authentication and login, how can I avoid the sql server authentication Ok, then why the text boxes for the user name and password are ...Show All
.NET Development "Queued" requests...
We are experiencing a strange problem on all our testing environments and our production environment as well. Here is the problem. We have a web service that exposes a series of methods, each method representing a type of request. Based on the method called different code is executed. The web service does not do much more than act as a dispatcher to the correct business object that will handle the request. The business objects are accessed via remoting. The issue we have is that IIS seems to be processing simultaneous requests in a serialized manner. Using a test .aspx form, if we submit two requests back to back (submit request #1 from one .aspx form and followed immediately by submitting request #2 from another .aspx form), request ...Show All
Software Development for Windows Vista On Vista, iexpress launching the application window in the background!!
We use the Microsoft's IExpress to package a bottstrapper and MSI file into a self-extractable installer package.The self-extractable installer extracts bootstrapper (setup.exe) and MSI package and launches setup.exe which in turn launches msi package. The problem is when self-extractable is launched on Vista machine, the UI window is getting launched in the background. I have to use ALT+Tab to bring it to the foreground. But when the self-extractable is launched on other OS (XP, W2k3 server etc), UI window is properly launched in the foreground. Has any one experienced similar issue Is this an issue with Vista Great, to know that. I'm going to make the assumption you are going for Vista Logo Certification. If th ...Show All
Visual C++ converting encrypted data into hexidecimal
How can I convert each byte of encrypted data into two hexidecimal characters, so that a byte of the value of 'z' becomes the string of two characters: '7A' , My encrypted data is of variable length. Also once converted I need to conver the hexidecimal back to the encrypted data So any suggestions please. My encrypted data looks like the following " [U | £ ](%IY X/2 A9 f Qv dyyyy itit" andn is obtained by doing the following PBYTE pBufPtr if(!Encrypt(hKey, 0, TRUE, 0,(BYTE *)pBufPtr, &dwCount, dwBufferLen)) I need to convert it into hexidecimal and display it to user so the user can read it out and at the other end we'll take the hexidecimal and convert it back into the encrypted data. So need he ...Show All
Visual Studio can't install VS2005 - "not a valid win32 application"
I'm trying to install visual studio on desktop with an AMD64 processor (but using 32-bit XP Pro), and when I try to install Visual Studio 2005, I get a "not a valid win32 application" in a dialog box. I get the error "D:\ is not a valid win32 application" when I try to use autoplay, and "D:\setup.exe is not a valid win32 application" when I try to run setup directly from the disc. Any ideas I have an HP Pavilion zd7000 laptop and VS2005 will not install. I get the same "setup.exe is not a valid win32 program" error. Anyone getting any info from MS and posting would be greatly appreciated. ...Show All
Windows Forms simultaneous events
Hello. I have a ListView control on my form. Every Item consists of checkbox and string. On double mouse click on any Item two events are happening simultaneously: DoubleClick and ItemCheck . There are handlers for both of these events in my program. The question is: how to block ItemCheck handler execution on double mouse click, and execute only DoubleClick event handler In other words how to identify in ItemCheck handler if mouse double click event happened Thanks, I'll try this variant, but it seems to be not very safe :( But I still have a question Is there any way to access Event Queu of the control And is there any more safe decisions of this problem ...Show All
Windows Forms .GetChanges Code is Detecting Changes Where There Are None
The following code in VS2005 SP1 detects changes in my dataSet when there are none so I know something is wrong. I've used the code before without this problem. Is this occurring because the code is in the Form.Leave event USM2.usmDataSet_EstimateProcedure dsChanges = new USM2.usmDataSet_EstimateProcedure(); endCurrentEdit(); dsChanges = ((USM2.usmDataSet_EstimateProcedure)(usmDataSet_EstimateProcedure1.GetChanges())); if ((dsChanges != null)) { DialogResult dr; dr = (MessageBox.Show("Do you want to save your changes ", "Alert!", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question)); if (dr == DialogResult.Yes) { saveRecord(); } ...Show All
Windows Forms Flicker using doublebuffer
I created a UserControl which contains a Panel. I created an eventhandler for this Panel's Paint event. In this handler I draw a grid for the background and the a line which links to squares the user can move. Every time the squares are moved the panel is invalidated, in order to redraw the link. Repainting gives a lot of flicker. As in other controls I made, I tried to use doublebuffering in both ways, through SetStyle and the DoubleBufferd property. Flicker remains. I also tried to use one transparent panel over the panel with the grid. The grid needs to be painted only once, while the links are often repainted. So I tried to put squares and links in the transparent panel, but the grid panel is still repainted every time the transparent ...Show All
Visual Studio 2008 (Pre-release) Bottomless RichTextBox
Anyone know how it might be possible to implement a "bottomless" (self-sizing to fit content) RichTextBox-based control. The old Win32 RichText control has the EM_REQUESTRESIZE message which one could hook, I haven't been able to figure out whether the equivalent exists in the WPF control. Thanks, Jeremy Okay, thanks, you are correct that it grows downwards by default, but let me tell you what I really need: I want to be able to feed the control a bunch of formatted text, have it measure the text, and size itself just big enough in both width and height to contain the text without wrapping or scrolling. I only need to be editing a single line at a time, and I want to set it up so that t ...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 2008 (Pre-release) (STS) RST and RSTR classes are now private?
I came across this posting by Cibrax in which he mentions that these classes are now private and that you need to replicte their code yourself. http://weblogs.asp.net/cibrax/archive/2006/09/08/SAML-_2D00_-STS-implementation-for-WCF.aspx Can anyone provide some insight into this Are there now other public classes that can be used Given that they were used in many of the samples provided by MS, it would seem that they covered a number of probable scenarios. Not being "everything to everybody" doesn't seem like much of a reson to remove something. ...Show All
Visual Studio Express Editions Invalid Column Name
Hello, I am using Visual C# 2005 Express Edition and I am trying to connect to an SQL database. I have created the database with the following columns: id, first, last, phone, date I have created a binding source with a Data Grid View and I am trying to load the data. However, I am getting an "Invalid Column Name" error for NO apparent reason. Here is what my code looks like: SqlConnection con = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\dsAllMembers.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"); con.Open(); if (con.State == ConnectionState.Open) { System.Console.WriteLine("So far, so good."); SqlCommand command = new SqlCommand("SELECT id, first, last, phone, date FROM tblMemb ...Show All
Windows Forms How to attach a context menu during runtime
Hello everybody. Right now I am trying to create a small hotel program(similar to Room Master) What it is supposed to do is to create as many rooms(represented by buttons) as the user wishes. Also I have created a context menu with all the options on it what i want to do is to attach the context menu to every dynamically created button i've tried doing the following myButton.ContextMenu = this.contextMenu1; but it doesnt work then I've created the context menu inside the code, i mean like ContextMenu cntMenu = new ContextMenu(); cntMenu.MenuItems.Add("touch up"); and so and so I feel it is much easier if I can just attach already visually created context menu any ideas how to do this maybe if I create a reference(I dont know how ...Show All
Internet Explorer Development IWebBrowser2::ToolBar property not working under IE7
My web application installs a client-side control that uses the IWebBrowser2::ToolBar property to enable / disable the IE menu bar and toolbars. Under IE7 RC1 this works if my application is running in the _only_ IE7 tab; but if other tabs are open enabling / disabling toolbars has no effect. I can see why the tab bar isn't being hidden with more than one tab open, but not why other toolbars are not -- seems like they should be enabled / disabled as appropriate for the active tab (the IWebBrowser2::MenuBar property _does_ appear to work this way). Thoughts Suggestions for a workaround Thanks! Hi, I have developed a BHO which upon Alt-clicking a word anywhere in the browser, pops a translation site ...Show All
Visual Studio Express Editions Help me with everything visual c++
I am working on project which is on Directshow application .i m using the express edition ...i installed the microsoft platform sdk . when i try to build it gives me error saying fatal error C1083: Cannot open include file: 'windows.h': No such file or directory. In the installation procedure in the 3rd step it asked me to update VCC+ directories with paths it mentioned . I tried in the options section to do that but i could not figure where exactly in the projects and solutions i mention the path. please help me i am completely new to this ...... To be frank i just started of with the computer field.........(i jus learnt wat a library meant ,wat project meant etc) Hi, look here: Tools->O ...Show All
