-
- dynamic selection of connection strings
by Kamranshehzad
- 14 Replies
- Last post
by TaylorMichaelL
- Hi I want to add multiple connection strings like a liveConn and 2 test connections. But what happens when I change the app.config file, it doesn't react the way it should be. It keeps using the old string. Any idea or suggestion.
-
- Accessing and Saving an XML File from a certain URL address.
by Pipz
- 1 Replies
- Last post
by jaomello
- Hello, I am trying to code an application that will access an XML file in a certain URL(address). Then it will download the XML file and save it in the local machine of the user.
1. | user | -------- access ------->> | website |
2. | user | -------- gets ----------->> | file | //(in the website)
3. | application | ------- saves --->> | file | //(in local machine)
-
- Finalize and Dispose
by TomPearson
- 4 Replies
- Last post
by TomPearson
- Hello
I have a class that implements IDisposable with the following code.
/// <summary>
/// This should be called to free up system resources when the object is finished with
/// </summary>
public void Dispose()
{
// Call the clean up routine
CleanUp( true );
// Stop the finializer calling
GC .SuppressFinalize( this );
}
-
- MMC 3.0 Books/Resources?
by Acakir99
- 2 Replies
- Last post
by Martin Xie - MSFT
- Anyone know any good books that teach MMC 3.0 development in C# I understand the basics, and can make simple snap-ins, but I wouldn't mind a book (or online resource) that really dives into it and shows the majority of the cool things that can be done (as opposed to me using trial-and-error to try to discover it).
Thank you.
-
- Is there a way to plug-in or register dll modules so dll proxy can know their presence during run-time?
by Wood-MSDN
- 9 Replies
- Last post
by Peter Ritchie
- I am going to create a dll proxy which can call multiple dll modules at the same time. Those dll modules have common interfaces defined, i.e. they all have interface foo1(), foo2(), etc for proxy to call.
In long term, additional dll modules can be created by other partners.
The question is how my proxy can know new dll modules are available to call Is there a plug-in concept so thos
-
- Remoting problem C#
by daserca
- 7 Replies
- Last post
by daserca
- Hello all, I have the following problem. I have 2 applications in c#, Application1 send some information to Application2 using a TCP connection. I have done everything On my server side ChannelServices.RegisterChannel(...); RemotingConfiguration.RegisterWellKnownServiceType(...) On my client side ChannelServices.RegisterChannel(...); sO = (someObject)Activator.GetObject(typeof(someObject), &q
-
- new to c# and small compile error
by David j
- 3 Replies
- Last post
by David j
- I'm new to codeing and i read some java books and i understand that c# and java is very simluer
well heres my problem
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace Delete_Dir_tool
{
public partial class Form1
-
- Implied decimal point and decimal.TryParse
by Charles Talleyrand
- 5 Replies
- Last post
by boban.s
- Hello all,
My brain must not be working well today. I am processing data from a mainframe within C#. The sales data has an implied decimal place, thus 5599 is really 55.99 What we have now is a function that will modify a string to go from implicit decimal to explicit but it remains a string. Later on in the process, they convert the string to a decimal value. That just offends my sensibili
-
- copying chart from excel
by codan
- 3 Replies
- Last post
by codan
- I have an excel file that contains a chart within it. I would like to use this chart as a template for charts that I generate. This means that charts based on the template chart will inheirate the template charts type, fonts, colors, etc... I created a C# program that would read the excel file, extract the chart as an Excel.ChartObject, create a new spreadsheet, and copy the Excel.ChartObject into
-
- Not getting all grid values (loop prob)
by xlordt
- 7 Replies
- Last post
by xlordt
- For some reason I can't seem to get the first column in the gridview.. but if I was to type in something in column one and column two.. then I get column one's result.. and not column two using System; using System.Diagnostics; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.IO; using System.Windows.Forms; na
-
- Project dependency issue
by UrK
- 3 Replies
- Last post
by TaylorMichaelL
- Hi, I have a large solution with number of projects. Some the projects depend on others (never a circular dependency though) One of those projects requires a license and thus is built on one machine only. Rest of the machines just use the resulting DLL as an external dependency. This project is somewhere in the middle of dependency tree. The problem with this is that I have to disable building not
-
- How to Create a URL syntax checker in C#
by Pipz
- 14 Replies
- Last post
by Cminor
- I would like to create a URL syntax checker so that can verify a cerrtain URL not a phish site. But I am also aware that some URL have valid syntax but is still a phish site.
To answer this, I am looking for some measures on how to verify a URL and its correct DNS equivalent.
I am doing a project of mine as one of our requirements and I have decided to create a web browser (already done) and
-
- Reference object by name in string ?
by Gohalien
- 3 Replies
- Last post
by Gohalien
- Hi, it is posible if I have the object name (in this case a form) in a string (I get this name from a database), reference that object using the name Example: Form1 frmMyForm = new Form1 (); Form2 frmMyForm2 = new Form2 (); (now I do a search from the database in a table where I have form name, and other things) string dbqueryresult = queryresult("frmMyForm1"); For NOT doing an IF or Ca
-
- Calling Method Problem
by Anonomuys
- 3 Replies
- Last post
by Figo Fei - MSFT
- I have a problem with this code:
public Form1()
{
InitializeComponent();
draw();
}
public void draw( PaintEventArgs e)
{
Pen rectanglepen = new Pen ( Color .Blue);
e.Graphics.DrawRectangle(rectanglepen, 0, 0, 50, 50);
}
When I call the draw() method in the first part, the compiler tells me that something needs to go between the parentheses. What would i
-
- Converting UTC to local time
by WRBehning
- 14 Replies
- Last post
by JoseBonifacio
- I have an application that is designed to schedule certain activities to run at certain times on various servers located around the country. Actually, the app is similar in functinality to Windows Scheduld Tasks. Anyway, one requirement is for the app to be able to recognize and convert datetimes to the local server's timezone.
I am storing the data in a SQL server table. 
-
- generic error in gdi+
by mcnamaragio
- 9 Replies
- Last post
by Figo Fei - MSFT
- Can you please tell me why I'm getting generic error in gdi+ error in this code:
Code Snippet IntPtr hdcSrc = winapi.GetWindowDC(winapi.GetDesktopWindow()); // get the size winapi.RECT windowRect = new winapi.RECT(); winapi.GetWindowRect(winapi.GetDesktopWindow(), ref windowRect); int width = windowRect.right - windowRect.left; int height = windowRect.bottom - windowRect.top; // create a
-
- how to marshal this class?
by SteQve
- 10 Replies
- Last post
by Mattias Sjogren
- Hello!
I have this class:
[ StructLayout ( LayoutKind .Sequential, CharSet = CharSet .Unicode, Pack = 1)]
public class Request
{
public UInt16 Index= 0;
//Patient filters
public bool ID = false ;
[ MarshalAs ( UnmanagedType .BStr)]
public string ID;
public bool FN = false ;
}
I would like to convert this into an arra
-
- Completely dynamic method invocation
by bryanedds
- 5 Replies
- Last post
by boban.s
- In java, I believe you can attempt to call a method even though the compiler can't find the method in the object's known class. Basically, you could do something like this -
Object o;
o.SomeMethod();
The java compiler doesn't look to see if SomeMethod exists in o. It simply compiles the code and tries to find the method on the object at run-time. If it's not found, something like a Method
-
- Enable debugging for new configuration
by Llu&#38;&#35;2
- 3 Replies
- Last post
by TaylorMichaelL
- Hi, I have created a new configuration to enable some compilation directives, but now I cannot debug my application. Does someone know how to enable the debugger for the new configuration I've created. Thanks a lot. Lluis Montero http://www.portal-seo.com
-
- Return / finally -- which one will execute Last in a method?
by My Vizai
- 6 Replies
- Last post
by My Vizai
- Hi
I've a doubt regarding Finally block in exception handling,
I'm trying the falllowing code
public Dataset funct()
{
Dataset ds = new Dataset();
//Other declarations here
try
{
adapter.fill(ds);
}
catch
{
}
finally
{
ds.dispose();
}
return ds;
}
In the above code I'm desposing the dataset before return, but it is co
-
- Members Dropdown (hide Members)
by tkrasinger
- 3 Replies
- Last post
by Jose Escrich
-
I'm currently developing a WinForms Application, and sometimes there are really a lot of controls on a form.
The Member-DropDown now shows me not only methods, but also the Members (excl. GenerateMember=false).
I set GenerateMember to false on all labels, but I just have about 30 toolStripMenuItems, GroupBoxes, Textboxes and so on, and i hardly can find any method in the dropdown,
-
- disabling IIS to run local web server?
by Flip597
- 3 Replies
- Last post
by Flip
- How can I disable IIS5 in order to run the local VS2k5 web server
Thanks.
-
- Embed launched application into tab...
by markRadu
- 0 Replies
- Last post
by markRadu
- Hi, I'm trying to open Microsoft Excel or any other application and embedded into a form by using the Win API set parent function, but we're facing a lot of troubles for example, the menu bar and the tool bar disappear. Is there another way of embed an application into a form, Thanks.
-
- Find string in a string array
by Azurewrath
- 11 Replies
- Last post
by Hubert-Associates
- Hi all, I am trying to write a method that will find any exact string I want from a string array and return me the index of the first. Like if I have {"los angeles", "san diego", "seattle"}, and I want to find "san diego", it will return 1. Also I want it to go through elements till it finds a matching one, and then stops. I found a couple Find methods, but
-
- CursorConverter Error
by Subhas
- 4 Replies
- Last post
by Glenn in TN
- I am getting the following Error very often..
"CursorConverter' is unable to convert 'System.Windows.Forms.Cursor' to 'System.ComponentModel.Design.Serialization.InstanceDescriptor"
Also that when i tried to rename a control (which is copied from the same screen) i will get the error - "property name is not valid" and details part of the error shows the reason as same as