Robert.Altland's Q&A profile
Visual Basic How to save active page displayed through I.E.6 under text page.
Hello, I would like , through Visual Basic 2005 command, save under c:\test.txt an active sheet displayed on the screen through I.E.6 browser. I am working Windows XP . Any support will be welcome ! Thanks for your reply and I think I understand your point. The general idea is the following : To acess an https page and retrieve data from this page. The data are then tranfered to Excel sheet for manipulation. If I understand you, I should do the following using VB+ IE add in and : 1) launch VB 2) acess the http welcome page 3) Insert manualy identifier and password ( this cannot be done automatically as the password should be inserted through virtual keypad on the screen.) 4) ...Show All
Visual C++ Sending keystrokes to other window
Hi i have a problem. I want to write a program that would send a keystroke to other window. Do i have to use hooks or there are some other ways. I saw some that uses .Net Framework. Desired OS don't have Net Framework installed. einaros wrote: I've done this a gazillion times, so I'm quite aware of what's involved. Telling the OP that those are the possible paths does help him along, however off topic the question may be. Including a full code sample would be overkill. Yes it is not easy to be sure how much to say. I agree that we want to encourage use of more relevant forums and newsgroups, and I know you know that I do that often. I think it does help however to provide an indication of what is required; my intent is to ex ...Show All
Gadgets Multilanguage gadgets
What happens if you make a gadget with two folders, en-US and es-ES, and it is installed on a machine with other configuration, ja-JP for example. Wich configuration it takes en-US, es-ES or doesn't work . In Vista, every language has a 'fallback chain' of other languages that it will try if resources are unavailable in the installed/configured language. Sidebar gadgets also obey this fallback chain. I don't have the fallback chain handy for ja-JP, but I doubt english or spanish is on it. (Usually its stuff like 'american english' might be in the fallback chain for 'canadian english' - where a person might reasonably still understand the fallback language.) The one place gadgets vary from this scheme i ...Show All
Visual C++ Cannot interrupt a process running with OnKeyDown
The ESC key works ok, if the application is idle and waiting for a menu command. But I cannot interrupt a procedure with the OnKeyDown function that continuously loops and looks for files (containing String info), formats data and appends records to a MS ACCESS database. I can only use the GetInputState function and a dialog to exit the routine. I use Visual C++ vers. 6 and MFC. This is correct and you can change this only if you use multiple threads! If the operations are in a loop and you want to peek for an escape key you have other choices. http://www.microsoft.com/msj/0297/wicked/wicked0297.aspx And this is my favorite: http://www.microsoft.com/msj/0798/c0798.aspx ...Show All
Software Development for Windows Vista Calling CreateProcessAsUser() from service
According to some MS documents (e.g. http://www.microsoft.com/whdc/system/vista/services.mspx), it should be possible to use CreateProcessAsUser() API in a Vista service to create a process in user session. I am trying to achive this, but the function returns error code 1307 (ERROR_INVALID_OWNER) = "This security ID may not be assigned as the owner of this object." Does it work for somebody Many thanks in advance. Mine was the same senerio, calling CreateProcessAsUser from service. I followed the steps given by you, and it really worked for me thanks HANDLE hTokenNew = NULL, hTokenDup = NULL; HMODULE hmod = LoadLibrary("kernel32.dll"); WTSGETACTIVECONSOLESESSIONID lpfnWTSGetActi ...Show All
.NET Development Common Question: How can I clean a machine which has the .NET Framework 2.0 or 1.1?
Since this question seems to be quite common, I will post this sticky thread and will update it periodically as new information becomes available. The following is from Aaron Stebner's WebLog : "Removal tool to fix .NET Framework install failures I wrote an application late last year that is designed to clean up computers that have problems getting the .NET Framework 1.0 or 1.1 to install correctly. I have been working on refining the tool for the past couple of months, working out some bugs, adding additional cleanup features, etc. The .NET Framework setup Product Support team has been using this cleanup tool for the past few months to help resolve many cases, and the internal Microsoft helpdesk has also started using it to ...Show All
SQL Server row to column
hello Table T1 has T1: MyID, MyDate1, MyNote1, MyCharge1, MyDate2,MyNote2, MyCharge2 How can I write my view to report these in MyID, MyDate1, MyNote1, MyCharge1 MyID, MyDate2,MyNote2, MyCharge2 format You should actually normalize your table so that it is easier to work with. You can do one of the following with your existing table structure: select t.MyID , case r.n when 1 then MyDate1 when 2 then MyDate2 end as MyDate , case r.n when 1 then MyNote1 when 2 then MyNote2 end as MyNote , case r.n when 1 then MyCharge1 when 2 then MyCharge2 end as MyCharge from T1 as t cross join (select 1 union all select 2) as r(n) -- or select t.MyID, t.MyDa ...Show All
Visual C# "error CS2011 : Error openin response file..." ??
Why do i always get this error message whenever i try to debug or compile something : "error CS2011 : Error openin response file 'c:\Documents ' -- ' the system cannot find the file specified " this is after i uninstalled and reinstalled the compiler. Is there a way to remedy it "c:\Documents", sounds like Vista. Or your PC is pretty messed up and has the standard folder names (like c:\documents and settings) all scrambled up. You might be able to avoid this by changing the location of your TEMP environment variable... ...Show All
Visual Studio 2008 (Pre-release) Acheive fast bevel effect
I am trying to build a custom button template to emulate the bevel bitmap effect. I need to do this because the bitmap effect does not use HW acceleration and is very slow. Using 2 rectangles and a linear gradient on the back rectangle, I can acheive the look I am going for. The problem is when resizing the button, I need to dynamically change the angle of the gradient. Here is the button as it looks before being resized. Button before resizing So, as you can see, the linear gradient needs to change as the button changes size. Button after resizing The desired result is: Desired Button look after resizing (Note the difference in gradient angle around the edge) &nb ...Show All
SQL Server Cannot connect to 2000 from 2005 via linked server
Interesting issue.. I think I have 2 linked servers on my dev 2005 instance (sp1-win 2003). My 2005 instance shares the physical server with a 2000 instance. This linked server works fine. The second linked server is on a separate server running sql 2000 sp3. I cannot connect to this server at all. I can connect the other way -- from the 2000 to the 2005. I have tried all kinds of combinations of security and options but nothing works. The only resolutions I have found referenced installing Management Studio on the 2000 server or creating an ODBC connection from the 2005 instance. Any ideas Here is the error I get: OLE DB provider "SQLNCLI" for linked server "ALLFLDB6" returned message "Login timeout exp ...Show All
Windows Forms How to make datagrid components to be used in several classes.
Hi all I am not sure if this is possible but i have to see. I am not that experienced in c#. Is it possible to create a datagridview, design it and make it a component/class so i can use this datagridview in other classes. I need a datagridview to be displayed several places in my app. The grid has to be the same layout/design, so insted of createing it twice i would like to make it a component/class/template. Possible How do i create and use this Thanks. Hi, well, the easiest thing would be to make a user control, put a DGV on it, set its Dock property to Fill and design it according to your needs. Then expose a property, which will expose the DGV control itself to the outside world, or make existing DGV's modi ...Show All
Visual C++ In search of the lost Form1.cpp file
I just tested making a Windows Form in C++/CLI for the first time. I've only used C++/MFC before where (most) functions are declared in a header file and defined in a cpp-file. Not so in a Windows Form class it seems. It seems that all functions in a Windows Form class are supposed to be inline. Is that true Please help me clarify this paradigm shift (if there is one). Thanks I moved some code to handle a button's click event from the .h file to a new .ppc file (and creating just a function declaration in the .h file). However after having done this, If I double-click on the button in the form designer, instead of putting me at the code for the button click event, it just puts me at t ...Show All
Visual Studio Team System Drag and drop not working in VS 2005 using Stored Procedures onto the Design view for aspx pages
Hi, I would like to know if there's a way in VS 2005 to drag and drop stored procedures from the Server Explorer to the .aspx page design view like VS 2003 I thought it was nice in VS 2003 to drag the SP onto the page and it would create and initialize the SP. In VS 2005, it won't let me drag the SP, I have to use the SqlDataSource and it doesn't generate a code in the code behind page Can anyone give me any guidance on this Thanks, Jaime I believe you are posting in the wrong forum. You may have a better chance at getting an answer if you were to post in the correct forum. ...Show All
Windows Forms Web service on a Win form
I've just learn't how to consume a web service and display the xml on my web page using xslt, but was wondering how to go about the same task using a Windows Forms application. The xslt document format's the xml in to html to be displayed on the browser, but how should I display the info on a win form (obviously no html on a win app) Can anyone please help Hi, if Html is the format you want to display on your form, you could show it in the WebBrowser control by setting its DocumentText property to your Html text ... Andrej ...Show All
Visual Studio Team System No format was found for events of type ProjectCreatedEvent
Hi, I have subscribed to ProjectCreatedEvent using BieSubscribe.exe Following is the command I used. >BisSubscribe /eventType ProjectCreatedEvent /address myemailaddress@mycompany.com /deliveryType EmailHtml /server myserver It returned me a subscription ID. I checked into tbl_subscription table and the entry is made properly. I also recieved the mail when I created the project on that server. But the mail body contains "No format was found for events of type ProjectCreatedEvent". Is there any way to define a format for the mail notification Manasi Thanks I found a work around. I wrote a web service and in the Notify() method, I send a mail in the requ ...Show All
