TJT's Q&A profile
Software Development for Windows Vista Dynamic update with xoml
Hi guys, I've already ask for that, but I will now make a separate thread for this. I don't think I'm the only facing this problem. Here is the post and the questions that I ask: I want to know does anyone try to implement dynamic update to the workflow through workflow designer. I mean that i take the definition of a running instance then displayed in the designer then some modifications, then bam I have to merge the running definition and the new one (but what if the workflow structure is complicated). I saw that Dharma made a demo on that, but he said that was beta 2. So my question is does anybody else face this, does beta 2 will ...Show All
Visual C# How can I use C# codes and programs on web?
I have a html web page and I want to do sometinghs in it with c#. What should I do C# is not an interpreted language. You therefore can not include any script blocks that use C# code. You must use a scripting language like JavaScript or VBScript. If you want to use C# then you are limited to using it on the server side and you'll need to use ASP.NET and a web server like IIS. C# code runs on the server. Client code runs using scripting languages. I believe there might be a scripting language similar to C# available but anyone visiting your site would have to have the scripting engine installed on their loca ...Show All
Visual Basic Get Fonts name
how the best way To Read Fonts names existe in my system Private Sub TestFonts () Dim fc As New System . Drawing . Text . InstalledFontCollection Dim MyFonts As FontFamily () = fc . Families For Each ff As FontFamily In MyFonts MessageBox . Show ( ff . Name ) Next End Sub ...Show All
Visual C# I think this is for an expert!!.. coz` no one knowes it..
I think this is for an expert!!.. coz` no one knowes it.. Can anyone tell how to insert a new line in a file Example: test.txt line 1 line 2 line 3 line 4 line 6 line 7 line 8 after the insertion of the line... line 1 line 2 line 3 line 4 line 5 line 6 line 7 line 8 i tryed to use the seek() method.. it works but he overides the other lines.. Anyone know how to do that You will have to rewrite the file Read lines from input file Output to temporary file Hit insert place, write insert line to temp file Continue to read from input file and write to temp file Finish read/write Delete original file R ...Show All
Visual C# The program made by VS.NET 2003 with .NET Framework v1.1 can run under .NET Framework v2.0, right?
The program made by VS.NET 2003 with .NET Framework v1.1 can run under .NET Framework v2.0, right The source program of C# made by VS.NET 2003 with .NET Framework v1.1 can be compiled under VS.NET 2005 with .NET Framework v2.0 without any modification manually (VS.net 2005 can translate), right Thank you very much! Hi, Check the following video for an in-depth info: http://channel9.msdn.com/Showpost.aspx postid=73151 Regards, Vikram ...Show All
.NET Development hwo to set to avoid the SecurityException ...?
************** Exception Text ************** System.Security.SecurityException: Request for the permission of type System.Windows.Forms.SafeNativeMethods.IFont.GetHFont() at System.Windows.Forms.Control.ActiveXImpl.get_AmbientFont() at System.Windows.Forms.Control.get_Font() at System.Windows.Forms.Control.GetParentFont() at System.Windows.Forms.Control.get_Font() at System.Windows.Forms.ButtonInternal.ButtonBaseAdapter.CommonLayout() ******************************** I'v used ".NET Framework 2.0 Configuration" tool, new a Permission set and set permisson "User Interface" "Grant ...Show All
.NET Development How to pass a structure to a web service?
Hi all - This is a simple problem that I'm having all sorts of trouble with. Web Services all work fine while I'm passing standard data types, but when I try to pass a structure, one end or the other always acts like it doesn't know what I'm talking about! I realise I probably have to serialize myStruct somehow, and maybe put xmlInclude in there, like I had to when I was returning an arraylist from a service, but how (Before even starting it up, I get Value of type 'TestCallToWebService1.Form1.myStruct' cannot be converted to 'TestCallToWebService1.localhost.myStruct' . The more I play about with it the worse it gets.) Could so ...Show All
Visual Studio 2008 (Pre-release) Additional lambda expressions support
1- An easier syntax to combine functions: Given: int [] numbers = {0, 1, 2, 3, 4}; Func< int , bool > isOdd = i => i % 2 != 0; Func< int , bool > isZero = i => i == 0; Instead of having: Func< int , bool > isZeroOrOdd = i => isZero(i) || isOdd(i); We could have: Func< int , bool > isZeroOrOdd = isZero || isOdd; 2- Same thing but with expressions: Given: Expression<Func< int , bool >> isOdd = i => i % 2 != 0; Expression<Func< int , bool >> isZero = i => i == 0; It would be great to have: Expression<Func< int , ...Show All
Software Development for Windows Vista Concurrency Best Practice
First, my compliments on a very exciting product!! I wonder if someone can please comment on some best practise to handle concurrency issues when using WWF. I have potentially 100 clients that may work on the same workflow instances and a client may have an instance in a particular state in memory, while another client has already changed the state of that instance. Thank you Heinrich heinrich, There is no built in support for this in Beta1. However, in Beta2, we've added the concept of an ownership timeout so that a particular runtime cannot lock the ownership of a workflow instance indefinitely.& ...Show All
Visual Studio Express Editions How Export table as .csv file
I need export the data. Please help-me. Thank's You can use ADO.NET to interact with CSV files, although I've never used it to write on from scratch. I'd guess that it would be possible though. Alternatively, you can just use a StreamWriter, as you would for any normal text file. Just use an outer loop to iterate over the rows in the table and an inner loop to iterate over the fields in the row. ...Show All
Windows Forms Another DataGridView Bug in VS.NET 2005
Hello there, I think I've run into another bug within the DataGridView control. I've got some kind of bigger project here where I use DataGridView in several forms. But everywhere I use it, I can't get access to its properties. They simply aren't displayed. The property explorer remains empty when I select one of those DataGridViews. It seems to be a bug 'cos VS.NET crashes when I select the DataGridView via the DropDown list right above the property explorer. I can't continue my work if I won't be able to access the properties of my DataGridViews... so please, if there is anybody who can help... any kind of help would be greatly appreciate ...Show All
Smart Device Development power supply
power supply is damage by a lightning strike, how can i get a replacement Please ask in hardware related forums or call your manufacturer. Closing as off topic. ...Show All
Visual Basic Slow ReadOnlyCollection
Hi all, When I try to search all files recursively (to use with the copy command), with the following code: Dim c As Integer Dim files As ReadOnlyCollection(Of String) files = My.Computer.FileSystem.GetFiles("C:\", FileIO.SearchOption.SearchAllSubDirectories, "*.*") For c = 0 To files.Count ListBox1.Items.Add(files(c)) Next It takes way too long to collect the files into the collection, when I have lots of dirs / files. Is there a quicker way. In VB6, I used to recursively call a function, however I was hoping there was a better way in VB2005. The above code is simple and ...Show All
Visual Studio 2008 (Pre-release) Smart rendering of large amounts of geometries
An old blog entry I found - http://www.eightypercent.net/Archive/2003/12/02.html#a158 - mentions an interface called IRetainedRender, which is related to smartly rendering a subset of a potentially large amount of data (think of a 'map' control displaying a viewport onto an underlying dataset of millions of polygons etc): I can't find this interface anywhere in the documentation, so does anyone know what it's been replaced with I should have clarified that VisualHostElement was a suggested name for an element derived from FrameworkElement that you have to implement. Implementing several DrawingVisuals ena ...Show All
Visual Studio Paging in toolbar off-by-one
I'm using the ReportViewer control in a WinForms project, using Local processing mode. On the report itself, it always correctly shows the current page and total number of pages in the report using Globals!PageNumber and Globals!TotalPages. However, in the toolbar page navigator, the total number of pages is always initially shown as one less than the actual number of total pages. For example, I've got a report that actually has 8 pages. When I view the report in ReportViewer, in my report header it indicates "Page 1 of 8". However, in the ReportViewer toolbar page navigator, it indicates "1 of 7". Strangely, ...Show All
