Answer Questions
Yutong Obtaining a Thread from ThreadID
hi is it possible to get a thread from its thread id in .net How can i abort a thread from another thread Any help will be highly apprecited. Thanks in advance. i have a bit different scenario . i m using calling fucntions asynchronously using begin invoke and endinvoke ...some time i need to cancel that without waiting for their completion and close the application normally... i was asking the quesion in that context . ...Show All
ArifKh Access a SAMBA share via C#
A search for "SAMBA" in this forum returned no results, so I am assuming that this question is not already covered somewhere else... I am trying to programmatically access a Samba share from a C# application. Is there any way to facilitate this using C#/.NET Or is the only option here to write a Win32 Shell app or dll Any guidance is appreciated... Thanks, Outsideshot vAlex wr ...Show All
Frank Wang VB.net- MS word
Is it possible for me to take an VB.Net application and polulate fields in MSoft Word document...I am trying to pull data from another source like a database...you know like if i have name and address on the letter, i want it to populate the name and address from the information in the database through the VB.net application...does this make sense to any of you developers Hi, Im not quite sure on what you mean by " tie ", but reme ...Show All
Steve Wertz Generic TabPage
Here is a problem I am running into:- I want to produce a generic TabPage - MyTabPage -that inherits from Windows.Forms.TabPage. The behaviour of MyTabPage is based on the known characteristics of the generic data class AnyData to which the generic parameter T of MyTabPage is constrained. ==================================== File 1 ==================================== using System; using System.Collections.Generic; using System.Text; us ...Show All
AtlzBIGuru Int to string?
Does anyone know how to convert an integer into a string so it can be displayed in a textbox or label Hi, Try this: int i = 100; textBox1.Text = i.ToString(); cheers, Paul June A. Domag Thank you. Hi, In addition, I recommend that you take a look at the Convert class as well. This class provides the methods for various conversions that maybe required. Convert Class Alternative Approach: int i = ...Show All
shadow-k8 Has anyone used the Decorator pattern to draw?
I have an object that will draw itself. I want to be able to put an unknown number (less than 10) of strings, lines... on the object. I was thinking I could use the decorator pattern to accomplish this. I could create an interface with a Draw(Graphics g) or a Draw(object o, Graphics g) for the pattern, and wrapping each string in its own decorator object. Each instance of the object will have a different set of strings, so I ...Show All
lucaz Parsing a string
Hello guys, i'm searching for an advice of how to parse a string. here is an example: --bla345"cool"but no-- And I need only the text double closed by ", which is 'cool'. My second question is about parsing multyline comments /* */. So if i have --bla bla /*nice thing */ alabala-- my target is get the 'nice thing' string away of the "sentence". Hope someone will find time to help me :) ...Show All
Alain Lissoir Word Automation -- what a bind!
Hi everyone, Before I go completely insane , can somebody please help me solve this single, simple problem: Using late binding, how on earth do I get hold of a single Section in a Word document I can get hold of the full Sections collection like this: object sections = theDocument.GetType().InvokeMember("Sections", BindingFlags.GetProperty, null, theDocument, null); ...but can I hell get at the individual Section objects that it co ...Show All
Chee Kiang Are strings any easier in the new C#?
I stopped using C# about a year ago. I hated the complexity of using strings. Gone were the days of MyString = "Hello"; I had to now make an object. String manipulation, which was once easy using MID, RTRIM, REPLACE, etc., now is tedious. Anyway, I was wondering if the newest version of C# has made it any easier I think the OP must have misunderstood how strings worked in C#... ...Show All
itsonlyme4 Visual Studi0 2005 Beta 2 - Cannot view design mode of web page
HI All. I installed the Visual Studio 2005 a few days ago in my box. I came across an interesting issue today. I am unable to view the DESIGN view of my web page. I can see the SOURCE view (HTML) but when i click on the DESIGN tab at the bottom of the editor area, i cannot switch to that. Can anyone tell me why this is happening. Also, it is actually working on my colleagues machine but not on a few of ours. Thank you in advance for your as ...Show All
Oli99 Having Keyboard problems with Visual C# Express IDE
Hey Guys, I have VS2003 and wanted to try VC# Express but after couple of times trying to install/reinstall it to see if I get it fixed I have finally come to you for help. Once I go into a class file inside VC# Express I get no keyboard activity. The return key/backspace key/arrow keys do not move. I can type characters but I can not use delete/backspace/etc to fix it. I also have VS Web ...Show All
Harald Köstinger Cast string to variable?
Is there a way to cast a string to a variable name In my code I need to instance classes on the fly. In psuedocode I want to do this: Variable KeyValue<x>; With <x> being replaced by an incrementing number on every call (so you might end up with KeyValue0, KeyValue1, KeyValue2, etc.). Is there any way to do this in C# I recall a way in Pascal, but that was many years ago... O ...Show All
Michael Coomer C# and XML
Hi all! I am having a problem whith xml in c#. I shall write som data into a xml element in an excisting xml file. The element is already exsisting i just vant to write som data into the element "reading". I have made a C# class from a schema of my xml file. But if it possible to read and write direktli from the xml file, I will like to hear how. Perool You should play around with the XmlDoc ...Show All
Damir Bersinic c# draw on image
hi ppl., i dont know if this is the right place to post this, i have the next problem,, i have an asp web and i have an image on it,, i need to draw on the image,,, i need something like FillRectangle on windows forms,, is tehre any way to draw figures on an image on asp thx mig16 Well yes, but it requires you to load the image, modify it in memory and save it back to disk, so your ASP.NET page will be able ...Show All
Felix A Delay an application
Hi, I'm trying to delay an application for a few minutes (5 seconds for example) without using Threads. Does anyone knows how it can be done Thanks. Just a note on the above post: Application.DoEvents() is equivalent to using Thread.Sleep(0) in .NET Framework. Regards, Vikram This isn't advisable, you should use Thread.Sleep(numberofms); to pause execution inside a method. Just remember to use it in a differen ...Show All
