all groups > c# > january 2006 > threads for wednesday january 11
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Outlook Tools for Visual studio 2005
Posted by Wolf at 1/11/2006 11:45:20 PM
Does anyone know of a resource with info regarding Outlook Tools for
Visual studio 2005.
I want to create a contact in outlook 2003 and I don't know how to do
it, so im looking for some help online or any help will be appreciated.
Thanks in advance
... more >>
find the minus Key
Posted by Const at 1/11/2006 10:37:22 PM
Hi,
This is what i would like to do :
I have an Hashtable where all of my Keys are intergers.
The user choose a number, and i want to find the Closest minimal values
of my Keys.
For example :
mys Keys are : 0, 100, 250, 500.
The user enter the value 200, the programme should return... more >>
webbrowser.DocumentStream question (VS.2005)
Posted by Toma Marinov at 1/11/2006 10:35:02 PM
Hello !
I made some test with webbrowser control in VS.2005. When I load a word
document in webbrowser through .Navigate method (from my hdd), I want to get
the stream of the loaded doc file with .DocumentStream, but this property is
null. The property .DocumentText is = "" too. Am I missin... more >>
Having SQL Connection Open throughout C# windows application
Posted by AS at 1/11/2006 10:32:01 PM
Hi,
I have a C# windows desktop application that will be used only by one
user at a time. The database server (SQL Server 2000) also resides on
that machine only.
This application has three logical layers (UI, Business layer and
DataAccess layer). Currently, SQL Server connection is opened ... more >>
Help -- Problem with redrawing UserControl
Posted by Dino Buljubasic at 1/11/2006 10:23:41 PM
Hi,
I am using C# 2.0 (VS2005) to build my user control that contains a
number of dynamically loaded ListViews. ListViewItems have their
ForeColor properties set to either black or blue to distinguish
between ListViewItems.
As long as no other application window (i.e. word or calculator, o... more >>
Probably an easy question re: Namespaces
Posted by Mitchell Freeman at 1/11/2006 10:15:06 PM
I am having a problem accessing/sharing classes/objects between projects
contained within a single solution. I was under the impression that
namespaces was the answer I was looking for, but it seems I am not getting
anywhere with it and I hope I can get a little help. I've browsed the
on-lin... more >>
PropertyInfo.PropertyType is never ValueType?
Posted by INeedADip at 1/11/2006 10:13:47 PM
PropertyInfo[] props = obj.GetType().GetProperties();
foreach (PropertyInfo p in props)
if (p.PropertyType is ValueType)
this._commonProperties.Add(p.Name, p.GetValue(request,
null).ToString());
I get a warning that says p.PropertyType will never be ValueType....and it
was righ... more >>
UserControl Help
Posted by Dino Buljubasic at 1/11/2006 8:45:53 PM
Hi,
I have built a user control that contains several ListView controls
displaying various data. ListViewItems display text in different
colors.
I have noticed however that when I move another window (say a word
docuemnt or whatever else) over my application window, the font color
of each... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
re-using c# code in asp.net with minimal resources
Posted by Daves at 1/11/2006 8:31:34 PM
Please take your time to read the following, it's simple although the text
is 3 paragraphs...
Everytime an user is logged in I need to make a call to my sql server
database to grab some specific user settings and load into Session
variables. So, I have a "Loggedin" event in login.aspx which... more >>
The conditional operator (?:) and performance.
Posted by Marty at 1/11/2006 7:41:58 PM
Hi,
Does using the the conditional operator (?:) instead of the common "if"
statement will give a performance gain in a C# .NET 2003 application
(even in C# .NET 2005?).
What is the advantage of using it in C# other than typing shorter if ?
Thanks,
Marty... more >>
Aquiring Email Address
Posted by kimberly.walker NO[at]SPAM consultant.com at 1/11/2006 7:31:03 PM
Im currently trying to create this web application that allows the user
to place a help desk ticket. The problem that Im having is that
instead of having the user place their email address in a text box I
wanted to be able to get the users email address by code. Is this
possible? Ive tired us... more >>
Is it possible to create virtual class to force the class must inherited?
Posted by ABC at 1/11/2006 7:26:25 PM
as subject.
I have two classes, one is sealed class that will call or access the another
class properties or methods. But, now, the another class is for future use
and unknow what properties will add. I don't want to modify sealed class
when the another class properties or new methods ad... more >>
IsValueType
Posted by INeedADip at 1/11/2006 7:18:20 PM
What I am trying to do is loop through all my session variables and log them
if there is an exception.
I want to loop through and, if they're a value type, I want to add them to a
NamedValueCollection and log them.
How can I loop through and say
for(int x=0; x<Session.Keys.Count;x++)
{
... more >>
New Project Strategy: develop in 1.1 then migrate to 2.0 just before going live
Posted by Jeff at 1/11/2006 7:04:36 PM
Looking for your highly subjective opinions (from those of you who have been
working extensively with VS 2005).
I have a client that needs/wants a complete rewrite of an existing
application. I will be proposing a .NET Windows application with a
supporting SQL Server database. It will likel... more >>
Download file to local file system
Posted by Stefan Nuxoll at 1/11/2006 7:03:23 PM
I am working on a player application for my podcast, currently all it
does is make a Windows Media Player control open the MP3 file you select
from a listbox populated by the RSS feed. I am trying to add a 'save'
feature that downloads the MP3 to the local file system, but everything
I have... more >>
Differences between Rectangular and Jagged Arrays
Posted by xllx.relient.xllx NO[at]SPAM gmail.com at 1/11/2006 7:01:38 PM
Hi, I have two questions:
1.)Is it true that an rectangular array is really just an single
dimensional array that lets itself be treated as a multi-dimensional
array?
For example the following declaration:
int[,] rectangular = new int[5,10];
has it's memory layout in a sequential conti... more >>
C# has InList() function?
Posted by ABC at 1/11/2006 6:51:47 PM
Is there any function in C# to do as:
result true if InList('abc,ihjl,dkfd,ooo', 'abc');
... more >>
How to make ISAPI filter in C#?
Posted by wirawan ngurah at 1/11/2006 5:49:33 PM
Hi all,
Is anyone of you can help me how to make ISAPI filter in C#?
Because i need to capture all the request on IIS before processing it.
many thanks in advance.
Wirawan
*** Sent via Developersdex http://www.developersdex.com ***... more >>
Articles or Turorials on Aggregation??
Posted by SenthilVel at 1/11/2006 5:16:18 PM
Hi
Can any one let me know the websites/Pdf for learning Aggragation in C#??
Thanks
Senthil
... more >>
Casting generic collections & inheritance
Posted by Adam Clauss at 1/11/2006 5:11:12 PM
OK, I have class A defined as follows:
class A
{
A(Queue<B> queue) { ... }
}
Now, I then have a subclass of both classes A and B. The subclass of A
(SubA), more specifically is passed a Queue<SubB>.
class SubA
{
SubA(Queue<SubB> queue)
: base (queue)
{ ... }
}
... more >>
How to loop through textboxes?
Posted by Brett Romero at 1/11/2006 4:40:57 PM
I'd like to loop through all text boxes on a winform and check if they
are empty.
private bool emptyTextBoxes()
{
bool isEmpty = true;
foreach(Control ctl in Controls)
{
if (typeof(ctl) == TextBox) //error here
if(ctl.Text != "")
isEmpty = false;
}
... more >>
Faster way to fill a byte array
Posted by D. Yates at 1/11/2006 4:28:30 PM
All,
Is there a faster way to do this in C#:
byte[] buffer;
buffer = new byte[43];
for(int i = 0; i < buffer.Length; i++)
buffer[i] = 0;
Dave
... more >>
URGENT: Command Parameter MySQL full text search.
Posted by Zeya at 1/11/2006 4:27:27 PM
I have an application where I am required to run a full text query. My
database is MySQL and code in C#. The way all queries are SELECT * FROM
table WHERE firstname = ? and using command parameter the value of ? is
added. But, how would I do the same in case of full text search.
SELECT *... more >>
ToolStripDropDownButton
Posted by Priya at 1/11/2006 4:10:35 PM
I accidentally deleted the toolstrip which had the
ToolStripDropDownButton. Is there a easy way to get it back. The code
for the toolstrip still exists, its just that I cant see it in the
designer. I was wondering if there was any other way rather than
re-doing the entire thing again..
Thanks... more >>
How to update dataset.Tables["tab1"] from records in dataset.Tables["tab2"]?
Posted by AndiSHFR at 1/11/2006 3:51:28 PM
Hi.
How do i "bulk update" data rows on a dataset table from another one
DataTable?
i have a dataset ds1 with a table "Groups" and a table "newgroupdata"
and i want to update the records in ds1.Tables["Groups"] from the data
in ds1.Tables["newgroupdata"].
Additional i want to insert groups... more >>
memcmp and memcpy in c# ?
Posted by Alex Stark at 1/11/2006 3:00:58 PM
Hi,
I'm new to c# an missing functions like memcmp and memcpy from C.
Is there something similar ?
cu
Alex
... more >>
File Uploading issue
Posted by Giuseppe Esposito at 1/11/2006 2:56:08 PM
Well, I'm trying to create my own file uploader, just to start with something
that can be usefull for me in the later days.
I did it. Certainly it was so simple as I thought, actually I've some little
bugs that I'm going to correct.
But the thing that I'm not able to do is understand why, de... more >>
Building a Web Service, but no dll (in VS 2005)
Posted by Andreas at 1/11/2006 2:49:13 PM
I am trying to migrate an existing Web Site (written in C#) from Visual
Studio 2003 to 2005 but I am having some problems :(
The Web Site have in VS.2003 a couple of projects
Web - The GUI of the Web Site
Web Service - The Web Service with some functions used by the GUI...
Data Layer ... more >>
Generic return value
Posted by David Veeneman at 1/11/2006 2:40:24 PM
I'm writing a custom Find() function on a collection class derived from
List<T>. The function will return an object of the type held in the
collection.
How do I specify the return type of the function? Thanks.
--
David Veeneman
Foresight Systems
... more >>
Where is Release mode
Posted by INeedADip at 1/11/2006 1:37:13 PM
How do I compile things in release mode...
I have only done a web projects in Visual Studio 2005, and I go "Publish Web
Site" when it's time to release that.
But now I have created a Windows Service that I am ready to release. In the
2003 version I would just change the dropdown from "Debug... more >>
Simple way to return a COM enumeration interface from .NET?
Posted by Jayme Pechan at 1/11/2006 1:30:51 PM
Is there a simple way to return a COM enumeration interface from .NET? I am
porting a C++ COM Object that has an enumeration interface containing the
DISPID_NEWENUM and DISPID_VALUE properties and the count property and need
to create the equivilant in C#. I'm hoping I can just return an arr... more >>
Regarding proxy server
Posted by TulasiKumar at 1/11/2006 1:02:20 PM
hi all,
i have one requirement in my project.The requirement is i want to fix some
domain sites in TcpIp like proxy servers behaviour.When ever end user
passing the inforamtion of that domain sites,at that time i want to get the
inforamtion and i ahve do some operations.How can i implement this
... more >>
Need to re-create code in new control (please help)
Posted by Ronald S. Cook at 1/11/2006 12:50:21 PM
Thanks for reading this...
Our current Win app employs a ListView control wherein the tag for an item
is, for example, "ContentManager.DataModel.PowerPointContent". The
following code exists (and works just fine) for when the user clicks on any
item within the ListView:
private void lis... more >>
How to return the class name from a class?
Posted by ABC at 1/11/2006 12:49:39 PM
How to return the class name using static getter from a class?
The base class as:
class abcbase
{
..............
public static string ObjectName
{
get { return ??????????? }
}
}
class def : abcbase
{
.....................
}
class ijk : abcbase
{
... more >>
How to pass a function address to a COM callback
Posted by Minfu Lu at 1/11/2006 12:38:02 PM
I have a problem dealing with passing a function address to a COM callback. I
use this COM function for communicating to a hardware. My original project
was written in VB. I have converted it to C#. One of the problem is passing
a function address to a COM function as a parameter with another... more >>
Overriding a Control's OnPaint Method
Posted by RSH at 1/11/2006 12:26:53 PM
How do I go about overriding a Control's OnPaint Method?
I would like to prevent a control's color from changing when it is disabled.
I have overridden the Form's OnPaint Method but I need to do it at the
control level.
Thanks,
Ron
... more >>
DataReader Close Issue
Posted by jjmraz NO[at]SPAM hotmail.com at 1/11/2006 11:07:06 AM
Hi,
I have a situation where in a dll a SqlDataReader is created on a
function call but is never closed. The datareader gets passed back to
the asp.net page calling it. How should I close the SqldataReader in
the function where it is being created properly? If I close the
SqlDataReader in... more >>
Help with DataGridTableStyle?
Posted by Brett Romero at 1/11/2006 10:39:19 AM
I have the following DataGridTableStyle:
DataGridTableStyle gridTableStyle = new DataGridTableStyle();
gridTableStyle.MappingName = "myStyle";
DataGridTextBoxColumn dgsc = new DataGridTextBoxColumn();
dgsc.MappingName = "FirstName";
dgsc.HeaderText = "First Name";
dgsc.Wi... more >>
How to Retrieve a Numeric Type from a SqlServer table?
Posted by Frank at 1/11/2006 10:30:16 AM
Hello,
I am attempting to retrieve a numeric type froma a table.
I get an invalid cast exception when I use the following code in my data
layer:
//The problem definitley occurs in the line"id = (int)
cmdSelect.ExecuteScalar();"
public int GetId(string handle)
{
string strSelect... more >>
Removing Characters other than letters or numbers
Posted by Yosh at 1/11/2006 10:13:19 AM
I have a string where I want to remove only those characters that are
letters or numbers. Does .NET provide an easy method to do this?
TIA!
... more >>
Speed of VS2005.
Posted by Frank Rizzo at 1/11/2006 10:09:57 AM
Is it me or is the speed of VS2005 actually slower than VS2003?
The startup is pretty bad - even though I changed VS to display an empty
environment. When I create a new form and want to change its size:
while I am resizing, an hour glass comes up for a few seconds.
There a lot of other slo... more >>
object to a byte[]: revisit
Posted by Pohihihi at 1/11/2006 9:58:19 AM
Hello All,
While replying to my post many lost the track of what I was asking but =
it was nice to know few extra things. Well coming back to my problem --
My field is varbinary in SQL db. Do you think converting it into =
ToString()=20
might create problem. "FullName" col is just an exampl... more >>
Help: How to capture the whole content of a html web page with scroll bars as one picture?
Posted by Andy Chen at 1/11/2006 9:44:31 AM
Hi,
I am working on a project and I need to obtain snapshots of the HTML pages.
Currently I can only get the visible part of one page if the page has scroll
bars. I searched on google and find some sample code but they are all have
the same limitation. Does anyone have any ideas on this?
... more >>
How to handle image buffers in C#
Posted by SHB-MSDN NO[at]SPAM newsgroup.nospam at 1/11/2006 9:41:59 AM
Hi,
we are planning to rewrite an extisting C++ image processing
application/library in C#. Now several question arouse where I hope you can
help me:
So far we allocated a block of memory as image buffer, handed this to a
driver dll and got raw image data back in this buffer. We then han... more >>
Sizing controls in the MenuStrip.
Posted by Frank Rizzo at 1/11/2006 9:38:40 AM
I've added a TextBox to the MenuStrip control in VS2005. The MenuStrip
control has a height of 27 pixels on my system. For whatever reason, I
can't seem to get the TextBox to be 27 pixels as well. It maxes out at
20. If I enter 27 for Size.Height, the Properties grid promptly changes
it ... more >>
socket exceptions
Posted by Droopy at 1/11/2006 9:26:28 AM
Hi,
I wrote a program that runs on about 20 machines.
Each machine is connected with a socket on all other machines.
Each socket has its own handling thread.
The main reading loop is using Poll () with a 100ms timeout and Receive ()
to check incoming data.
Send () is used to send data.
The... more >>
Having trouble understanding assignement of Object in this instance
Posted by RSH at 1/11/2006 9:10:28 AM
I am slowly getting the hang of objects and creating my own. I was given
some help in assigning an object to a ComboBox collection. I have been
looking at it and I get the concept which is very powerful but I'm having a
bit of a problem conceptually. I was hoping someone might be able to ... more >>
Display Powerpoint presentation within my own form?
Posted by Sensei76 at 1/11/2006 9:09:05 AM
Hello, I have the following problem and I do not know how to accomplish this.
I have an (existing) powerpoint presentation that should be displayed not
within its own window, but within a control of my own form.
So I added a reference to the Microsoft PowerPoint Object Library and tried
to... more >>
Calling a method on a sperate thread
Posted by kplkumar NO[at]SPAM gmail.com at 1/11/2006 8:25:03 AM
I want to call a method passing a parameter. I want to do this call on
a seperate thread. For example,
public class Foo
{
public static void FooSend(Message message)
{
// Start a seperate thread to call Send(message) method
// everytime someone calls this FooSend method
... more >>
Control.BeginInvoke
Posted by john doe at 1/11/2006 8:22:28 AM
I have a question about BeginInvoke method found on the Control class.
To quote the docs:
"Executes the specified delegate asynchronously with the specified
arguments, on the thread that the control's underlying handle was
created on."
Which is fine, but I'm wondering how does this method g... more >>
Trouble with 3rd party dll wrapper class
Posted by Mercy at 1/11/2006 8:21:53 AM
Hey All,
This is probably a easy question, but I'm really stuck. I have a
command console program written in C++, that I want to convert it to C#
to make it into a windows app. The problem is that my program uses a
third part dll. So I tried to write a wrapper class for it. Even
though I ... more >>
Subclassed control in projected doesn't show up in toolbox
Posted by CJM at 1/11/2006 8:11:24 AM
I'm currently working on an assembly that has both forms and controls
in it.
When I create a new control based on UserControl and compile, it shows
up in the toolbox for all forms in this assembly.
When I create a subclassed control (from label in this case), it does
not show up in the tool... more >>
Debugging a logon process event
Posted by Guy Noir at 1/11/2006 7:52:53 AM
Hello.
OK, Thanks to the help I have the remote debugging worked out.
Here is my next hurdle.
I have a service that is supposed to be catching Event Log written
events.
this.eventLog1.EntryWritten += new
System.Diagnostics.EntryWrittenEventHandler(this.eventLog1_EntryWritten);
It catc... more >>
Debugging a remote machine
Posted by Guy Noir at 1/11/2006 7:25:01 AM
Hello.
I am trying to debug remotely for the first time.
I have 2 machines, identical credentials.
Machine 1: Running VS2005.Net
Machine 2: Running msvsmon.exe from a network share pointing to Machine
1.
On machine 1, I can point to machine 2 and attach to the process just
fine. However... more >>
Casting in and out
Posted by Paulustrious at 1/11/2006 6:10:02 AM
Is it possible to force a cast to an inherited class?
class Program
{
static void Main(string [] args)
{
Father Dad = new Father( );
Son boy = (Son) Dad; // <<== fails at run time with
invalid cast
}
class Father { }
... more >>
Adding a new class to a dll
Posted by H=E5vard_Olerud_Eriksen at 1/11/2006 5:23:40 AM
I've got a dll which houses a namespace hierarchy of useful utilities.
I decided that I wanted to add another class to this namespace today. I
then started up the project, copied the class file to the project
directory, clicked add existing item, and added the class. I then
recompiled the dll.
... more >>
Making an independant/autonomous .Net win application...
Posted by Nader at 1/11/2006 2:36:28 AM
Is it possible to make, build and deploy a windows .Net application
which can be installed in any pc without installing .Net framework on
it??
In VB6 it's possible because you can deliver the .dll files with the
setup file togather(in the same folder). It's a pity if it's not
possible with VS .... more >>
xml serialization for white space code
Posted by virendra.chandra at 1/11/2006 2:06:29 AM
hey, anybody help me.
my problem is that i am doing xml seriazation through top most class.
so many place i need indentation. so what i did i put hexadecimal
code(   )
class sample
{
private string _title;
public string Title
{
get
{
return _title;
}
set
{
_title... more >>
C# Component for non .NET clients
Posted by AA2e72E at 1/11/2006 12:41:02 AM
Using C# Express, I am able to create a DLL that is usable by non .NET
clients such as Excel.
// Create a late bound instance, works
Set CDLL = CreateObject("ClassLibrary1.Class1")
// Call a method in it, works
CDLL.MyMethod
That is, all the methods are exposed. However, none of the propert... more >>
Testing for instance of object when operator overloaded
Posted by Jesper at 1/11/2006 12:22:02 AM
Hi,
I've made a class with the following operator overloads listed below.
However, If I test a 'pointer' for an instace, I get an exception that the
object is not set to an insstance of an object.
ID id = new ID(1,2)
.....
e.g. if ( id != null ) <- this line calls the static overload, I... more >>
|