Still use C here and there. Currently looking at OpenCL which is written in C. I still think C will be there in a 100 years! Long live C!
cecildt
Posts
-
Do you C? -
What is everyone using for thier presentation layer?All depends on your requirements! Currently using Silverlight for future proofing UI. Silverligth is going to support mobile and offline. Great combination is Silverlight, WCF and Linq.
-
VS20087 AddIn ProblemDon't worry, fixed it myself. Was related to TextSelection and Resharper being clever. When assigning TextSelection.Text, Reshaper try to insert the correct matching brackets. The right use for TextSelection is to use the Insert method. testSelection.Insert(val, (int)vsInsertFlags.vsInsertFlagsInsertAtStart);
-
VS20087 AddIn ProblemHi, I busy fixing a Addin for Visual Studio. Basically generating a source file. The class with its methods get generated fine, but when I save the generated source it get additional closing brackets. This line cause additional bracket to be inserted: applicationObject.ActiveDocument().Save(""); Can anyone please tell me why? Regards Full Code:
TextSelection testSelection = applicationObject.GetActiveDocument().Selection as TextSelection; if (testSelection != null) { testSelection.SelectAll(); string val = GenerateCode(targetNamespace,targetClass, testClassName); testSelection.Text = val; } applicationObject.GetActiveDocument().Save("");
-
Property AttributesThanks for the reply! Just what I needed.
-
Property AttributesThanks for the reply! This does not help. I don't want to set a default value to the property. I want to set the display width of the column that is assign to my property. Or I want to set the Description that must be shown in a grid for this property via property attributes. Regards
-
Property AttributesHi All, I want to know if it is possible to specify on your class properties the display width that a control must used when the property is assigned to a control or a column in the grid. Basically I have created a custom class. Then get data back into a List. This List gets assigned to a grid. Know I would like to assign some basic display values to the property in the class and not have to go to the grid to specify display values like width of column. Data Example: var query = from c in Clients select new Client { Name = c.Name, Email = c.Email }.ToList(); public class Client { public string Name {get; set;} public string Email {get; set;} } Any ideas will be welcome!
-
DataSet Design to databaseI know Visual Studio is the IDE. :laugh: Just want to know how people are using the DataSets. Thanks for your responds. O, use Notepad++ not notepad!
-
DataSet Design to databaseHi all, What is a better design in visual studio. To create separate datasets for each database table or one dataset with all tables on the dataset. Lets say the database has 30 tables. Just want to know your opinions! Regards Cecil
-
DataColumn.ExpressionFixed it myself. Sorry. DataColumn.Expression = "ProjectCode +'"+Environment.NewLine+"' + ProjectDesc";
-
DataColumn.ExpressionHi, Why do the following statement not working: DataColumn.Expression = "Value1 + \n + Value2" Try to assign two strings which is below each other for multi-line text. thanks
-
Get File EncodingHi, Does anyone know of a way to detect a text file's encoding (ANSI, UTF8, UTF7)? So that I can read the text file in a StreamReader with the right Encoding enabled. thanks
-
StreamReader and special tag problemI'm reading a whole line into a temp string and use the '|' tag to divide the string into column values. When I read the whole string from the file the '|' tag is missing. So, I cannot divide the string up. thanx
-
StreamReader and special tag problemHi, I try to import a simple text file that have many rows with a special row format Example: |item|123|any items|4.50| When I read the lines in from the text file it removes the '|' tag. Why is that?? Example Code: StreamReader importFile = File.OpenText(txtPath.Text); txtLines.Text = txtLines.Text + importFile.ReadLine(); I know I'm missing something simple. Thanks for any help.
-
Office 2007 Toolbar Ribbonhi, Does anybody know where to get C# source code to create the fancy Office 2007 Toolbar Ribbon with the big round button?
-
Change UserStrings in codeThanks. Can you give me some example code that shows how to load and unload the resourcestrings dynamically in a app. I read that resourcestrings load only at app start up according to locale and that you cannot change the resourcestrings dynamically.
-
Change UserStrings in codeThanks for th reply. Firstly I created resourcestrings in Delphi for .Net to keep Strings seperate in the assembly that is available to change with a resource editor. These strings are saved in the .Net Metadata in the assembly under UserStrings. I need to change these values inside the app, not with a external resource editor. Delphi for .Net Code resourcestring StrPlay = 'Lets play' C# code const string StrPlay = 'Lets play' This whole thing is to change the whole app between different languages on the fly. Form changes work 100% on the fly. The problem is the strings that is hard coded in the source files that needs to change between different languages. Hope this explain it better. I can explain in futher detail. Any code examples in any language will help. Thanks for helping!
-
Change UserStrings in codeHi Does any one know how to change the UserStrings Values in the .Net Metadata in code?