all groups > c# > january 2006 > threads for tuesday january 10
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
Registering Dlls with visual studio installer
Posted by Todd at 1/10/2006 11:03:40 PM
Hi Guys,
Ive hit a problem that I just can't find a solution to... Ive created an
application that downloads images from a digital camera. The application is
written in C# and uses the WIA library to handle the image transfer.
Im creating an MSI file using visual studio and including the w... more >>
Question on events
Posted by CobraStrikes NO[at]SPAM al.com at 1/10/2006 11:02:12 PM
Hi All,
when you chain an event eg tb.Enter+= ; Is it possible to ensure I will get the first bite at the event
and also is it possible to refuse access to this event lower down the chain.
hope my question makes sense.
thank you.
... more >>
run exe from button
Posted by rune exe from button at 1/10/2006 10:48:01 PM
i was wondering if there is someone that can tell me how i can use the
numbers from 0-9 on the right side of the keyboard to run any exe file.
thx in advance for the help... more >>
VB to C# converter
Posted by craigkenisston NO[at]SPAM hotmail.com at 1/10/2006 9:54:36 PM
Hi,
I'm looking for a tool that converts VB to C#.
I've take a look to a couple, though, they didn't totally conviced me.
Any prize/complain about these kind of tools is welcome.
... more >>
Reading xmlfile in project
Posted by Steven S at 1/10/2006 9:32:32 PM
I have a Web Service which reads a xml file.
If I place it in the same direcectory where source code is
how should I then read it without using physical directory adress like
"c:\inetpub\wwwroot\mywebservive" or like "c:\xmlfiles\xmlfile".
How to get a relative reference to file in C#?
Che... more >>
Synchronization
Posted by rakesh_nits at 1/10/2006 9:00:52 PM
Hi All,
I am having a function which can be called from different independent
threads
simultaneously.Inside this i am having a hashtable.what each thread
will do that it will check whether the hashtable contains a particular
key if not then it will make an entry in the hashtable with that key o... more >>
Obtaining size of struct array-type member from fixed pack=1 struct?
Posted by taskswap NO[at]SPAM gmail.com at 1/10/2006 6:09:36 PM
I'm converting an application that relies heavily on a binary network
protocol. Within this protocol are a lot of byte[] arrays of character
data, like:
[StructLayout(LayoutKind.Sequential, Pack=1)]
public unsafe struct MsgAddEntry {
public byte MsgType;
public uint T... more >>
Removing elements from a typed dataset
Posted by Ayoa at 1/10/2006 5:58:38 PM
I have the following code whose purpose is to take 2 typed datasets (of type
DSAccounts ) & remove all elements of one from the other. and return what
is left.
However I am getting the error message "The given datarow is not in the
current DataRowCollection" when the "dtAll.tblAccounts.Row... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
DataSet DateTime Format
Posted by INeedADip at 1/10/2006 5:51:55 PM
I have seen this problem posted all over, but have never ran across a
solution....
I am serializing my dataset and they look like this:
<NewDataSet>
<xs:schema id="NewDataSet" xmlns=""
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
... more >>
Open Form
Posted by Wenzee at 1/10/2006 5:28:20 PM
Hi,
I am learning visual C#.Net.I have 2 forms Form1 and Form2.
On a command button click i want to call form2.
How can i do this.?
Thanx
from
Doller
... more >>
Error downloading excel file
Posted by Kevin R. at 1/10/2006 5:05:24 PM
Greetings,
I have the following code that attempts to download an excel file:
System.Web.HttpContext.Current.Response.ContentType =
"application/vnd.ms-excel";
System.Web.HttpContext.Current.Response.AddHeader("Content-Disposition",
"attachment; filename=\"x.xls\"");
System.Web.HttpCon... more >>
HttpWebRequests and logging into websites
Posted by beaker at 1/10/2006 5:02:49 PM
Hello,
I'm trying to write an app which will periodically log in to a game
website so I can check for changes to some of my player info. The code
I've come up with so far is below, and, as you might have guessed,
doesn't quite work - what I get back is the raw HTML of the login page,
... more >>
Name Value pair in Combolist
Posted by RSH at 1/10/2006 4:55:32 PM
I need to use a form element to display a list of users. I would like to
store their ID "behind the scenes" so when the user selects a name the Event
passes their ID.
I can't find anything about how to set a Name/Value pair of a ComboList. Is
this the wrong tool for the job? Or how do ... more >>
Tell when a ShockWave file has ended....
Posted by UJ at 1/10/2006 4:45:09 PM
Is there any way with the Shockwave object to tell when a SWF file has
finished playing? It would be nice if there was an event like in the Media
Player that is called when the state changes.
TIA - Jeff.
... more >>
Hint about tabs
Posted by Trond Hoiberg at 1/10/2006 4:21:50 PM
I am making a new application in C# (Windows application) and it will
require a number of forms. I then started to think that i should use panels
and not forms so that i could keep all within one form. This is a solution
that might work. I also tested a litte around MDI as an alternativ.
Ta... more >>
Deploying a 1.1 app
Posted by Doug Handler at 1/10/2006 4:05:34 PM
Hi,
Does vs2003 have some sort of distribution capability like vs2005
(ClickOnce)? If not, what's the best way (cheapest too) to create an
install packages for a 1.1 app?
dh
... more >>
Wrting inline RTF to a RichTextBox
Posted by RSH at 1/10/2006 3:10:09 PM
Okay I give...I found several tutorials on how to write formatted RTF to a
RichTextBox control. BUT for some reason the box remains blank...nothing.
What am I doing wrong here??
richTextBox1.Rtf +=
@"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0
Arial;}}\view... more >>
Advice on best way to handle object disposal...
Posted by Robert Vasquez at 1/10/2006 2:39:03 PM
I have three classes. One (Class ObjectC) and two other classes (Class1 and
Class2) that will hold instances of the ObjectC class. I would like to
transfer an instance of OjectC from Class1 into Class2, while making sure
that no resource leak occurs. Is the following the best way to hanlde ... more >>
Disabled control background color property
Posted by RSH at 1/10/2006 2:15:43 PM
This might be a dumb question but I have searched everywhere...I have a form
which uses a custom background color. I have set the control's backgrounds
to transparent, which works great. But when i disable the controls, they
all have the standard beige Windows background, is there a way to... more >>
Search one List<t> for a sub List<t>
Posted by Andrew Robinson at 1/10/2006 2:03:59 PM
I have two List<t>. I need to search ListA to see if it contains ListB
So:
ListA { 1, 2, 3, 4, 5, 6, 7, 8, 9 }
Searching ListA with { 4, 5, 6 } would return true and an index of 3.
Searching ListA with { 4, 6, 5 } would return false and or an index of -1.
Hope my pseudo coding is clear?... more >>
object to a byte[]
Posted by Pohihihi at 1/10/2006 1:43:39 PM
How can I change object returned from database to a byte array
e.g.
byte[] b =3D row["FullName"];
also
how can I save a byte[] to database row?
Thank you,
Po
--=20
----------------------------------------------------------------------
This is an unmonitored email account... more >>
C# slow form COMInterop VBScript
Posted by Drwtsn32 at 1/10/2006 1:28:02 PM
Hi Guys,
I'm ripping off all of my hair soon ;-)
I'm trying to do a very simple C# form accessible from COM client like
VBScript.
I would like to display the form and update the form during the
intepretation of the vbscript. Does anyone know of any good example that
could point me to ... more >>
Installing VS Express w/out SP2
Posted by chhanson at 1/10/2006 1:17:02 PM
My work for whatever security reasons won't allow me to install SP2 and I was
wondering if there was a work around for installing the new VS w/out SP2.
Any help would be greatly appreciated! Thank you!... more >>
Value / primitive type constraints on generics
Posted by Dave Booker at 1/10/2006 12:48:03 PM
Is it possible to constrain a generic to be a value or primitive type?
(Any kludges/workarounds welcome if the immediate answer is no....)... more >>
String Format padding with zeros
Posted by RSH at 1/10/2006 12:37:15 PM
I have strings that are being converted that need to be eight characters
long. The values are coming in as anywhere between 1 and 8 characters long.
I need to pad the strings with zeros to make all IDs 8 characters long:
Example
Input number Need
1 00000001
121 ... more >>
DragDrop event vs. OnDragDrop(.) - what's the diff?
Posted by DrBonzo at 1/10/2006 12:20:04 PM
Is there any effective difference between doing something in the DragDrop
event handler and doing it in the OnDragDrop(.) method of a control? I'm
coming from a MFC background and am having a hard time comprehending the
difference.
Thanks for your explanations . . .
... more >>
Can it possible redefine class with subclass when inherit base class with sub class?
Posted by ABC at 1/10/2006 12:17:06 PM
I want define a base class as:
class abc
{
class cde
{
}
}
when I inhert abc class,
class ijk : abc
{
class cde
{
int io = 5; // Added
int xy = 8; // Added
}
}
If it possible, how should I to write this class and inherit class? ab... more >>
As I can determining if string can be turned to a numerico value?
Posted by Daniel R. Rossnagel at 1/10/2006 12:09:55 PM
As I can determining if string can be turned to a numerico value?, since to
contain alfanumeric data it returns an error to me.
as I can avoid the following error?
String str="123";
int valInt = Convert.ToInt32(str); //OK
String str="StringXX"
int valInt = Convert.ToInt32(str); //ERROR
... more >>
Notepad
Posted by cql90 at 1/10/2006 11:50:51 AM
Hi All,
I did use the block of code below to open a notepad, However, I would like
to insert some data which I did collect in the runtime into the notepad
before it show. How can I do it? Any help is greatly appreciated. Thanks you
very much in advance...
Kate
System.Diagnostics.Pro... more >>
Cannot widen from target type to primitive type Error
Posted by Vishal Somaiya at 1/10/2006 11:16:50 AM
Can some one please explain what this means?
'Cannot widen from target type to primitive type.'
Regards
Vish
... more >>
Resource Content
Posted by cql90 at 1/10/2006 11:13:43 AM
Hi All,
I have created a folder call Resource within my project, I have added a XML
file into the resource folder, and I set the BuildAction property of the XML
file to "Embedded Resource". How can I retrieve its content in the runtime?
Any help is deeply appreciated. Thanks you very much i... more >>
Passing a class containing reference type fields as a parameter problem.
Posted by Ross McLean at 1/10/2006 10:44:26 AM
Hi all,
I've been teaching myself C# for a new project at work. I have a bit of
a background in c++ and java but never been what you could call a guru.
I'm having some strange things happening when I pass a class as a
parameter to a Windows Form. Basically, I have a class that has several
... more >>
dll call by passing XMLDocument by reference
Posted by saish at 1/10/2006 10:07:50 AM
Hello
Need your help, I have a C++ win32 dll which takes xml document type by
reference. I need to call this dll from c# .net.
I tried using DllImport, but dll funtion when call does not respond.
I tried calling similar dll for a function which take integer by
refernce. It works ok in this ca... more >>
Refresh BindingSource .net 2005
Posted by Bryan Shaw at 1/10/2006 9:55:02 AM
I have a Windows app I am developing in VS .NET 2005 that is required to
periodically look at the data in a table in an MS SQL 2000 database.
The data is being changed from an external stored procedure. All I want
the app to do is refresh the data bound controls on a timer tick.
I am usin... more >>
Syntax question enumerating Active Directory Group Properties
Posted by AdamKadmon at 1/10/2006 9:43:08 AM
I already tried posting this yesterday and it didn't post...
In a nutshell, I have a semi-functional app that does a few things
including searching the entire Active Directory for Groups and putting
the values of the CN, Description, and Info fields into a database.
The issue that I am experie... more >>
MCAD/MCSD Question
Posted by Opettaja at 1/10/2006 9:36:57 AM
I am wanting to get my MCAD and MCSD certifications and just had a
couple questions. I am fairly new to C# and started learning with .NET
2.0 so one of my questions is, are the test covering .NET 2.0 or 1.1?
If they cover 1.1 is it very different from 2.0?
And will the Microsoft .NET Core Re... more >>
List Control Binding requires two data sources
Posted by emzyme20 NO[at]SPAM hotmail.com at 1/10/2006 8:44:33 AM
Hi,
I am trying to populate a list control that is bound to a data table
but the display member needs to come from a different data table.
I have two list controls in C#, one displaying available categories and
one displaying selected categories. In the database these are
represented in two... more >>
Dynamically linking to webservice or COM DLL
Posted by lavu at 1/10/2006 8:38:49 AM
I have a C# client application that uses a COM DLL(written in C++) or
a webservice (the
webservice is the same COM DLL wrapped up as a webservice). The client
can dynamically (based on form input) select to use the webservice or
the DLL. The front end interface and the implementaion code is the... more >>
Environment.Machinename secutiry exception
Posted by tmoffett at 1/10/2006 8:13:46 AM
I am very new to the language so please pardon my ignorance.
I am writing a small console application to gather hardware inventory
information. When I run the application locally all works well. It
gathers the needed information and writes that info to a remote SQL
server.
If I put the fi... more >>
Best way to show images on run time on form
Posted by goRide at 1/10/2006 8:04:38 AM
Hi,
you all surely came along one of the new image managers like picasa or
adobe photo elements.
im tring to build something very simple and learn some new techniques
from this applications.
What will be the best way to display picture on form on run time.
I thought i can use panel and add pic... more >>
Network share permissions with WMI
Posted by mail NO[at]SPAM rensoft.net at 1/10/2006 7:54:23 AM
Hi guys,
So far I've spent about a week hacking away at this code, and I just
can't get it to add an ACE to a the DACL for a network share using WMI.
Just to set the scene, I'm trying to add an ACL from machine A
(workstation; Saturn) and set it to a UNC path
(\\Mercury\Inetpub\Websites\Loc... more >>
Big thank you too you Mattias Sjögren [C# MVP]
Posted by SpotNet at 1/10/2006 7:51:59 AM
Hello Mattias,
For your replies to my posting "OFNOTIY Struct from lParam pointer" posted
on, Saturday, 7 January 2006 23:10. I very much like to say thank you very
much, not only did it help me out considerably but also learnt a lot from
your replies. Initially your help was the resoluti... more >>
Installation Problems with COM Interop
Posted by pagates at 1/10/2006 7:08:07 AM
Hello All,
I have created a C# project that sets "Register for COM Interop" to true,
and sets the ProgId and Guid attributes for the class. I then use this
control inside VB6.
This all works correctly on my development machine (oh no, one of those!),
creating a DLL and a tlb on each com... more >>
Calling ancestor method
Posted by Rik Brooks at 1/10/2006 6:56:03 AM
I know that you can do this, I can't find the answer. I try the following code
((company) base).newCompany("ACME", "vendor");
Of course company is the ancestor and newCompany is a public method. The
compiler tells me that "use of keyword 'base' not valid in this context"
What am I missing... more >>
How to monitor file is executed by user or program in window
Posted by spentun at 1/10/2006 6:00:05 AM
How can I moitor file which is executed by user or program in window.
I need to write a code to monitor file. When user clicks the file(.exe) or
is called by program, the name of file will be return to a program.
so, excatly, I need to know the name of the executable file that is executed.
orig... more >>
Cannot randomize from a class
Posted by Ant at 1/10/2006 3:58:01 AM
Hi, I'm using the Random class to return 5 random numbers which then are
added to a string.
When I do it in a controls event, such as button_ click, the numbers are
random as expected, but when I call the random function as a method of a
class, all the numbers are the same for each call to ... more >>
inexplicable problem with GroupBox(es)
Posted by johnmmcparland NO[at]SPAM googlemail.com at 1/10/2006 1:58:24 AM
Hi all,
my program is trying to add group boxes with radio buttons at run time.
While at one point it was able to draw the group boxes without the
radio buttons, now it encounters problems just getting the radiobuttons
out of the group box.
/// area where radio buttons added to groupbox
... more >>
write files to cd/dvd
Posted by alexmaster_2004 at 1/10/2006 1:46:01 AM
Hi
i'm developing a tool to automate the backup operation of my files.
and i want to make this tool to be able to write the files to cd/dvd.
i don't know how i can do this from c#.so i hope anyone could help.i use
..net 1.1.
Thanks in advance ... more >>
Question about Assembly.Load()
Posted by iamcs1983 NO[at]SPAM gmail.com at 1/10/2006 1:30:28 AM
Can I load a assembly from memory by Assembly.Load(string) ?
... more >>
|