-
- loading a set of files within directory, just need to know what to read up on.....
by PeteDemotedIn6Months
- 3 Replies
- Last post
by Peter Heard
- Hi, im using c# ,could anyone point me in the right direction for loading a set of files within a folder. I am writing an application to scour a set of strings and remove some values from within them. But i need to load and then search each file...what would be the best way to do this....here is the pseudocode....
start...
ask user for target directory....
while(no more files
-
- How good C# is for Client/Server Applications?
by Victor Lawrence
- 5 Replies
- Last post
by Wiltek Ghozali
- Victor A. Metzler - Brazil - SP I'm a Delphi programmer and I was thinking to learn a new language but I don't know if C# support all that Delphi support on Windows. PDF, Reports, Office, Email, File Manage, etc... All that in a Client/Server development. Is that a good idea to learn and develop a C# Client/Server application and expand after to .Net or stand with Delphi that I know Is worth
-
- Extra xmlns in xml output
by Micah Manquen
- 2 Replies
- Last post
by Micah Manquen
- Hi guys, I'm having some trouble figuring out why an XmlWriter is outputting extra xmlns=""s. Normally it woudn't matter but I'm trying to import the xml file to some database software that complains when there are blank attributes. Here's an example: < xml version="1.0" encoding="UTF-8" > <FMPXMLRESULT xmlns="http://www.filemaker.com/fmpxmlresult"
-
- string is a reference type, still while passing in function it doesn't behave like that
by bhavu
- 12 Replies
- Last post
by Matthew Watson
- Hi,
string is a reference type, still while passing in function it doesn't behave like that
I have below function
private void button1_Click( object sender, System.EventArgs e)
{
string s = "";
test( s);
Messagebox.show(s);
}
private void test( tring str)
{
str = "this";
}
When I run above program, it shows me e
-
- How to write Custom WMI Provider in C#.NET?
by My Vizai
- 1 Replies
- Last post
by Karthikeya Pavan Kumar .B
- Hi Experts, Recently I got a chance to work with WMI .. I need to develop a Custom WMI Provider , Can anybody give me resources for this... I found some but they are in unmanaged... I didn't find resources to develop in C#.. Thanks in advance vizai
-
- How to convert PDF to TIFF through C#?
by Ravi Bhatt
- 14 Replies
- Last post
by Jason Zhao
- Hi,
I am sending PDF as fax from my application.It works fine bt the only issue is, Adobe Acrobat's new instance gets opened automatically.The solutions I got is to fax TIFF files rather than PDF.
Can anyone do let meknow how to convert PDF to TIFF through C#
Thanks,
Ravi Bhatt
-
- passing data across methods
by yonelay
- 10 Replies
- Last post
by yonelay
- namespace Sample1
{
public partial class MainForm : Form
{
private int field1;
public MainForm()
{
InitializeComponent();
field1 = 2;
}
private void button1_Click( object sender, EventArgs e)
{
if (field1 == 2)
{
do something here;
}
else
do other;
}
How can I get the field1 value to be 2 when button1_Click method
-
- Data structures in C#
by duoshock
- 14 Replies
- Last post
by micvos
- Hi,
I need some advice on the data structures to use in C#. My need is to construct a something like a code syntax tree. what would the embedded data structures in C# to use so as to ensure memory optimisation and run time efficiency currently, stacks/lists/ dictionaries are my choice of options.
If any experienced C# developer would give me some sound advice, I would like to hear from you.
-
- Does the lock release on exception
by shinu
- 5 Replies
- Last post
by shinu
- will the lock release if an unhandled exception raised inside lock
-
- mikrosoft access & C#
by orangejuicegal
- 1 Replies
- Last post
by Kenny99
- hyee.I got a major problem regarding microsoft access database..im needed to save my data from microrosoft visual studio form into microsoft access database.In table form tat is. the data is retrieved from a device and into the form.im nt sure about how to save the data to microsoft access database.im using c# code(microsoft visual studio) for the project and microsoft access as my database.please
-
- Double Precision Issue in C#.net 2005
by fongye
- 26 Replies
- Last post
by fongye
- Hi,
I'm having problem with the C# double precision issue.
When i run the equation below, i get the result
8183.23 - 6695.37 = 1487.8599999999997
why i can not get 1487.86
when i convert the double variable to string and show in the message box, it round to the correct figure i want.
double i = Convert.ToDouble(dr["Qty"]) - Convert.ToDoulbe
-
- How to declare an object type variable
by Scott Kellish
- 4 Replies
- Last post
by Scott Kellish
- Suppose I declare the following class:
public class BaseEditor: UserControl
{
....
}
I can obviously do this:
Type t = typeof(BaseEditor);
Is there a way to declare a variable of type "BaseEditor.
In Delphi I could do this:
TBaseEditor = class(TUserControl)
...
end;
TBaseEditorClass = class of (TBaseEditor);
......
-
- ConfigurationSettings in with Remoting
by Netmaster0000
- 2 Replies
- Last post
by Figo Fei - MSFT
- Good day ppl, What I'm trying to do is allow my user to edit certain settings in my config file for a .net remoting application i wrote. I know that ConfigurationSettings.AppSettings allows you to enter the AppSettings key. What i want to do is through code, be able to edit my config file keys like - "povider" and "formatter". Really all of this is just to change the port an
-
- Finding installed programs/product IDs
by Jim Mace
- 1 Replies
- Last post
by nobugz
- How would I go about finding, with a C# program, which applications are installed on a computer and their corresponding product IDs We are trying to get a hold of our increasing software inventory/licensing, and I need to make some comparisons on installed applications on various machines and available/used licenses. Any ideas
-
- NumericUpDown set the Value property outside bounds HELP !!!
by JuG
- 5 Replies
- Last post
by Thomas Danecker
- Hi,
Is there any way to display a value in the NumericUpDown control that is bigger than Max or smaller than Min
Especially when I am just creating the control, not when the user changes it !!!
As I can see there is a check happening whenever I am initializing the Value property. And if the value is outside the bounds - ArgumentOutOFRangeExeption is thrown. Is there any way to ignor
-
- process does not execute
by theSpringer
- 12 Replies
- Last post
by theSpringer
- Hi all,
I'm trying to run an executable.
On my testing envirment everything works fine, but on the server (windows server 2003) nothing happens.
I use the same code and the same file !
the code i'm using is:
Process process = new Process ();
process.StartInfo.FileName = m_strCompilerExecutable;
process.StartInfo.UseShellExecute = true ;
process.StartInfo.
-
- Avoiding namespace declaration in each file
by papadi
- 13 Replies
- Last post
by Citizen on the earth
- Hi! One feature of vb compiler is that namespace declaration behaves in an inheritance kind of pattern. It is defined in applicaiton level and code files only specify namespace if it is other than the default. Is it possible to do the same in C#
-
- Please specify the assembly explicitly in the type name
by Andr&#233;_Silva
- 7 Replies
- Last post
by BJohnson
- The type 'DocumentPage.Global' is ambiguous: it could come from assembly 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\documentpagece15\b19d9bc2\App_Code.zxs3sy7_.DLL' or from assembly 'C:\Projectos AS\Projectos 2005\DocumentPage\bin\DocumentPage.DLL'. Please specify the assembly explicitly in the type name.
How can i solve this problem
Thank's!
-
- Is this really that hard??
by David_Wright
- 12 Replies
- Last post
by David_Wright
- All I want to do is re-get the value of a string every so often (say 5 mins). I don't want anything writing to a Form or a Console line, I just want the string value to be updated every so often. Is this really so hard to do Am I looking to do something impossible I had thought that this might be relatively simple, but obviously this is really hard to do in C#
-
- .tiff to pdf conversation
by Mujahid2hassan
- 6 Replies
- Last post
by Martin Xie - MSFT
- plz some boudy help me in present in software is csaning and stiring images in .tiff foemat and then convert images into .jpg using .net encoders now i want to convert that .tiff image sin to .pdf format is it possible in c#.and any library u know plz tell me
-
- App.config: I can not read from <applicationSettings> section inside C# code
by AFT
- 5 Replies
- Last post
by Ruud H.
- I really appreciate if somebody can show me how I can read from App.config <applicationSettings> into C# code. I have an App.config for a WEB Service (see a fragment below):
...................
< add key = " lvwExtraEquipment_CarDetails.Width " value = " 164 " />
< add key = " txtExtraEquipment_CarDetails.AcceptsReturn " value = &q
-
- i need an easy way for developing IVR
by Jehan Badshah
- 0 Replies
- Last post
by Jehan Badshah
- Dear All,
I need an easy way for developing IVR (interactive voice response application), i have developed using VTAPI API functions, but there is no facility for call farwarding.
Any one can help me please.
Thanks
-
- Disable Winkey
by Santro
- 2 Replies
- Last post
by Santro
- Dear Friends, I want to disable the WinKey on the keyboard for my application. I have checked out that we can do that by changing in the registry, however it asks me to restart the computer for the changes to take effect. However, I do not want to restart my computer. Do you guys have any idea as of how to disable the Winkey For more clarification, I want to tell you that I have followed the s
-
- Database Scripts
by help_eachother
- 14 Replies
- Last post
by Ji Cheng Wang - MSFT
- Hi,
I want to run some database scripts before and after running NUnit tests.
I am thinking of creating a seperate project for these scripts and then i can call this exectable assembly before and after NUnit tests
Kindly guide me , if this approach correct.
Should i create a database projects or a normal project
-
- lil addition..
by Sachitha
- 1 Replies
- Last post
by Figo Fei - MSFT
- a lil addition to what i posted..
Would it be more efficient to use "TestCategory" assigned to a constant.. But if the app.config file changes it will be a prob..
also if i use the above coding i wrote it will have a dependency with the app.config ( with the order of the categorySources)