-
- C# increment letter!?!
by EvolutionStudios
- 4 Replies
- Last post
by eradicator
- Hello,
I am new to C# but i do know other programming languages such as PHP PERL ASP JAVA etc. so i get the basics of C#. My problem is that I have been trying to make a letter increment as such:
a-b-c-d etc then when it gets to z go: aa-ab-ac-ad... ba-bb-bc-bd and so on.
If anyone knows a simple solution to this please respond asap. I will keep trying but I've gotten nowhere in
-
- Using multimedia timer with managed C++
by SW Sam
- 4 Replies
- Last post
by SW Sam
- I need a timer with the resolution of the multi media timer and the timeSetEvent function but it is not supported with CLR.
Is there an alternative with CLR
If not, Is there a way to use the multi media timer with CLR and be able to pass a managed object as an argument to the timeSetEvent call to be used in the timer callback
Thanks,
Sam
-
- Rectangle Graphics
by Demitrius Wheelwright
- 2 Replies
- Last post
by Demitrius Wheelwright
- Ok. I would like to know how to paint and move multiple Rectangles that I have draw onto my form. I already know how to do this with one Rectangle (the last draw rectangle), but I need help. Something to the effect like.
foreach(Rectangle _R in this.ClientArea)
{
if(_R.Contains(e.Location))
{
// move this rectangle...
} }
-
- "MS Paint" source code is required please
by Uri Kartoun
- 6 Replies
- Last post
by Suprotim Agarwal
- Or a similar application that allows a user to draw various shapes and colors using the mouse and then save it as an image file.
Thanks!
-
- Saving ListBox Data
by MTM04
- 3 Replies
- Last post
by SOTY_Programmer
- I'm writing a scheduling application in ASP.NET with C# code behind pages. I have users selecting a calendar date and a choice of radio buttons for the type of shift they would like. I have it such that when they click on a date and select a radio button, the information is posted in a listbox. I am having trouble saving the information in the listbox to the HD. I've played around with the SaveFil
-
- does managed code take precedence over native code?
by nattylife
- 5 Replies
- Last post
by nattylife
- i wrote a small demo C app that sends a message and a struct to a managed C++ dll. this C++ dll marshalls over the message and struct to a managed struct and sends it to a C# assembly that just prints out the values of the struct (to see that everything came over ok) and sends back a string reply, it also prints some debug text to console. before the call to the C++ dll, i make a few calls to prin
-
- Extracting print jobs fromprint queue
by PaulG42
- 2 Replies
- Last post
by PaulG42
- Hi, Is it possible to extract a print job from a print queue using c# I have managed to pause/resume and extract details of the print jobs via calls to imported winspool.drv methods, but can't see a way to get the actual job itself. Cheers, Paul G
-
- How to load user provided COM dlls to .Net at runtime? and how to call their method ?
by Wood-MSDN
- 1 Replies
- Last post
by Yan-Fei Wei - MSFT
- The scenario is,
- I'm creating a .Net class which can call to COM dll.
- The COM dll name will only be known during runtime. e.g. User uses my class and provide the COM dll name.
- More than one COM dll can be provided at each time.
- I'm thinking to use a list (from System.Collections !) to collect all loaded COM dll, so I can use 'for' to call each COM interfaces one by one...
-
-
- Debuuging C# language using Visual studio 2005
by mahmud_03_ku
- 3 Replies
- Last post
by boban.s
- how can I debugg using the visual studio 2005.
-
- How do run Linq programe
by Thirumurugan.ga
- 2 Replies
- Last post
by Figo Fei - MSFT
- Hi all,
I tried to do the Linq sample program, Already i have added System.Query namespace. But I am getting some error
like No reference to System.Query.
In my system , i have installed VS 2005 and .Net Framework 3.0.
Apart from the this, please tell me , whether any software are required
Regards and Thanks
Thirumurugan
-
- windows service accounts
by abcdefgqwerty2
- 7 Replies
- Last post
by abcdefgqwerty2
- Im making a windows service and there is an accounts box with options like user, local service, and local system. I have a 3rd party dll that is registered to my computer. Its job is to capture text from a screen and as local system this didnt work. I think I need to use user, and when it prompts me it says the account name is invalid or doesnt exist or wrong password even though im sure this is r
-
- HELP:How to determine whether the computer is wake up from hibernation?
by Winkling
- 2 Replies
- Last post
by Winkling
- Hi,
I'm writing a windows service with Visual C#2005.It will do some job when windows is locked(I override the OnSessionChange method and determine by SessionChangeReason.SessionLock). It works well except that when I hibernate the computer and the wake it up, the "SessionChangeReason.SessionLock" will also be triggered which I DONOT want to.
So would anyone please help me to deter
-
- two way encryption - how to store the key?
by BlackMan890
- 2 Replies
- Last post
by Martin Platt
- Hello there. I currently am in a need to store a key so I can decrypt password used to connect to the server. I took a look at the http://msdn2.microsoft.com/en-us/library/tswxhw92.aspx (How to: Store Asymmetric Keys in a Key Container) and I was wondering if this is the answer The problem is that I cannot store it in memory as I may need to restart my application many times and some permanent so
-
- SQL string escaping
by zquad
- 2 Replies
- Last post
by boban.s
- I am using sql string to insert, update and delete from a database. Often I run into the problem where a value to be inserted into the sql containt a ' , " or some other character that disrupts my sql string. Is there an sql escape function in c# Is there an unescape function also How do other developers normally handle this problem Thanks Ackim
-
- P/Invoke signatures and IntPtr vs HandleRef (vs SafeHandle)
by Pete R
- 10 Replies
- Last post
by Pete R
- I am trying to figure out P/Invoke best practices when making calls to the Win32 API. It's amazing Microsoft doesn't seem to have definitive documentation on this, and the pinvoke.net Wiki seems to be the most useful source available. If there's a better source, please clue me in. In any case the interop signatures don't seem to be consistent in their use of IntPtr vs HandleRef, and there's nary a
-
- Get string length in pixels
by Edward1
- 1 Replies
- Last post
by Gabriel Lozano-Moran
- How can I get the string length in pixels, base on qty of characters, font type and font size thanks in advance for your help, Edward
-
- Using Visual C++ in C# project
by Ha Duo
- 3 Replies
- Last post
by Peter Ritchie
- Hi I am a new bie so please forgive me if the question is not appropriate. I am having a visual c++ project and i want to create a another project using C#. However i want to use some of the function that already in the C++ project. What is the best way i can do in this situation The project is not really suitable for convert to DLL. Is there any good tutorial of how to convert C++ to DLL or C#
-
- Loader Lock
by Oliver 123
- 14 Replies
- Last post
by baldmountain
- Im trying to debug my app but it comes up with the following error message:
LoaderLock was detected Message: Attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang.
I have no idea wat this message is about. i am using VS pro 2005 and .net framework 2.0
-
- How to clear the Compress Content to Save Disk Space attribute for a folder?
by svincoll4
- 7 Replies
- Last post
by svincoll4
- i have a folder with Data name. It has the Compress Content to Save Disk Space attribute set to True. When i attach the Microsoft SQL Server database on this folder, it thrown an exception because this folder compressed. How to clear this attribute by C# code
-
- Join W2K Domain
by A. Dachauer
- 8 Replies
- Last post
by cbalmer
- Hi, how can i join a Workstation to a W2K3 Domain with a C# Prog Please post a code sample. Andi
-
- File hyperlinks inside comments
by mrmarktwo
- 3 Replies
- Last post
by Pace
- Inside comments in C# you can have hyperlinks eg // file:c:\somedir\somefile.txt On clicking this a viewer displays the file. Is there any way of making the viewer jump to a specific line and column I tried things like // file:c:\somedir\somefile.txt (10, 15) but I've had no luck Also if there is a space in the file path then hyperlink doesn't work // file:c:\program files\someappdir\readme.txt Is
-
- Conditional References
by jorgepblank
- 8 Replies
- Last post
by James Curran
- I probably named my thread wrong, but I didn't know what to call it. Basically, I'm making an application which interfaces with various media players. To do this, I reference and use each media player's COM library/interface. This all works fine, however, to use the COM the user must have the specific media player installed. So theoretically, at the moment, for someone to use my application they w
-
- using or operator with strings and ints
by new to sql server
- 6 Replies
- Last post
by Kent Boogaart
- I have written the following nested if to prevent someone from entering a value that won't work. I am trying to get the user to enter a value between 1 & 13. When I run this I get the following errors for both of the "if"s that use the comparison operators.
This is the error that VS 2005 express gave me. "Operator '<=' cannot be applied to types of string and int."
-
- generics, inheritance method signature...
by arro239
- 8 Replies
- Last post
by Thomas Danecker
- let's assume i have a class Parent and an inherited class Child
so
class Child : Parent
also i have a variable
List<Child> myList
and i like to have it as a list of Child's, not a list of Parent's
and somewhere i have a method
void method(List<Parent> param)
this method would not take myList as a param...
is there any way to adjust method signature s
-
- Converting Float to 32bit Integer(Hex)?
by sliderX
- 2 Replies
- Last post
by Indian Ocean
- I need to convert Float value ( 0.1 as example ) to Hex (32bit) value (0x3DCCCCCD).
How can i do it