all groups > c# > october 2005
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
programmatically changing mouse, keyboard, and display settings
Posted by MarkZ2001 at 10/31/2005 11:35:59 PM
Hello:
I'd like to set mouse and display settings programmatically without
having to log out or restart. Is this possible by making registry
settings and then having the winlogin process re-read the registry? Or
is there another way to do this? I will likely need to capture
multiple settin... more >>
How can i solve this simple problem without using reflection
Posted by Ste at 10/31/2005 11:25:53 PM
I am connecting to a web service and wsdl has generated a lot of methods =
for it. I am creating a wrapper DLL that handles all the communication =
with the web service (uses WSE and such) to hide the complexity and do =
full validation etc..
Each method takes the same input param and needs t... more >>
public folder permissions using exoledb
Posted by Morten at 10/31/2005 10:08:01 PM
Hi!
I'm trying to use exoledb to apply permissions to a public folder.
My code looks like:
ADORecord = new ADODB.RecordClass();
ADOConn = new ADODB.ConnectionClass();
ADOConn.Provider = "ExOLEDB.DataSource";
ADOConn.Open(folderURL,Server_usr,Server_pwd,0);
ADOR... more >>
importing data to Access database
Posted by farseer at 10/31/2005 9:19:34 PM
Hi,
i would like to write an app that will do the following:
1. download a csv file from an http url. fields are delimited by the
"|"
2. i would like to import this into an access database
2. i'd like the first row row to be disregarded, as it is the column
names
2. I need to also disre... more >>
Newbie Question on Error Handling
Posted by Figmo at 10/31/2005 8:56:06 PM
I'm new to C# and I have a question on how the debugger handles various
errors.
A) Sometimes - I get an error and the debugger breaks on the line with
the error so I can take a look at it. And it gives me a nice error
message on why it didn't like this line of code.
B) Sometimes - I get an... more >>
Question about "Contains" method
Posted by Robert W. at 10/31/2005 8:00:03 PM
I've built a complex collection object from
"System.Collections.CollectionBase". With regard to it, I have a question
about the "Contains" method.
At first I thought that "Contains" would actually search the entire
collection to tell me whether an object in the collection were identical wi... more >>
VS AddIn - Line Number in ActiveDocument
Posted by Ken Wilson at 10/31/2005 7:43:22 PM
I am currently working on a Visual Studio add-in. Does anyone know of
a simple way to get the line number the cursor is on in the
ActiveDocument? I don't necessarily need full code as long as someone
can point me in the right direction. Thanks in advance.
Ken Wilson
Seeking viable employme... more >>
System.Net.WebClient.DownloadFile doesn't work with http attachments
Posted by A.M-SG at 10/31/2005 6:45:48 PM
Hi,
I have an aspx page at the web server that provides PDF documents for smart
client applications.
Here is the code in aspx page that defines content type:
Response.ContentType = "application/octet-stream";
Response.AppendHeader("Content-Disposition", "attachment;filename=" +
fileID.... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to handle form loading in sequence?
Posted by ltnats NO[at]SPAM yahoo.com.au at 10/31/2005 6:04:27 PM
Hi there,
I have C# Windows Forms app I am building that has a Splash Screen
and 4 other forms that are to be shown in different sequences depending
on what sequence buttons on the forms are pressed.
I had written a starter class to handle this. The starter class used
ShowDialogue() to o... more >>
array of ListViewItem - how to do it
Posted by grs at 10/31/2005 5:15:10 PM
The following is a code example from the Microsoft MSDN.
My question is on the following three lines of code:
ListViewItem item1 = new ListViewItem("item1",0);
ListViewItem item2 = new ListViewItem("item2",1);
ListViewItem item3 = new ListViewItem("item3",0);
You would in most cases know th... more >>
ComboBox DropDown Location
Posted by kate sporks at 10/31/2005 4:40:03 PM
I have the following issue with a ComboBox, specifically a dropdown list.
When the dropdown is shown, the items spill over the right edge of the
screen. Basically, the dropdown is about 30 pixels too wide. I have no
option to change where the combobox is. It must be on the right side for
... more >>
.NET 2.0 (RTM) serialization does not thror exception for missing/changed properties!
Posted by Tuncay Baskan at 10/31/2005 3:29:46 PM
Hi all,
Serialization behavior of .NET 2.0 (RTM version) is very strange. I
have the following simple code:
using System;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
[Serializable]
public class SampleClass {
public SampleClass(string name) {
this... more >>
Debugging designer bug
Posted by Raj Chudasama at 10/31/2005 3:02:51 PM
i have an app that uses a lot of bitmaps, associated with various classes
etc on the gui. Everytime i open then designer i am getting a "object
reference not set to an instance of an object" msg box. i know what it measn
but have no clue where it is comming from.
how can i debug this?
... more >>
Instance vs Local Initialization
Posted by vooose at 10/31/2005 2:08:17 PM
Consider
{
bool var;
if(var)
Console.WriteLine("var is true");
}
results in the compilation error
Use of unassigned local variable 'var'
If you make var an instance variable you don't get a compile error as
the variable is effectively 'initialized' to all zeros. Why can't local... more >>
return generic object rather strongly-typed business object?
Posted by hazz at 10/31/2005 1:33:39 PM
I would like to call a generic method that will pass back a generic object
private object getBO(int ID)
{return specific_bo;}
rather than returning a specific business object
private specific_BO getBO(int objID)
{return specific_bo;}
so I can do this;
switch(ID) {
case(int)gene... more >>
.NET and Bookmarks
Posted by Jim at 10/31/2005 1:18:34 PM
Hi everybody.
I have a custom reports functionality in my application. It is
basically Word document with bunch of bookmarks. In my code, I open
that document and return data from SQL to that file.
It works fine. The only problem is doesn't matter how I changed the
format of my template d... more >>
seralization as string
Posted by Alisa at 10/31/2005 11:58:47 AM
How can i get the seralization of an object as string?
Can i avoid saving a temporary file?
thanks
... more >>
Why wont this datareader return any values?
Posted by Grant at 10/31/2005 11:38:51 AM
I am connecting to an access database using a datareader in C#. I get
results when I run a certain query from Access but when I run it from Code
it does not retrieve any results. I have put a stop point after the string
is created and it is correct. Its an inner join query so I was wandering
... more >>
Login form disgard
Posted by JPSutor at 10/31/2005 10:42:46 AM
I have a login form, that if successfully answered, launches another
form. The problem is that the login form remains even after I show the
main form. How do I get rid of the login form?
... more >>
Press Release: InstallAware First (and Only) Installation Toolkit to Support .NET 2.0 Installations
Posted by InstallAware at 10/31/2005 10:00:18 AM
For Press Inquiries:
Sinan Karaca
InstallAware Software Corporation
336 Guerrero Street, San Francisco CA 94103
415 358 4094 (voice/fax)
sinank@installaware.com
http://www.installaware.com/
InstallAware First (and Only) Installation Toolkit to Support .NET 2.0
Installations
One click de... more >>
MdiParent and InvokeMember...
Posted by Robert Vasquez at 10/31/2005 9:28:38 AM
How can I get a form in a class library to become an MDI Child of the main
application? I've tried the following, but does not work:
Class Library...
public class Class1
{
public Class1()
{
//
// TODO: Add constructor logic here
//
}
pub... more >>
New to C#
Posted by Karl at 10/31/2005 8:45:12 AM
I have a group of controls and I would like to leave the first one visible
but be able to turn the other 7 visible or invisible dynamically. They are
all named the same except the number at the end (i.e.: Control1, Control2,
Control3, etc...) What I attempted to do was use a for loop but th... more >>
message filters
Posted by Neil Stevens at 10/31/2005 8:43:33 AM
Hi All,
I am in the process of creating a message filter for an application that i
am writing, this is really just a question for information on the LParam
value of the PreFilterMessage method.
Now, i know that this parameters value depends on the message, but is there
any information an... more >>
transport data from mulitiple look-up tables through web service into business object for databinding
Posted by msnews.microsoft.com at 10/31/2005 7:57:33 AM
Current code
1.. creates SqlDataAdapter
2.. fills dataset with database table extracted from dataadapter
3.. populates tables with database table contents extracted from
dataadapter
4.. binds table to datasource property of Infragistics dropdown combo
control
The code needs to... more >>
What's the most efficient approach (App Domain?)...
Posted by Robert Vasquez at 10/31/2005 7:02:13 AM
I'm currently trying to decide the best way to design my application, any
suggestions or comments welcomed.
In C++ to make my apps more efficient (consume less memory while running) I
would break parts of my apps into dll's that I would then load dynamically as
needed. I like this approach... more >>
should i write my new component with .NET 2.0 ?
Posted by yaron at 10/31/2005 6:42:12 AM
Hi,
I am writing a new networking component (dll).
I have a few questions :
1. if i write it with .NET 2 , am i decreasing the number of potentials
clients of my component ?
2. if the API to my component is compatible with .NET 1.1 but my component
use inside it .NET 2.0 , can a NET 1.1 cl... more >>
Selecting all items in a listview
Posted by Bry at 10/31/2005 6:37:29 AM
I know you can select a single item in a list view using the following
code
listView.Items[index].Selected = true;
Is it possible to do this for all items in the listView control without
using a loop?
Thanks.
... more >>
Share ADO.NET database connection across projects.
Posted by Macca at 10/31/2005 6:10:06 AM
Hi,
I have a C# Solution/Application that contain 4 projects.
Each of these projects needs at some time to access the same database.
I would like to know how to share a single connection between these projects
as i assume this would be more efficient than having a separate connection
st... more >>
BCC field in an email
Posted by CodeRazor at 10/31/2005 6:01:05 AM
Hi,
Am I missing something important here? -- I am trying to send an email to an
address provided by the user, and then send a bcc email to myself.
So I have tried the code below, however, it will not send an email to the
user and send me the bcc email. It will send the email to the user an... more >>
simple ftp client
Posted by Billy Bob at 10/31/2005 5:52:19 AM
Hi, does anyone know of a simple ftp client class, should be able to
connect and upload/delete files. C#
*** Sent via Developersdex http://www.developersdex.com ***... more >>
About SelfReg table for registering dlls
Posted by Shiraz at 10/31/2005 5:03:03 AM
Hi
I just made an installer for an application that uses two external COM dlls.
On the surface, everything seems to be running smoothly and the the
application runs without any errors. However, I am not completely satisfied
by my implementation.
I basically used a software that generat... more >>
Getting the node the user right clicked on
Posted by Hylton at 10/31/2005 4:26:04 AM
Hi
In a treeview How do I get the node that the user right clicked on. I need
to modify the contecxt menu based on the node
... more >>
How to call a C++ Method form C# which has char* as parameter
Posted by Venkatachalam at 10/31/2005 3:38:07 AM
Hello,
I have a c++ dll, whose signature is given below.
bapiVersionInfo(char *versionString, UINT size);
Where in c++, the caller has to allocate the memory and has to specifiy the
size of the allocated memory.
For Eg.
#Include <BABP.h>
const int size = 10;
void GetVersion()
{
ch... more >>
Running exe.
Posted by trialproduct2004 NO[at]SPAM yahoo.com at 10/31/2005 3:30:42 AM
hi all
i am having C# application where i want to run one console based
application with is taking parameter through command prompt.
I don't know how to run exe taking parameter through C# application.
Can someone help me in doing this.
Any help will be appreciated.
Thanks in advance.
... more >>
? about currencymanager & relations
Posted by D at 10/31/2005 12:00:00 AM
hi
I have a form with 2 datagrids showing related table data in a master /
child or order / order details type relationship. I would like to auto
select the row in the order details table which contains the highest priced
item. My thoughts were to get the currency manager from the orderdeta... more >>
Calling a forms control from anther class???????
Posted by Jon S via DotNetMonster.com at 10/31/2005 12:00:00 AM
Hi all,
This should be simple. I have a form called frmInterface. On this form I
have a label called lblStatus. I want to change the TEXT of this label from
another class.
For example
nsInterface.frmInterface objTemp = new nsInterface.frmInterface;
objTemp.lblStatus.text... more >>
The new .NET 2.0 redistributable broke C#.
Posted by vbMark at 10/31/2005 12:00:00 AM
Hello,
(C# 2005 Express Beta)
I just installed the newly released .NET 2.0 redistributable, and now when
I try to start a solution it crashes.
Is there a fix for this that does not include reinstalling the IDE?
Thanks!
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Best... more >>
Detecting application launch
Posted by Andrea at 10/31/2005 12:00:00 AM
I need to detect when another application is launched. I'd need to
know also when a new folder is opened in explorer. I'm developing an
application to speed up access to frequently used applications.... more >>
c# windows form cyrstal reports
Posted by Jason Huang at 10/31/2005 12:00:00 AM
Hi,
In my ASPNet C# Windows Form, how do I open a Crystal Report without using a
Crystal Report Viewer? And in this situation, how do I pass parameter
value?
Thanks for help.
Jason
... more >>
visual studio ide expanding
Posted by gordon at 10/31/2005 12:00:00 AM
Hi
I have VS 2003 and i would like to make all of the regions in C# code expand
when i open the code. Is there an option where this could be the default?
If not, Is there a simple way to expand them all?
thanks
Doug
... more >>
Call external application
Posted by Tiago Costa at 10/31/2005 12:00:00 AM
I there!!!
How can i call an external application??
For example SKYPE?
thanks in advance.
Tiago Costa
... more >>
permissions via webdav on public folder
Posted by Morten at 10/31/2005 12:00:00 AM
Hi!
Has anyone managed to set permissions on a public folder via webdav? I'm
trying to create a folder and set some initial permissions once it's
created. Just a small example would be very helpful.
Thanks in advance
Morten
... more >>
Class method access to network files
Posted by A.M-SG at 10/31/2005 12:00:00 AM
Hi,
I have a method within my class that needs to open a network file. The file
is only available for certain active directory user. How can I have my
method temporarily login as an active directory user name and password and
open the network file?
Thank you,
Alan
... more >>
About FileSystemWatcher !!
Posted by MingChih Tsai at 10/31/2005 12:00:00 AM
Hi there,
I can use FileSystemWatcher class to monitor system io, but how should I do
if I want to cancel the system delete process on my OnDelete event ?
Thanks for the reply !!
Regards,
Paul
... more >>
evaluating string to a variable name
Posted by Raed Sawalha at 10/30/2005 11:58:01 PM
i have the following case
a MyClass class has
method with 2 arguments as
void SetProp(string varname,string varvalue);
in MyClass i have following members
string stdname,stddate,stdbirth,stdloc
from other class i created object from MyClass ,
MyClass obj = new MyClass();
obj.Set... more >>
RegEx hangs - Please help
Posted by sasifiqbal NO[at]SPAM gmail.com at 10/30/2005 11:56:03 PM
Hi All,
I have following text Template that needs to be parsed using Regular
Expression
-- Test Template
This is a Test Template for <#OrderNumber/>
Sender Message is <#SENDERMESSAGE/>
<#ORDERS>
This is Order number <#OrderNumber/>
Order Lines are
<#ORDERLINES>
Product Des... more >>
Share dll object
Posted by isamusetu at 10/30/2005 11:53:04 PM
anybody knows how to share the dll between the process? I know there is a way
to set the #pragma data_seg in the visual studio 6.0 C++, that can make the
dll can be shared between the multiple processes. but how to do it in .net?
--
ISAMUSETU... more >>
delete a file
Posted by jack at 10/30/2005 10:51:25 PM
hi can any one help me in this
how to delete a physical file from the drive
please help
thanks for the reply
... more >>
Trying to mix graphical & textual buttons on a ToolBar
Posted by Robert W. at 10/30/2005 10:10:06 PM
I've added a toolbar to my WinForms app and would like to have standard
graphical buttons for the standard things (ie. New, Open, Close, Save, etc.)
But I have a less well known featured called "Publish". Ideally what I'd
like is to have a wider toolbar button that just spells out "Publish".... more >>
VS 2003 interface index?
Posted by Rick Lones at 10/30/2005 9:34:32 PM
In VS 2003 I keep wishing I could browse a list of interfaces which come
pre-defined with the framework (IEnumerable, etc.), preferably with hints as to
what particular interfaces are intended for and how they get used by various
classes in the framework. Documentation of these MS-provided i... more >>
|