all groups > c# > october 2006 > threads for thursday october 19
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
sql server 2005, visual studio 2005, Debug database?
Posted by Iwan Petrow at 10/19/2006 10:52:43 PM
Hi,
I have one database for which I have developed windows applications. In
the same time I want to continue to develop other applications or
update old ones. For this I need a database different from the previous
for debug. But after I change the debug database I have to synchronize
the two ... more >>
how do I add columns from other tables to a DataGrid?
Posted by MrNobody at 10/19/2006 8:50:02 PM
I have one main table which references several other lookup tables, like
think of on the main table for example a category_id column with a categories
table which maps that id to a string value.
I used the .NET IDE to make my dataGrid and all those data adapters and so
on and it works grea... more >>
List devices on computer (newbie)
Posted by Dave at 10/19/2006 7:01:02 PM
I would to list all devices on computer using IrDAHints Enumeration and I
need to use the Assembly: System.Net.IrDA (in system.net.irda.dll) but when
I try to include this with the 'using' command I get the error that I may be
missing an assembly reference. Additionally, when I try to add a ... more >>
sql insert into MS Access
Posted by MrNobody at 10/19/2006 6:29:01 PM
What's the easiest way to make an insert using Microsoft.Jet.OLEDB.4.0
OleDbConnection connection to a MS Access data base file?
I'm finding examples out on the net that have like 1,000 line of code to
perform what I would imagine should be a very simple task.
I've mostly done DB code in J... more >>
ListView how to change text
Posted by arcade2084 NO[at]SPAM gmail.com at 10/19/2006 6:20:50 PM
I need to change the text of my listview item (not a subitem) the
control will not have the current focus. I have tried the following
without any luck:
ListView1.Items[0].Text = "XXXX";
This does not work - please help!
Thanks,
Chris
... more >>
Reading from an excel document
Posted by Dan Aldean at 10/19/2006 6:04:52 PM
I would like to read cells from an excel document. Does anyone have a smple
of code for that please?
Thanks
... more >>
Updating textbox from BackgroundWorker?
Posted by planetthoughtful at 10/19/2006 4:45:20 PM
Hi All,
I have a Windows Form app that does some work in a BackgroundWorker.
I'd like to append information to a textbox from within the
BackgroundWorker but it keeps telling me that I can't do this across
threads.
Can anyone give me some help in figuring out how (or if) this can be
done? ... more >>
close existing port using Ports.SerialPort component
Posted by ricolee99 NO[at]SPAM gmail.com at 10/19/2006 3:56:34 PM
Hi Everyone,
I'm using the System.IO.Ports.SerialPort component to attempt to kill
an existing component opened by another application.
I use the following code:
SerialPort serialPort = new SerialPort ("COM1");
if(serialPort.IsOpen)
{
serialPort.Close();
}
I cannot for the l... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
would you ever add a console app to the GAC?
Posted by D at 10/19/2006 3:04:03 PM
I was toying around with assemblies, signing and adding them to the GAC. I
was mistakenly thinking that if I added a console app to the GAC it could be
run from anywhere (anywhere meaning as if the path to the exe was added to
your environment variables).
It then occurred to me that in orde... more >>
Access Parent Method from user web control
Posted by Mo at 10/19/2006 2:29:32 PM
Hi,
I am not sure if this is the right group but I have a web control
within a page and I am trying to access a method from the control. My
master page is set as :
public partial class _Default : System.Web.UI.Page
{
private string Cart = "";
public string GetCart
{
... more >>
is this possible? an indexed property to have sub-properties?
Posted by Michael Matteson at 10/19/2006 2:20:55 PM
I have two classes. Class
A and Class B. I give class A 5 properties
int prop1(){}
int prop2(){}
int prop3(){}
int prop4(){}
classB prop5(){}
what i would like to do is to create a 5th property and make its type equal
to ClassB. but i would also like to index this property too. BTW Class B... more >>
Translating old C to C#
Posted by Harvey Triana at 10/19/2006 2:16:26 PM
How to translate a old (dos) C application to C# ...
Suggestions,
<Harvey Triana />
... more >>
.NET Threads
Posted by k.mellor NO[at]SPAM iee.org at 10/19/2006 1:31:56 PM
Hi all,
I know MsDN is good, but I love a good book. Anyone know any good
boks on C#/.NET threading/concurreny?
Kev
... more >>
how to set printername for Reportviewer from code (VS2005)?
Posted by Rich at 10/19/2006 1:21:01 PM
Hello,
I need to print a report from the VS2005 Reportviewer control. My problem
is that I need to print to a tractor feed (dotmatix like) printer that is not
the default printer - for printing mailing labels (thousands of them). I can
set all the settings from the pagelayout button of th... more >>
How to add web spaces at left and right without affecting contents
Posted by dale zhang at 10/19/2006 1:12:02 PM
Not sure if here is the right place to ask but I have trouble to access
forums.asp.net. I am using C# in VWD.
Goal:
I want to add the left and right spaces like http://www.dotnetnuke.com/. if
the user squeezes the web browser, the web spaces will be gone first without
affecting the conten... more >>
Add to elements of a string array
Posted by Colin Williams at 10/19/2006 12:45:22 PM
Hi
I have a file list box with which i am passing the selected items to a
string array (using copyTo), however i also need to pass the path of
the FLB with each string in the array. Is it possible to add this to
each element of the array or is there another approach i could take.
Thanks
Co... more >>
Interface Inheritance
Posted by Sean Chambers at 10/19/2006 12:31:06 PM
Not sure if this is the correct way to go about this, but it seems
correct. I'm trying to eliminate dependencies through interfaces and
want to minimize casting as much as possible, as a result I have
interface inheritance setup like so
Here's my class setup:
BlogPost : IBlogPost
PodcastPo... more >>
Can't 'CoInitializeSecurity(...)' - worked in VS '03, not in VS '0
Posted by DrBonzo at 10/19/2006 12:24:01 PM
In order to get events back from a DCOM server (an embedded device running
Windows CE), I seem to have to turn off security for my process. To do this,
I'm saying:
int ret = CoInitializeSecurity(IntPtr.Zero, -1, IntPtr.Zero, IntPtr.Zero, 1,
3, IntPtr.Zero, 0, IntPtr.Zero);
in the constr... more >>
Embedded XML File
Posted by Tim at 10/19/2006 11:21:57 AM
Hi,
I have a XML file the I use as config file for a libary. Is there a way to
use reflection to access the file using XMLReader?
Thanks
... more >>
Transparent GIF using Bitmap.Save()
Posted by Dale at 10/19/2006 10:58:02 AM
When I create a System.Drawing.Bitmap and save it as ImageType.GIF, how can I
set the transparency so that the background is transparent.
In my application, the Bitmap that I am working with has several transparent
GIFs drawn on it and the transparency of each of them works within the
bit... more >>
what is abstract class and abstract method
Posted by N.RATNAKAR at 10/19/2006 10:38:08 AM
hai,
what is abstract class and abstract method... more >>
GUI Invoke stalls thread
Posted by k.mellor NO[at]SPAM iee.org at 10/19/2006 10:05:01 AM
Hi,
I hope someone can help. I have written a simple form to demonstrate
my problem/question. The code follows.
The form starts a thread, which using delegates updates a label (Every
second adds another dot to the label). This works great. However,
when I put the GUI thread to sleep (Th... more >>
Propose new feuture for csharp
Posted by sasha at 10/19/2006 9:39:55 AM
Hi!
Don't know if this forum read somebody from MS team. I suppose yes, so
propose new language future wich i need very much :-)
I think it would be nice to have in C# something like macros, but more
powerfull. Here is example:
// code frame
public codeframe MyCodeFrame
{
initializatio... more >>
C# COM addin - please help
Posted by news.microsoft.com at 10/19/2006 9:38:03 AM
Hello,
I wrote a simple addin for Excel using C#. It works great on my development
machine.
However, when I installed the package to another machine, the COM addin does
not show when open excel application.
Question: What do I need to do to resolve this problem?
Thanks in advance!
DH
... more >>
Change screen resolutions quickly.
Posted by UJ at 10/19/2006 9:31:33 AM
I have a 1600x1200 screen at my desk which I love. Problem is when my boss
comes in and I want to show him something - he has to squint and get real
close to the screen. So in an ideal world, I would switch it over to
1240x1080 when he comes in. I know I can go through the screen properties
... more >>
3rd Party Tools
Posted by Irvin McCoy at 10/19/2006 9:19:01 AM
I'm researching different component suites to use in VS 2005 and SQL 2005.
I'm a beginner @ C# and ASP, so I'm looking for something stable, fast, and
easy to learn. I've found 2 that I think are good, Syncfusion's Essential
Studio and ComponentOne's Studio Enterprise. Has anyone used either o... more >>
Multiple Delimiter in a single string! How to count those as one?
Posted by pengb at 10/19/2006 8:36:03 AM
Hello All:
A pretty frustrating question to ask! I use the string [] something
= stringx.split (delimiter.tochararray()) mathod to delimit a long
string by space! So supposely
if the stringx is :
" something something1 something2 " I should get string [0] =
something, string[1] = something1... more >>
Adding line breaks in label
Posted by lochuanjiang NO[at]SPAM gmail.com at 10/19/2006 8:20:54 AM
Hi all,
I have written a program and the label.text is retrieve from the
database.
However the length of the string could be very long and i would wish to
have line breaks in certain portion
I tried manipulating the text in the database with \r\n but this does
not work.
Are there anyway... more >>
Storing Cookies from C#.NET Application
Posted by Jono at 10/19/2006 7:54:39 AM
Hi Everyone,
Most tutorials I've seen address cookies from the server's perspective,
assuming that the client (usually a browser like Internet Explorer)
will manage the persistence. I am faced with writing a C#.NET client
that uses a web reference to a SOAP web service, and I need to persist
th... more >>
write a C# code inside a javascript code, before body tag
Posted by Daniel Andrade at 10/19/2006 7:27:17 AM
Hello,
How can I write a C# code inside a javascript code, before body tag, as
we wrote in classic asp?
(I have a code file separated with a lot of C# code)
I would like anything like this:
<head runat="server">
<style type="text/css">
<%
in... more >>
C# v2.0
Posted by coltrane at 10/19/2006 6:27:27 AM
I currently have VS V7.1 which uses the 1.1 .Net Framework.
Do I need to upgrade my VS If I wanted to use the 2.0 framework?
I need to use C# 2.0
thanks for the feedback
john
... more >>
How to indicate an XML element variable type?
Posted by Sharon at 10/19/2006 6:20:03 AM
I need to write an XML document, that other users can work with to change
values and to add elements.
My problem is that for each element that me or any other user will add,
should have some kind of attribute (or any other solution...) to indicate its
type, this type is a variable type to b... more >>
Retrieving lead record from CRM 3.0
Posted by rfinch at 10/19/2006 3:42:01 AM
Very new to this but using the MS working with dynamics CRM 3.0 book to run
web application to retrieve lead records from CRM 3.0.
Have followed the book instructions on page 380-382.
But am getting the following in ie 7.
Compiler Error Message: CS0234: The type or namespace name 'CrmSdk' d... more >>
How to register a service on a remote host with C#?
Posted by CAIBird at 10/19/2006 2:40:02 AM
hi,
If we want to register a service on a reomte host with C++, we call API
OpenSCManager/CreateService to do the job. But with C#, how to do it? Are
there any relevant classes to help?
Thanks in advance
-Zhilin... more >>
up cast to base
Posted by Jeff.Boeker NO[at]SPAM gmail.com at 10/19/2006 1:49:34 AM
Hello,
I have a base class that is serializable and a derived class that is
not. I want to pass the base class object to an external function that
requires a serializable object. How can I cleanly create a new
instance of the base class that copies the base class from the derived
object. I... more >>
What is the equivalent of API WNetAddConnection2 in C#?
Posted by CAIBird at 10/19/2006 1:40:03 AM
Hi,
We know that windows API WNetAddConnection2 can make a connection to a
network resource. but how to do this job in C#? i'm wondering about it.
Thanks
-Zhilin... more >>
Conversion
Posted by Rain at 10/19/2006 12:49:01 AM
does anyone know how to convert from Int16 or short to Hexadecimal and vise
versa?... more >>
block diagram of C# project
Posted by GadyC at 10/19/2006 12:43:01 AM
Does anybody know about some project analyzer that displays modules and
relations as a block diagram?
GadyC
... more >>
how to create online shopping website.. ??
Posted by Jigar A. Thakor at 10/19/2006 12:07:51 AM
how to create online shopping website.. ?? any architecture ??
How to design any guidlines ? and what is verisign ?? other secure
protection needed ??
i want to develop in C#,Asp.net,Sql Server...
... more >>
Static methods ?
Posted by chandu at 10/19/2006 12:00:00 AM
hello,
i want to know usage of static methods in a class.
is it advantageous or disadvantage to use more static methods in a class.
thank u
... more >>
Remove network connection
Posted by Jonas at 10/19/2006 12:00:00 AM
I want to remove a remote access connection when a user logs out. The
connection is a dial up isdn adapter.
I can access the adapter via WMI namespace \root\microsoft\homenet, but i
don´t find any way to delete it.
Is it possible to do this or do i need to some pinvoke on rasapi32?
... more >>
Is there a ProcessMessages in .net?
Posted by Rob Pollard at 10/19/2006 12:00:00 AM
Hi All,
Part of my new app does some quite intensive calculations. In Delphi (my
previous language) one could call Application.ProcessMessages; in the
calculation loop to make sure that the system was being given enough time to
process it's own messages (makes the app and desktop much more ... more >>
Pointer, is this ok?
Posted by Michael C at 10/19/2006 12:00:00 AM
I've got a pointer to a byte and want to set the byte it points to to zero
as well as the three bytes after. I could do this
dstPtr[0] = 0;
dstPtr[1] = 0;
dstPtr[2] = 0;
dstPtr[3] = 0;
but can convert it to an int* first and just do
*(int*)dstPtr = 0;
is this correct and is it good ... more >>
Scrolling!
Posted by Rob Pollard at 10/19/2006 12:00:00 AM
Hi All,
I am using the flow control (can't remember its full name), to display a
few dynamically created controls based on the tags the user has added to my
system. This works fine, except when a user scrolls this control area (when
there are a lot of controls) the screen update is terrible... more >>
Reading the contents of a page through its URL
Posted by Kuldeep at 10/19/2006 12:00:00 AM
Hi All,
I am trying to read the contents of a page through its URL.
My code snippet is as follows:
public void mtdGetPageDataHWR()
{
HttpWebRequest objRequ =
(HttpWebRequest)WebRequest.Create("http://www.microsoft.com");
HttpWebResponse objResp = (HttpWebResponse)objRequ.GetResponse();... more >>
Compressing several files to the same zip file output!
Posted by Jens Jensen at 10/19/2006 12:00:00 AM
Hello,
I use the code below to zip files to a single .zip destination. I get the
expected result when i work on my developement machine (WinXP sp.2).
When i deploy the web application which host the code on win2k3 , it only
works for a single file.
I gave the modify right to "Noetwork ... more >>
|