Ganesh.P.A's Q&A profile
Software Development for Windows Vista How can a replicator be used in a XOML only workflow?
I can bind a Replicator's InitialChildData property ok but how do I bind a replicator's child activity property to the data. For example, if the InitialChildData is a List<string> and I drop a ConsoleWriteLine activity into the replicator how do I bind its Message property to the data in order to write out each of the strings Michael - you'd need to have another activity (or have a custom Root activity) that had public methods that matched the signature of the Replicator's eventhandlers and had the code to do what you'd want to each of the children activities. ...Show All
Visual Basic Strings
How do i capitalize the first letter in a textbox or combo box if the characters are in lower case. on the textChanged event of either control, one way to do it is to check to see if there is text, if so, then do a ToUpper on the first character. Example: if Me.theTextBox.Length = 1 then Me.theTextBox.Text = Me.theTextBox.Text(0).ToString().ToUpper() Me.theTextBox.SelectionStart = Me.theTextBox.Text.Length 'so the cursor is at the end of the text end if you could also do this perhaps: if Me.theTextBox.Length = 1 then Me.theTextBox.Text = char.ToUpper(Me.theTextBox.Text(0)).ToString() Me.theTextBox ...Show All
Software Development for Windows Vista Music Playback in Vista Problems
Since installing Vista Ultimate, simple music playback using various programs is hampered by digital stuttering (similar to Max Headroom) from all music players. Vista can't get through a single song without these hiccups. Occurs in: Media Center; Rhapsody; Winamp, WMP 11; iTunes about every 30 seconds. My system is Windows Premium Ready; Acer Aspire 9800 (20" notebook) Dual-core T2600; 2GB RAM. Hardly lacks power; drivers not an issue on any of the aforementioned programs. Anyone have this same problem, or hints at a source of the problem Very interesting. This switch did not fix my problem all the way, but definitely had an impact. It has lessened the lag time significantly. It does point ...Show All
SQL Server ms sql 2005 delete record problem
I'm facing problem when delete a record in the ms sql 2005 . The error message i got is stated below: No rows were deleted A problem occured attempting to delete row 1304. Error: .Net Sql Clint Data Provider Error Message: Possible index corruption detected. Run DBCC CHECKDB. Correct the errors and atempt to delete the row again or press ESC to cancel the changes. just certain record i can not delete and face this problem. i detach the database and attached in the ms sql 2000, and select the same record to delete. there is no problem at all. i wander is it ms sql 2005 bugs can anyone tell me how to fix it .. how to to use the DBCC CHECKDB thanks alot.... P/s : if i posted at the wrong section jus ...Show All
Visual Basic Arrays
i know it sounds sad but i am stuck. i am trying to do a simple array with numeric data to be entered into one textbox and then transfered to another. with this done i need to do standard deviation claculations. any form of help will be more than welcome i am a begginer at VB. i am trying to do an array of numeric data. entered singularly in one textbox, then transfered into another, where i can do calculations for standard deviation. or any other suggestions. ...Show All
Visual Studio Express Editions illegal else if statement?
Hi. I'm relatively new to programming and I was making a program for class to display a "receipt". This involved the user to input the amount of cashed tendered and I had an if / else if statement for if the amount was less than the amount owed. However, each time I try to compile, it tells me I have a illegal else if statement and I just can't figure out why! Here's the code, hopefully someone can help me out. Thanks. #include <iostream> #include <string> #include <iomanip> #include <stdlib.h> using namespace std; int main() { //DEFINING VARIABLES string itemOne = " " ; string itemTwo = " " ; string itemThree = " " ; ...Show All
Visual Studio Express Editions Textbox troubles
I am trying to store the text value of a textbox as an integer. x = textBox1->Text; This returns error C2440: '=' : cannot convert from 'System::String ^' to 'short' I am wondering how I could do this. Thanks. ...Show All
Visual Basic efficient storing and programming for data
Rebuilding an application from DOS to Visual Basic, I have several questions, mainly concerning storing the (relational) data (SQL). If I want to reuse code, I could use classes. I.e.: there are employees, customers, company's. They all have names, adresses, phone numbers, etc. I could build a class with these fields and create other classes which reference to this one. But how do I save the data stored in the objects created from the classes to an SQL server By programming to populate each and every field of database with the data in the objects This doesn't seem very efficient. And if I add a field, I have to rewrite the code. Could you just store the entire object as a record in the database Databinding is another option, but then I al ...Show All
Windows Forms Cannot add table adapter to datatable
If I have a dataset in my project, and I've added a datatable to it, when I right click on it the option to add a tableadapter is greyed out. It seems as though I have to add a tableadapter to get a datatable with tableadapter connected to it. What if you already have a datatable in your project and want to add a tableadapter to it I had a recommendation to install SP1, and I did, but it did not fix the problem. No response since then. Well, you can always use the DataAdapter instead of the TableAdapter. It amounts to the same thing basically and is not specifically tied-in to your DataTable (which I think is preferable anyway ... I don't believe that a DataSet should know anything about where the data cam ...Show All
.NET Development textBox1.Text upto textBox[n].Text
Hi, I’ve got a little problem with my textboxes, I want to use several textboxes in my form1, and I want to use the same operation on each of the textboxes (textBox1 ; textBox2 ; textBox3 an so on). How can I do this with "for" or " Do-While" int a; textBox[a++]; or textBox'a'; Thanks, Kralle. Hi, the following code will run through all controls, put directly on the form, and process all controls that are textboxes: foreach ( Control control in this .Controls) { if (control is TextBox ) { TextBox textBox = ( TextBox )control; // Process textBox here ...Show All
Visual C# Casting Arrays?
Hi, I have a method which returns an object array: object[] sortArray(object[] input, int[] order); And I want to be able to cast the array that it returns, for example: string[] array = (string[])sortArray(input, order); While this compiles, at run time I get a casting error (InvalidCastException, Specified cast is not valid). How should I be casting the array, or can I cast it at all Thanks. here Is a much better way: string [] array = Array .ConvertAll< object , string >(input, delegate ( object obj) { return ( string )obj; }); &nbs ...Show All
Visual Studio Visual Studio 2005 Editor does not accept keys pressed from keyboard
I had installed visual studio professional edition in Windows 2000 professional OS and everything was fine on the first day, but on the next day when i started using, Visual studio does not accept any keys pressed from the keyboard and it seems to be disabled. But, Visual studio accepts mouse inputs. Even i had faced this problem in beta edition of 2005. But, then we used to open (/get the focus to ) properties window and the editor would accept the keys pressed from the keyboard. i had even un-installed and re-installed the visual studio set-up, but still the problem persists. now, due this issue i am confused a lot and require help from any of you guys.. There can be several causes, in the past I remembe ...Show All
Visual C# Bitmap Save problem
Error is as follows: False System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+. at System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) at System.Drawing.Image.Save(String filename, ImageFormat format) at DynamicTextPicture.Watermark.Create() DynamicTextPicture.dll using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; namespace DynamicTextPicture { /**//// <summary> /// WaterMark /// </summary> public class Watermark { private int _width; ...Show All
Visual Studio 2008 (Pre-release) What's means NameScope
I found when use Animations in c# code , if the Animated element are not in xaml file, must register the element with "RegisterName()",and before this , should writte "NameScope.SetNameScope(FrameWorkElement , new NameScope())", what's means http://windowssdk.msdn.microsoft.com/en-us/library/ms746659.aspx ...Show All
Visual C# native types
Hello. I created a simple dll which export a single, simple, unmanaged class using C++ and VS2005. The class contains only simple data types (int and float). I compiled this class with /clr flag. Now I want to use this class in a C# application. After I added a reference to this dll in C# application I'm able to instantiate an object of this type but I can't call any method of this class. (Error: the class dose not contain any definition for methodName). Using ObjectBrowser I can see all methods of this class. I written a simple managed wraper class, and this works. There is any way to work around without writing a wraper class I'm wonder way I can instatiate the class but I can't call its methods. Thank you. ...Show All
