473,800 Members | 2,414 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

0
247
thread by: John Lueders | last post Jun 27 '08 by: John Lueders
This code is in VB.Net. Hope it is helpful. Did you use the GraphicsPath's IsVisible function? You would need to calculate the 'RectangleF' in the 'AddEllipse' method, but that should be easy based on your ellipse information (center point and radius). Public Function ContainsPoint(pt As PointF) As Boolean Dim gp As New GraphicsPath() ...
3
1,724
thread by: Joe Cool | last post Jun 27 '08 by: Jon Skeet [C# MVP]
I am converting a VB.NET program to C#.NET. How do I code the following from VB.NET to C#.NET? Private DataTypes() As String = { "Text", "Integer", "Date" } Thanks for any help!
2
1,473
thread by: Rain | last post Jun 27 '08 by: Rain
Im using C#3.0 and in my book of words it tells me that when I use the I should be able to call ToString() on a combined enumeration and have it emit a series of strings. IE public enum myEnum {
1
1,011
thread by: csharpula csharp | last post Jun 27 '08 by: Gilles Kohl [MVP]
Hello, I am trying to rename a folder by using Directory.Move(soucrceFolder,destFolder) but keep getting the following error: Cannot create a file when that file already exists. Why can it happen? Thanks! *** Sent via Developersdex http://www.developersdex.com ***
2
1,702
thread by: =?Utf-8?B?QnJpYW4gQ29vaw==?= | last post Jun 27 '08 by: =?Utf-8?B?QnJpYW4gQ29vaw==?=
How do I validate that there are xx number of bytes data after a given spot. Here is an example; 2008/04/24 19:16:50 ARES_EINDICATION 010.050.082.108 117.3.01 (1d61) RX 68 bytes 1D 61 26 02 34 E8 AA 20 76 97 51 28 50 76 38 64 49 00 58 02 02 C7 88 01 C7 88 AA 50 76 38 64 49 20 76 97 51 28 D8 07 04 18 13 10 2F 00 00 10 0A 06 0A 06...
4
5,309
thread by: Frederik | last post Jun 27 '08 by: =?Utf-8?B?cmVoYW4=?=
Hi all, Can someone tell me how I can host a LinkLabel in a DataGridView (the existing DataGridViewLinkColumn does not provide what I need). Do I need to derive from DataGridViewTextBoxCell or from DataGridViewCell? Many thanks for any feedback/examples. Frederik
6
2,407
thread by: Piotrekk | last post Jun 27 '08 by: Marc Gravell
Hi I have theoretical problem. In my web service project there was a need to implement file download/upload using WS. I have created UploadChunk and DownloadChunk methods which transfer files in chunks - consecutive web method calls. The problem is, that when i am testing this approach it seems that the transfer time ( many file sizes )...
1
1,307
thread by: Shawn B. | last post Jun 27 '08 by: Alberto Poblacion
I tried this in the microsoft.public.cert.exam.mcsd group but no reply for weeks, there isn't much traffic so I move here (microsoft.public.dot.component_services is also dead)... Is there a way to obtain the study guide for course 2557 (Building COM+ Applications using .NET Enterprise Services) without attending a class? I'm not...
10
11,050
thread by: =?Utf-8?B?Z3JlYXRiYXJyaWVyODY=?= | last post Jun 27 '08 by: =?UTF-8?B?QXJuZSBWYWpow7hq?=
Sorry about that previous one. I pressed enter too early. How does one go about mapping a network drive in C#. i know you use MapNetworkDrive in scripting languages, but i'm not sure how to do it in C#. It doesnt seem like C$ would use MapNetworkDrive.
3
2,166
thread by: =?Utf-8?B?RWR3aW4=?= | last post Jun 27 '08 by: Peter Duniho
Hello Everyone. Below is the code that is in question. --- BEGIN CODE WITHIN INHERITED FORM --- protected virtual void OnFormClosing(object sender, FormClosingEventArgs e) { switch (e.CloseReason) { case CloseReason.UserClosing: if (this.AskUserIfOkayToClose() == true) { this.ExecuteApplicationCloseProcedures(); }
0
1,207
thread by: =?Utf-8?B?VmljdG9y?= | last post Jun 27 '08 by: =?Utf-8?B?VmljdG9y?=
Hi, I have a problem with the Form Editor VS2008 in a C# Windows application. Form Editor seems to change size of some controls to an arbitrary large values by its own will. I position, resize, dock and anchor controls in a Form Editor, run my application and all works fine. But when I close the form and reopen it in again in the VS2008...
4
2,548
thread by: vbcsdotnet | last post Jun 27 '08 by: Mr. Arnold
hello I run an sql which returns a datarow itemarray field of system.datetime. the problem is the database only stores the date, but the returned value includes a time of 12:00:00 AM. I do not want the time. How can I get only the date returned, just as it is stored in the database? thanks reference - system.data.oracleclient using...
2
3,571
thread by: =?Utf-8?B?VmljdG9y?= | last post Jun 27 '08 by: Paul E Collins
Hi, A simple, but yet frustrating issue. I am using CheckedListBox control on a Windows Form in a C# application. When I disable CheckedListBox, the vertical toolbar is becoming disabled also. So the user has no way to scroll control up and down to see what items are checked and what are not. Is it a way to disable control (so the user...
0
1,601
thread by: Peter Morris | last post Jun 27 '08 by: Peter Morris
I realise this isn't the right group, but due to the lack of a correct group I thought I would post in the group that in my experience is the most helpful :-) I have a ListView with more data than there is room to display. When the user presses cursor down on the bottom row the selected row is no longer visible. How can I get it to act...
2
138
thread by: =?Utf-8?B?QnJhdmVzQ2hhcm0=?= | last post Jun 27 '08 by: =?Utf-8?B?QnJhdmVzQ2hhcm0=?=
I am trying to convert a class I have to generics and I can't seem to find any possible why to implement it. I'm beginning to think I'm doing something I shouldn't or I hit generics limitation. Here is an example of the old way: static void Main(string args) { MonitorCenter monitor = new MonitorCenter(); monitor.SetMonitor(new...
4
1,095
thread by: infused | last post Jun 27 '08 by: Peter
Hi all, I'm am I bit of a newb when it comes to services. I need someone to explain in English how to go about this with no experience in programming services. Basically I need to make a simple app which monitors the event log and sends email. That part is fine. My problem is, I need this program to run when people are not logged in as...
0
1,582
thread by: Chandu | last post Jun 27 '08 by: Chandu
Urgent Openings for SE/SSE/TL in .Net for Bangalor Dear , Greetings from Job Cookies India Pvt Ltd., We have Urgent Openings for SE/SSE/TL in .Net for Bangalore Skills Required: 4+Yeard Exp in IT with Skills:.Net2.0/3.0,Microsoft technologies with
3
1,307
thread by: Cosmic programmer | last post Jun 27 '08 by: Carl
<stop.carl.now@gmail.comwrote in message news:ed4c0bb6-e78d-4474-9e39-89aa65feb64d@w74g2000hsh.googlegroups.com... Only number four seems to be your genuine need but you didn't include the relevant newsgroup. -- When you argue with a fool, chances are he's doing the same
2
3,073
thread by: Tim Kelley | last post Jun 27 '08 by: RobinS
I have an application that I have distributed using one click install. I selected the option to allow the program to be run if the server is offline. From another program I want to be able to check if the first program is running (easy enough) and start it (not so easy) if it is not running. The shortcut that is created in the start menu is...
1
1,313
thread by: Tem | last post Jun 27 '08 by: RobinS
Why can't I edit the source code while debugging in the 64bit edition of VS but can in 32 bit? Tem
1
1,179
thread by: Frank Rizzo | last post Jun 27 '08 by: RobinS
Hello, I've taken over a .net 2.0 project that makes heavy use of Data Binding of business classes to 3rd party WinForm controls via the BindingSource class and INotifyPropertyChanged interface. The setup in generally works ok, but the app feels sluggish. Because BindingSource is basically a black box, I am having trouble determining where...
5
1,794
thread by: P.J.M. Beker | last post Jun 27 '08 by: P.J.M. Beker
Hi there, I'm currently writing a program in which I use the FileMonitor to monitor a folder in which I store downloaded images. I know that I can't add much coding in the filemonitor's event in risk of losing some new entries, so I've deceided to create an update thread. This thread is created when the program's start and should (for...
10
1,290
thread by: =?Utf-8?B?TmF2YW5lZXRoLksuTg==?= | last post Jun 27 '08 by: Jon Skeet [C# MVP]
using(BinaryReader reader = new BinaryReader(new FileStream(filePathName, FileMode.Open))) { //do something here } I have seen this code in one of the discussion forum. In this will file stream instance supplied get disposed when BinaryReader disposes ? Thanks
2
1,116
thread by: jim | last post Jun 27 '08 by: Michel Posseth [MCP]
I want to make a WYSIWYG editor for HTML pages that can detect events in the webbrowser control in real time and control the webbrowser control (and internal documents) to allow simple stuff like dragging and dropping HTML controls on the webbrowser control. The goal is a real-time view of the page as it is edited. Is it possible for a...
0
258
thread by: Marc Gravell | last post Jun 27 '08 by: Marc Gravell
To illustrate Peter's point - here is the code (using C# 3 for brevity, but only .NET 2.0 - no LINQ etc) to do this using an entity (SomeType) to represent the combined values: Marc using System; using System.Collections.Generic; sealed class SomeType

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.