473,774 Members | 2,182 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

0
2,252
thread by: Samuel R. Neff | last post Jun 27 '08 by: Samuel R. Neff
I'm having trouble creating a Semaphore with read-access rights for everyone. Originally I was trying to use this code: semaphore = new Semaphore(maxLocks, maxLocks, "RwLock#" + name); but when using that code to create a Semaphore instance for an existing system semaphore (i.e., the second time the code gets hit), I get an...
6
2,920
thread by: BD | last post Jun 27 '08 by: BD
I would like to use the keyboard shortcut 'ctrl + v' to paste from the clipboard. I can't seem to figure out how to capture the keyboard input to accomplish this. Any help is greatly appreciated. Thanks, BD
9
2,523
thread by: paul | last post Jun 27 '08 by: henon
Hi I would like to extract all possible exceptions for a particular method. Ideally this would be a Visual Studio 2005 Add-In and would allow a developer to highlight a any method, pressing a shortcut key which would result in a try/catch with all exception(s) handled. Would someone nice out there help me on this one as this process gets...
7
14,510
thread by: Ned White | last post Jun 27 '08 by: Ned White
Is it possible to insert HTML codes to a textbox control ? I am reading HTML formated string from sql server but if i assign this value to Text property of TextBox, the format tags of HTML seems too... sample string value from database: <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-SIZE: 11pt; mso-bidi-font-weight:...
2
999
thread by: Matthias S. | last post Jun 27 '08 by: Martin Honnen
hello, i've got the following xml structure: <catalog> <books> <item key="" value="" /> <item key="" value="" /> ... </books>
0
718
thread by: Victor Hadianto | last post Jun 27 '08 by: Victor Hadianto
Just checking, can't Google any definitive answer, say I'm doing something like this: IList<IUnknown>comObjList = new IList<IUnknown>(); IUnknown comObject = Activator.CreateInstance(...); // COM object eg: VB dll, c/c++ etc. comObjList.Add(comObject); When comObjList goes out of scope, the COM object should be garbage collected. Is...
1
2,052
thread by: Jason Huang | last post Jun 27 '08 by: =?Utf-8?B?cnViZW4=?=
Hi, In my .Net 2.0 C# Web form application, I have a TreeView TV1 which has 3 subnodes: SN1, SN2 and SN3 What do I need to do so that the user click the SN1 a label will show the text of 'SN1', click SN2 'SN2' and so on. Thanks for help. Jason
3
1,641
thread by: Piotrekk | last post Jun 27 '08 by: Willy Denoyette [MVP]
Hi I have a problem with my server which is not visible after netstat -na command. 1. remote class library compiled to dll and registered to GAC namespace RemoteClass { public class Mathematica : MarshalByRefObject
1
8,669
thread by: Nighthawk | last post Jun 27 '08 by: Nighthawk
I am trying to use NativeWifi. I tried putting "Using NativeWifi" in my C# code but it throws error right there. I think I will need to add reference to my application. I don't know which dll i need to import. I have installed Windows SDK. Tried searching for Nativewifi.dll but could not find it. There is a file Nativewifi.hxs but I don't...
1
1,679
thread by: =?Utf-8?B?TWFzc2ltbw==?= | last post Jun 27 '08 by: Ignacio Machin ( .NET/ C# MVP )
Is possible call the PostBack of an asp page by code? The result I want to obtain is the itself one as the pressure of a button with "submit"! Thanks
1
980
thread by: =?Utf-8?B?RnJhbmsgVXJheQ==?= | last post Jun 27 '08 by: Ignacio Machin ( .NET/ C# MVP )
Hi all I have a DataSet with some tables, columns and rows. Now I want to get this tables into SQL Server 2005. The Tables in the SQL Server are not existing. Is there a easy way to do this ? Thanks for any comments.
2
1,815
thread by: Mike P | last post Jun 27 '08 by: Ignacio Machin ( .NET/ C# MVP )
I am trying to get access to the data in different rows of my gridview on a button click, in a similar way to the one I used with my 1.1 datagrids. But the cells always seem to be empty. Here is my code : protected void btnSubmit_Click(object sender, EventArgs e) { //get list of pkcustomerrecords and email addresses, put into generic...
2
1,864
thread by: csharpula csharp | last post Jun 27 '08 by: =?Utf-8?B?cnViZW4=?=
Hello, I would like to know how can I fire events of background worker when I want to let know the main thread that the action finished and to send results. Is there a way to fire RunWorkerCompletedEventArgs in events from background to main thread? Thank you
7
1,449
thread by: colin | last post Jun 27 '08 by: colin
Hi, Is there a way of doing simple code generation inside visual c# express such as similar to preprocessing in c++ ? I need to generate a library for some vector maths, but I need to implement it for different types wich would be difficult to do with generic types and/or interfaces for numerous reasons and would probaly sufer a...
1
251
thread by: Yoavo | last post Jun 27 '08 by: Yoavo
Hi, I am trying to localize my application but I have some difficulties doing it. In my application I need to load the translated resource from a specific folder (that the user determine using the command line argument ). My application contains an .exe with a form with buttons which their text is taken from a DLL. The DLL was translated...
2
2,729
thread by: ryuujin | last post Jun 27 '08 by: Claire
Hi, sorry about my english. I need to scroll manually the content of a panel when the user click on a button. The user have to interact with my application by a touch screen monitor and I want use two buttons to permit the user to scroll the content of the panel.
0
787
thread by: expvb | last post Jun 27 '08 by: expvb
What you are experiencing is a security feature in Windows 2000+. If one application uses SetWindowsHookEx() to hook another application run by a different user, the hook fails, even if the target process is visible and on the same desktop. I just tried this with Notepad, it works fine when I start it as the same user, and doesn't work when I...
4
1,757
thread by: =?Utf-8?B?UmljaA==?= | last post Jun 27 '08 by: Claire
I want to build an simple email smtp client app similar to outlook except with some custom features for a personal computer that uses comcast cable. The owner of the computer said she doesn't have a comcast email and uses gmail instead, but the internet service provider is comcast. This computer also does not have MS Office loaded - otherwise...
3
1,301
thread by: Christian | last post Jun 27 '08 by: Bjorn Brox
Hi, i must create a program to save my list of DVD but i don't have a DB like SQL or Access o file... it's possible??
1
1,694
thread by: Amirallia | last post Jun 27 '08 by: Amirallia
Hello I am trying to convert a application Windows project in a application console. But I have problems wioth some classes. My question is : is it possible to use Microsoft.Web.Services3.Design in application console ? All classes using this namespace give me errors !
0
1,148
thread by: =?Utf-8?B?bWltbW8=?= | last post Jun 27 '08 by: =?Utf-8?B?bWltbW8=?=
Hello, I have a question about linq and new data type of Geographic sqlserver 2008. When the designers try to bring a table that contains this type of data, it gives me an error that contains data type not supported. So I created a view that the figure represents about two columns: latitude and longitude. This, however, can not use...
12
4,029
thread by: Tom Bean | last post Jun 27 '08 by: Linda Liu[MSFT]
I am trying to display a ContextMenuStrip when a user right-clicks on an item in a ListView and have encountered a something that seems strange to me. When the ListView is initially populated, no items are selected. When the first item is selected by clicking either the left or right button, the SelectedIndexChanged event fires but not the...
1
1,629
thread by: sternr | last post Jun 27 '08 by: Willy Denoyette [MVP]
Hey, In Windows Forms, I know each control uses it's render & paint events to draw itself to the screen. I was wondering how does Silverlight renders its controls - how does the mechanism works? Thanks ahead
1
901
thread by: Martin Robins | last post Jun 27 '08 by: Chris Nahr
I recently posted a question to this newgroup along with the microsoft.public.windows.developer.winfx.avalon newsgroup which remains unanswered. I assume that this is because (a) this newsgroup is not really the right place to post WPF/XAML questions and (b) the ...avalon newsgroup is barely used any more. This raises my question above; what...
1
1,694
thread by: Shawn B. | last post Jun 27 '08 by: Shawn B.
Greetings, I'm using a custom WebBrowser control: http://www.codeproject.com/KB/miscctrl/csEXWB.aspx When I get the DocumentSource of a web page I browsed, and run a regular expression against it, the Expression never matches anything, nothing, nadda. Never. I know it is a correct Regular Expression because if I use the intrinsic...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.