Murali Krishna K's Q&A profile
Software Development for Windows Vista Wallpaper in c#
Tell me how to set a image as wallpaper using c# Willfin David For setting a wallpaper you can use SystemParametersInfo to set a wallpaper image programmaticly. This works for Bitmap's only, so when you want to set a other image-format you must first convert this to a Bitmap image. [DllImport("user32.dll", CharSet = CharSet.Auto)] private static extern Int32 SystemParametersInfo(UInt32 uiAction, UInt32 uiParam, String pvParam, UInt32 fWinIni); private static UInt32 SPI_SETDESKWALLPAPER = 20; private static UInt32 SPIF_UPDATEINIFILE = 0x1; private String imageFileName = "c:\\sample. ...Show All
Windows Forms using User Interface Process Application Block ??
I'm trying to use User Interface Process Application Block from a menu-system, and would love to be able to pass some parameters to the view state from the graph start point: 1. the graph start point that works looks like: UIPManager.StartTask( "Demo1" ); 2. the graph start point that I'd like to use would be UIPManager.StartTask( "Demo1","Account1000" ); D ...Show All
SQL Server escaping a string
hi guys please help me. i've never user stored procs before but here is my problem. this is only what i am allowed to display but it shows my problem declare @suite varchar(10),@company varchar(1) set @suite = 'brutus' set @company = 'A' exec ('insert into tot (SuiteName,Company) values ( '+@suite+','+@company+')' ) when i exec the query it says that "brutus" is an invalid column name. i know that i need to insert a extra ' but i don't know how or what is the escape character. please help me. Hi, this should be accomplishedby this one here: exec ('insert into tot (SuiteNam ...Show All
Software Development for Windows Vista Workflow won’t start...
again, hi everybody: my problem: my workflow wont start. what i did, is the following: calling the workflow from a class: WorkflowRuntime workflowRuntime = new WorkflowRuntime(); workflowRuntime.StartRuntime(); updateStatus("WorkflowRuntime started..."); workflowRuntime.WorkflowCompleted += OnWorkflowCompleted; Type type = typeof(AdminToolWF.CustomerFlow_A); --> workflowRuntime.StartWorkflow(type); updateStatus("Workflow " + type.ToString() + " started..."); waitHandle.WaitOne(); workflowRuntime.StopRuntime(); updateStatus("WorkflowRuntime stopped..."); at --> t ...Show All
Visual Studio 2008 (Pre-release) Binding validation samples
Hello I have downloaded the Winfx beta 2 (may release) and download the binding validation sample from SDK. However, I run into system IO exception because resource can not be found. The message seems to indicate that it can not find window1.baml. I check and find that window1.baml exist in debug directory. Can anyone point me to the right direction Thanks. The following is the line where system exception occured. System.Uri resourceLocater = new System.Uri("BindValidation;component\\window1.baml", System.UriKind.RelativeOrAbsolute); System.Windows.Application.LoadComponent(this, resourceLocater); Boon ...Show All
Visual Studio Express Editions How do I delete or remove projects and files from visual C++ express Edition
How do I delete or remove projects and files from visual C++ express Edition mveeravagu wrote: How do I delete or remove projects and files from visual C++ express Edition Projects can be managed using the Solution Explorer. If you can't see the Solution Explorer, you can reveal it by choosing View menu -> Solution Explorer. Here, you can right click on your file and choose Remove. "Remove file" removes the file on the project, but keeps it on your hard disk. "Delete" removes the file from both the project and your hard disk. ...Show All
Visual Studio #Error and null values
Hi all, i have a problem with null value in field. If field containts null value - i get displayed an #Error where value should be. Checking for nothing or IsNothing doesn't seem to help Any suggestions where to look In a Matrix when your datasource doesn't return a value for a particular row/column combination, it can be shown as any value you wish by simply using OR logic. I.e. The detail of the cell for each row and column would normally be something like: =Sum(fields!Total.Value) if for that row and column there is no data this leaves the field Blank....but not 'null' or 'nothing' To ...Show All
SQL Server Paging large Results in SQL 2005
lets say we have more than 100 000 rows in Table1, and we want to view each 10 rows alone.... and by pressing on a NEXT button we will see the other 10 pages.... there is 2 buttons : NEXT and PREVIOUS so can anyone tell me how to do that in SQL 2005, and what is correctly called. I have found a code that does use ROW_NUMBER in order to view results between 2 numbers, example: rows between 10 and 50.... but It is not what I want, so please I need some help, thank you By Uncle Sam You can use the ROW_NUMBER approach to page through results. You need to vary the row number ranges depending on the page. The oth ...Show All
Visual Basic Trapping the Tab key
Using VB.Net 2005, how do you trap the tab key in a textbox I've tried every key event (press, up, down), I've set the keypreview to true and false, and I've even tried a richtextbox. The events never fire for the tab key. Every other key gets fired except that one. Try the ContainerControl.ProcessTabKey method. ...Show All
SQL Server How to execute SSIS package inside of Visual Studio?
How to execute SSIS package inside of Visual Studio I have opened the file, but do not see any way to execute it. Please advise. Thanks There are a number of ways. The safest way is to right-click on the package in the solution explorer and hit "Execute Package". -Jamie ...Show All
Microsoft ISV Community Center Forums Excel memory issues
Hello everyone, I have been involved in the development in a graphical user interface which is used to sort large amounts of data, (thousands of rows, 30 columns). After sorting the data according to required ranges on column data, the columns can be plotted with any column against any other column. The number of plots can reach the hundreds and are displayed in a half-sqaure fashion. Anyway, I originally needed only 10,000 or so rows of data and everything worked well. To sort the data, I wrote a macro to place an equation in the first column after the data with the end result being either true or false. The data is then sorted in th ...Show All
SQL Server Strings as measure
Is it possible to have strings as a measure I tried to build a cube with string measures and I choose no aggregation function for that measure, but I always get the error message: Its not that its not at all possible to have string measures in cubes. There is a workaround for using strings as measures. It may not work in all cases but worked out in my case. this can be acheived using member properties for dimensions. and once member property is defined it can be used in calculated measures to display string measures [dimension].properties("Member Property Name") Hope this is useful for u regards, SP ...Show All
Visual C++ fatal error LNK1181: cannot open input file ",.obj"
I compiled my program after doing all those settings in "Project Setting Menu" but i got an error : fatal error LNK1181: cannot open input file ",.obj" I think there is some problem in the settings. I checked all the settings tht i know but still not able to remove this error. If anyone know about the settings in VC++ then plz reply any help will be of great use Thanks in advance I checked my linker settings.. Earlier i was using comma to seperate entries sso in was getting error with ",.obj" input file Now, i replaced comma with semi-colon and now i am getting same error ...Show All
SQL Server How to read XML data from SQL data field?
Using RS2000 I have a field in a SQL DB which contains data stored as an XML string. Is there an easy way to parse this string into data without moving to SS2005 I have builts a parser in SQL, but I would like to know if RS had a way to directly read this. If not, is there a method in RS2005 which handles this type of data The only way to really do this in RS2000 is to create your own custom data processing extension that encapsulates the code you have written to parse the Xml. There are quite a few examples online. In RS2005, you can use the Xml Data Processing Extension, which is designed for ret ...Show All
.NET Development How to implement transactions using tableadapters?
The old dataadapter had a transaction object which you could assign to a .NET SQLtransaction. This made transaction handling very simple. What is the equivalent (or similar) method for handling transactions using tableadapters I'm using the table adapters generated by the data designer. dataadapter has no transaction property which can be assigned to a sqltransaction. You could use System.Transactions.TransactionScope to simplify the transaction handling if you have only one conneciton opened. ...Show All
