Montana47's Q&A profile
Visual Studio Express Editions excel commands with c#
Does anyone know how to make a selection like "ctrl + shift + down" using C# in a Excel application I wanna get the range from the first cell until the last one with something written in it but he's not using sendkeys - for example, he is not opening the excel file in a process. Please also, if you dont mind, do not copy and paste the entire msdn class info here, as some links will be invalid, formatting issues and so on but rather give a direct link to the page. Thanks! ...Show All
Visual Studio 2008 (Pre-release) wsfederation
July ctp netfx When I try to fulfil the application (BookStoreServce sample) for me there is the exception : PolicyValidationException and the message The incoming policy could not be validated. For more information, please see the event log. Help me please. Thank. client.app < xml version = " 1.0 " encoding = " utf-8 " > < configuration > < system.serviceModel > < client > < endpoint name = " WSHttpBinding_IBrowseBooks " address = " http://localhost:1856/BookStoreService/Service.svc/browse " binding = " wsHttpBinding " bindingConfiguration = " WSHttpBinding_IBrowseBooks " contract = &quo ...Show All
Visual J# Microsoft J# Redistributable Package - Error during compile
Hello, I have an error when I am doing a software build and using the J# command line compiler. Here is the error path. Here is the error I get when I do the build. J# Error Message I have attached the technical info that will go to Microsoft. The advanced error signature from the reprot above: AppName: vjc.exe AppVer: 8.0.50727.42 ModName: kernel32.dll ModVer: 5.1.2600.2945 Offset: 00012a5b Does anyone have any ideas why I might be getting this I also have the full text technical report as well and can send that but will not post it here due to length. I also have received this error when I do a clean uninstall and try to install J# 2.0 Redist from the executa ...Show All
Visual Studio Express Editions Can't change attributes on window(opacity)
In this code: http://nomorepasting.com/paste.php pasteID=74503 I'm trying to simply change the opacity of any window. But that doesn't seem to be working. Anyone know what I'm doing wrong and/or how to get this to work This will 'zap' notepad: Option Strict Off Public Class Form1 <Runtime.InteropServices.DllImport( "user32.dll" , _ SetLastError:= True )> _ Private Shared Function FindWindow( ByVal lpClassName As String , _ ByVal lpWindowName As String ) As IntPtr End Function Private Const GWL_EXSTYLE = (-20) Private Const WS_EX_LAYERED = &H80000 Private Const LWA_ALPHA = &H2& & ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Question about installing games...
Hello, I created a small game in Game Studio and it runs fine on my machine. I wanted to install it on my wife's laptop and it won't work. I upgraded her laptop from .Net 1.1 to .Net 2.0, the same as on my machine. I also downloaded and installed the XNA Framework Runtime. She is running DX 9.0c just the same as I am. But the game will not run on her machine. Any thoughts Thanks in advance... Jim Perry wrote: Derek Nedelman wrote: You also need to install the XNA runtimes. http://www.microsoft.com/downloads/details.aspx FamilyId=EB14D73E-E6D8-4132-8032-3CB828DB5EFC&displaylang=en "I also downloaded and installed the XNA Framework Runtime. " Haha. Whoops. ...Show All
SQL Server Neither Exist or Not Exist seem to be working... help!
the follow SQL returns the following error. select companyintid from company where [dbo] . [exist] ( select companyname from companies where companyintid = 'CM00006070' ); ------------------------ERROR--------------- Msg 156, Level 15, State 1, Line 4 Incorrect syntax near the keyword 'select'. Msg 102, Level 15, State 1, Line 4 Incorrect syntax near ')'. select companyintid from company where exists ( select companyname from companies where companyintid = 'CM00006070' ); ...Show All
Smart Device Development launching external application on device from c#
Hello, Hopefully someone can help me... I have two c# apps, App1.exe and App2.exe. They are both in the same directory on the device, What i am trying to do is either... Have App1 to call App2 directly, Have App1 run a file that is associated with App2 (which would automatically open up App2) or Have App1 call App2 directly and pass a file name to it to open. I have tried... CreateProcess(txtApp.Text, txtParam.Text); and a few others that i have found but they all return errors and wont compile. and i have looked at the Process class from OpenNETCF but i have so far had no success. Does anyone have any example code they can share or know of any useful links to help me on my way... (preferrably without having to use the fi ...Show All
SQL Server First Letter Capital More Than One Word
Here is my question: Can you set this code up to do more than one word ex: I have names like Mc Donald, or Brook-Smith and the are lower case like the code states upper (left( client . first , 1 ))+ lower (right( client . first , len ( client . first )- 1 )) + ' ' + upper (left( client . last , 1 ))+ lower (right( client . last , len ( client . last )- 1 )) As 'Full Name' Ray, It is similar to a stored procedure, but as a function, you can run it inline with the SELECT statement instead of calling it like a procedure. You execute it to save it to the database (just like a stored procedure). Then you pass the value to the function and the function returns the modified value. You ...Show All
Software Development for Windows Vista I The requested operation requires elevation.
I'm trying to download Poser 6 to my computer running Windows Vista but I keep getting a message saying "The requested operation requires elevation." I'm using the adminstrative account and can't figure out what the problem is. This tread has answered the problem I had yesterday with ipconfig but I'm curious mention of disabling UAC (whatever that is) and wondering whether doing so would eliminate an annoyance for me. My preffered operating system is Linux and the way that works with root access would suit me, ie. If I log on Vista (Home) with an administrator accout, I would like to accept full responsability for doing so without having to confirm that I want to do certain things or find some com ...Show All
SQL Server Generate script of ALL database objects
I need to be able to programatically generate the CREATE scripts for all objects for a given database. Basically, I need the same results as if I generated the script using SSMS and choosing to script all objects in the selected database. I'm hoping I could do this using the Scripter w/in the SMO Utility Classes. Can anyone help me out Thanks in advance! Would anyone happen to know how I could get the end of a batch of Transact-SQL statements; i.e "GO" statements to show up in generated script Thanks. ...Show All
Smart Device Development VoIP client on standard Pocket PC device
Hi Is there anyone knows if i can use "Real-time Communications Client API", "Telephony User Interface(TUI)" and "VoIP Application Interface Layer(VAIL)" to develop a VoIP client on WM5.0 OS based PPC device, or these api is only for other Win CE platform Thanks in advanced Sorry, i'm a little bit confused, the WM 5.0 is the subset of the WinCE, so if these APIs are available in the general embedded version of Windows CE 5.0, can i use them for for developing WM5.0 application. If not, is there any exist APIs that i can use them for WM 5.0 platform Thanks ...Show All
.NET Development Running an Application remotely from the Server gives a Security Policy error
Running an Application locally works but if running from the Server,it gives a Security Policy error. Even tried making it a full trust application by going to the Security tab and checking off "Enable ClickOnce settings" and selecting - This is a full trust application. I get the foll error when I try to run it from the server. Details System.Security.SecurityException: Request failed. at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, ...Show All
Windows Forms When Form.Load() will be called...?
Hi… First I am calling Form.Show() function from my MDI application & then I am hiding that form using Form.Hide() so when next time if I call Form.Show() then will it call Form.Load() event again … When actually Form.Load() will execute exactly… I want to set default parameters of my form which I am setting on Form.Load() & I want my application should set those forms control parameters values whenever I’ll call Form.Show(). How I can do this… Thanks, Vinay Odd question... Form.Load runs when Windows sends the WM_CREATE message, triggered by the form constructor. All the child controls are already created by the InitializeComponent() me ...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
SQL Server Using UPDATE CUBE for override cells with CustomRollup?
Hi all, In our task I'm using CustomRollup for define logic for calculate some not leaf members, for example: CoalesceEmpty ( [Accounts].[AccountsTree].[1002G].DataMember, ... It allows to have in FactTable, for not leaf members, the values, those used instead of aggregated from children. Now I'm trying use UPDATE CUBE for assign a Datamember's value for non leaf member: UPDATE CUBE ... SET ([Accounts].[AccountsTree].[1002G].DataMember,... ) = ... It works correct if member hasn't CustomRollup formula and doesn't work if CustomRollup exists. So, the question: Can I use UPDATE CUBE for override Datamember's value for non leaf member with CustomRollup Thank you in advance, Stas Mosh ...Show All
