Username / Password storage Sorry, I think you've misunderstood.
Its not a 'users' password, but simply a username / password pair that is used to connect to an appliation. The application nor the webservice is externally available. I do understand the importance of storing encrypted or hashed passwords but this was more a cleaner / simpler way of trying to explain the process.
Would a username / password hashed pair be suitable to store in the app settings or would be better to store these into a file Tag: Visual C# General Macrosubtsitution in C# Visual C#
Debugging feature... I was debugging a program just a second ago and there was this section at the bottom that showed the values of every single variable in the program at the point at which my program threw an exception. I detatched it from the bottom to look at it side-by-side with the code, and next time I debugged, it wasn't there, and I don't know what it's called or how to get it back... Any help Tag: Visual C# General Macrosubtsitution in C# Visual C#
Macro Tool - assigning text to windows fucntion keys..how? Hello all:
I'm new to C# and programming in gereral. I'm trying to create a macro tool, that will display text when a key is pressed. In other words, I'm trying to figure out how to change windows functionallity for keys.
For example:
If the <key> is pressed (say 'F1'), I would like the text "asdf" to show up in a browser or messenger or something. I tried to find a solution on google, but had no luck. I'm not searching for the right thing. Any help would be much appreciated..thank you! Sorry if this is already posted elsewhere.
Vinny Tag: Visual C# General Macrosubtsitution in C# Visual C#
Reference issue You never initialize up an object for start to reference such as Object start = new Object(); now you have a reference to an object. For start before initialization is a reference that sits on the stack and in your example it refers to nothing. Let me explain Tag: Visual C# General Macrosubtsitution in C# Visual C#
How to use c # to write shrinking algorithm? Well, if you have the shrinking algorithm in pseudo-code we might be able to help you write it in C#, but otherwise we are no algorithm builders... Tag: Visual C# General Macrosubtsitution in C# Visual C#
Getting path of the folder which is currently open in explorer window. I provide an example in my blog entitled Access Explorer and Internet Explorer in C# which details how to get each path in each windows explorer and each Url in IE. Tag: Visual C# General Macrosubtsitution in C# Visual C#
IDE freezes for 5-10 seconds when saving a file I have a similar problem. I recently bought a Lenovo Thinkpad with Core 2 Duo Processor (1.66) and 1.5 GB of Ram.
I have a fresh installation of VS 2005 and every time I hit the save button it takes about 10-15 secs to save. There is very little else installed. It also seems to load much slower the VS 2003. I am kind of stuck because the University only has copies of 2005. Tag: Visual C# General Macrosubtsitution in C# Visual C#
How to re-use my assemblies Hi, thanks for your help. My concern is that lets say I add 3 web app and 2 windows app front ends that only reference the assemblies. Then if I change the assemblies (which occurs pretty regularly) I would have to go re-publish all 5 front end applications in order to re-copy those references right I would rather update the assemblies in one place and have the other applications' versions independent of them. Sounds like I need all of the apps on 1 machine and the assemblies in the GAC. Tag: Visual C# General Macrosubtsitution in C# Visual C#
How to find which week we are in ? There is a very useful class that is not used as often as it should be in the System.Globalization namespace - this is not the only one, by the way... the namespace contains numerous other useful classes and they need to be advertized more.
http://msdn2.microsoft.com/en-us/library/system.globalization.calendar.getweekofyear(VS.71).aspx
Calendar.GetWeekOfYear Method Tag: Visual C# General Macrosubtsitution in C# Visual C#
how can I import Framework 2.0 into the MS Visual Studio.NET 2003? If you want to do some 2.0 development and don¡¯t want to plunk down the cash for Visual Studio 2005¡ you should take a look at one of the free Express Editions . Tag: Visual C# General Macrosubtsitution in C# Visual C#
Clearing large arrays from memory OK, I think I understand generational garbage collection a little better - doing a GC after clearing a large temporary object in the same scope might appear to be a good idea, but can have other side-effects because of the progression of remaining unfreed objects to G1. So really it's better to not request GC at all under normal circumstances, unless perhaps you know that the object size is getting near to the amount of physical memory installed. Thanks. Tag: Visual C# General Macrosubtsitution in C# Visual C#
Creating .EXE? Stupid question time. I'm totally new to C# and .NET and I just want to create a .EXE file that does the following. First, there won't be any user interaction. I just need for the executable to FTP a file, parse it, and send an email based on what it finds. I'll also want to schedule the file to be executed with the atrun command. I can figure out how to perform each of those functions but how does one create such a file in VisualStudio Do I just create a Visual C# Windows Application project, and will that generate the .EXE file Thanks very much. Tag: Visual C# General Macrosubtsitution in C# Visual C#
How to create windows service as installable product Hi
I want somw help on windows service
I am creating a windows service ,I want to make it as a installable product,Once I download this windows service from Internet it has to start installing this service into the local machine.
How I can do this
Plz help me
Regards
Reddy Tag: Visual C# General Macrosubtsitution in C# Visual C#
Problem with if and else statements within a For Looop. Error CS0201 Code Snippet
private void removeFromQueueBTN_Click( object sender, EventArgs e)
{
int removeLoc = ( int .Parse(removeFromQueueTXT.Text)-1);
anyComments[removeLoc] = "" ;
posterQueueTable.SelectAll;
posterQueueTable.ClearSelection;
int refreshLoc;
for (refreshLoc = 0; refreshLoc < 1000; refreshLoc++) ;
{
if (anyComments[refreshLoc] == "" )
{
statusText.Text += refreshLoc + "has been removed. " ;
}
else (refreshLoc >= 0);
{
posterQueueTable.Rows.Add((refreshLoc + 1), customerName[refreshLoc], fileName[refreshLoc], posterWidth[refreshLoc], posterHeight[refreshLoc], numOfCopies[refreshLoc], anyComments[refreshLoc], labStaff[refreshLoc], etA[refreshLoc] + "mins" );
}
}
I have bolded and italized everything that was producing an error according to visual stuidoo.
posterQueueTable.SelectAll;
posterQueueTable.ClearSelection;
and
else (refreshLoc >= 0);
produces "only assignment, call, increment, decrementm and new object expressions can be used as a statement."
error: cs0201
for (refreshLoc = 0; refreshLoc < 1000; refreshLoc++) ;
produces "possible mistaken empty statement"
error: CS0642 Tag: Visual C# General Macrosubtsitution in C# Visual C#
Back/Forward buttons Hi,
I read your post and i got a popup window saying "PROPERTY VALUE IS NOT VALID"
Do you know why this is Tag: Visual C# General Macrosubtsitution in C# Visual C#
Make C# application quit?? Code Snippet using System; public class HelloWorld { public static void Main() { Console.WriteLine("Hello, World!"); } } Hello World console program in C# Tag: Visual C# General Macrosubtsitution in C# Visual C#
VS2005 Crashes after Rebuilding the Solution Hallo Suma,
thanks for your help. I insert the registry key and add the Information from the CallStack:
> kernel32.dll!7c812a5b() [Unten angegebene Rahmen sind moglicherweise nicht korrekt und/oder fehlen, keine Symbole geladen fur kernel32.dll] kernel32.dll!7c812a5b() mscorwks.dll!79e77b3d() mscorwks.dll!79e77b37() mscorwks.dll!79e77ab1() mscorwks.dll!79fe9cf0() mscorwks.dll!7a08ab7c() mscorwks.dll!79e754ff() mscorwks.dll!79e74e1c() mscorwks.dll!79e755c1() mscorlib.ni.dll!79355ea2() mscorwks.dll!79e7554a() mscorlib.ni.dll!7936708e() System.ni.dll!7a4d832a() System.Design.ni.dll!66267bc6() System.Design.ni.dll!661ea9fe() System.Design.ni.dll!661edb07() System.Design.ni.dll!66267bec() System.Design.ni.dll!661ea9fe() System.Design.ni.dll!661edb07() System.Design.ni.dll!66267bec() System.Design.ni.dll!661ea9fe()
Regards
Bastian Trompetter Tag: Visual C# General Macrosubtsitution in C# Visual C#
Corrupted C# compiler? Good idea, I will try on second computer.
I am pushing my depth here and I'm not entirely sure what VS2005 means. Is this the Microsoft .NET or all of XP or exactly what
By the way, I uninstalled Microsoft .NET 1.0 and its update as well as 2.0, but only reinstalled 2.0. Is there any reason I should have tried to find and reinstall 1.0
Thanks for considering my problem. Tag: Visual C# General Macrosubtsitution in C# Visual C#
inheriting from one class to another? Thanks for the help. Is that an example of inheritance
I think I need to learn more about objects and encapsulation. Do you know of any good article about this
........................................................thanks again Tag: Visual C# General Macrosubtsitution in C# Visual C#
Calling external dll which exposes a class Thanks Peter.
It's not a COM class. It's defined by myself and looks like a COM class.
About the wrapper, do you mean I need a DLL in C++/CLI to connect between the C# app and the DLL who exports IClass
Cheers~ Tag: Visual C# General Macrosubtsitution in C# Visual C#
help with for ..next Else u add FileSystemWatcher to montior that particular directory for any changes. If it find any changes in the particular directory like file deleted, created, etc, then it will break the for loop. Tag: Visual C# General Macrosubtsitution in C# Visual C#
Combination console/form application I have an existing console application that I want to extend with an optional GUI front end. I would like for this to all exist in a single executable rather than writing two separate versions (a console app and a windows app). If the user runs the executable normally, I want the application to run in a command window. If the user runs the executable with a specific parameter, say: program.exe -visual I want the program to run at the command line, but open a windows form where it spits out various output (different output than that going to stdout, so I'm not looking for a redirect solution). My first instinct was to have the console application start up the GUI and then update a textbox via a delegate function. Of course, for the GUI to update itself, and for the console app to continue its work, the GUI would need to be in its own thread. What is the best way of going about this Should the console app spawn a thread which then calls Application.Run(...) What then is the best way for the console app to send data over for the GUI to display I'm open to all suggestions. Thanks. Tag: Visual C# General Macrosubtsitution in C# Visual C#
Creating a class in a folder creates it in namespace .[FolderName] Hello!
Can I prevent Visual C# IDE (Visual Studio 2005 Pro) from putting classes/interfaces inside the subnamespace with the same name as the folder it is created in
I.e. C# Class Library DLL has a subfolder called "Foo" and classes created in the folder Foo automatically gets in DefaultNamespace.Foo.
Regards, Per Edin Tag: Visual C# General Macrosubtsitution in C# Visual C#
Help with custom dll problem Thanks. I've done that and just tried it again. But when I re-add the new dll file, it's still showing the old dll file classes and not the new one. Even the version number is not the same as the new one. Tag: Visual C# General Macrosubtsitution in C# Visual C#
RTF to PDF convertion using C# Cathy,
Thanks for your reply and I'm sorry, I missed your reply.
This is interesting, I wasn't sure of where to get the acrobat.dll and the following is what I found out in google. I am not sure if this is the same dll you are talking about
http://www.fileresearchcenter.com/A/ACROBAT.DLL-5656.html
http://www.file.net/process/acrobat.dll.html Tag: Visual C# General Macrosubtsitution in C# Visual C#
Class libraries Thanks man. But your magic ball is lying I was doing something like this: namespace lighttest { public partial class Form1 : Form { public Form1 ( ) { InitializeComponent ( ); } private void Form1_Load ( object sender, EventArgs e ) { float [ ] weights = new float [ 5 ]; Array.Sort ( weights ); My.Array.Compact ( ); } } } So as you can see I have 2 Array classes, which doesn't conflict. I always wanted to do this. Using it directly on instances would be cool too. I know you can do it but you can't filter them for specific types. Thanks, Aw Tag: Visual C# General Macrosubtsitution in C# Visual C#
SP2 causing error? The error is as follows:
Application has generated an exception that could not be handled.
Process id=0x15c(348), Thread id=0x734(1844).
The machine had Windows XP SP1 and IE6 installed. This was the same error that appeared on a machine with Windows 2000 and IE6.
Thanks for the help. Tag: Visual C# General Macrosubtsitution in C# Visual C#
using MCI to play video stream thanks you for your reply thanks for the code it did help but there is still a problem. as i mentioned in my original post my projet requires me to load the .wmv video which is embedded into a resource DLL. i need a way to play the video without having to write it into a file and then passing the address of the file to mci. im sure people must have come across this situation before where they have their videos as embedded resources and want to play them from some sort of stream like byte stream or memory stream. my understanding was that mci could do this task for me by passing a stream interface pointer as microsoft says in msdn(mentioned in original post). however if there is a better way to do this even using a different technology(other than mci) i am open to suggestions. thanks again Tag: Visual C# General Macrosubtsitution in C# Visual C#
Dactilifera
Hy! I'm new at .Net. I've developed at Visual FoxPro since now. In VFP exists "&" - macrosubtsitution. Does macrosubtsitution exist in C# Thank you.