all groups > c# > june 2007 > threads for wednesday june 13
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
Messenger-esque windows service: How do major messengers do it?
Posted by Alex at 6/13/2007 11:39:49 PM
I am fairly new to C# development. I have read a number of articles
about developing messenger applications, but they all assume that it
is operating internally and that the IP address of the client is
known. I would like to develop a messenger-esque service that will
communicate live database i... more >>
enable/disable buttons based on ListView selection
Posted by Brandon McCombs at 6/13/2007 11:09:15 PM
Hello,
I have a form that contains a listview on the left side and a column of
buttons on the right side. Only some of the buttons do I want enabled
all the time. The other buttons should be enabled only if something is
selected in the listview. That part specifically works but not very
... more >>
Getting Error Using Report Viewer(SSRS) with Ajax
Posted by Gyanendra at 6/13/2007 10:49:01 PM
I am using Ajax control(Update Panel) in my web page(ASP.Net 2.0) and putting
Report Viewer(Sql Server Reporting Services 2005) Control in it.
When I am displaying any report it is coming ,But Report Viewer Toolbar is
not working Ex Print Command Button and if I try to move to next page I... more >>
MDIParent + NullReferenceException: Object reference not set to an instance of an object
Posted by Sarang at 6/13/2007 10:09:27 PM
Hi,
I have this code that makes the form as an MDIChild:
chartWindowController.GetForm().MdiParent =
_expertTradeMainFrm;
chartWindowController.GetForm().WindowState
=FormWindowState.Normal;
chartWindowController.GetForm().Show();
The above code sni... more >>
Reading csv file into datatable.
Posted by archana at 6/13/2007 9:52:36 PM
Hi all,
I want to read csv file into datatable. Is there any csv reader and
writer available for freeware.
I am reading csv file using schema.ini file. I don't want this
dependency. The problem while reading csv is that datatype depend on
first 8 or 16 rows depend in value set in registr... more >>
Create a text file with tab delimiters
Posted by shantanu at 6/13/2007 9:45:16 PM
Hi all
I have two coloumns in a excel worksheet where the first coloumn is a
header and the second coloumn is a corresponding value. Also i have a
text file That contains header and values in a tabdelimited format.
Now the requirement is like I have to compare the Headers in excel
with the h... more >>
fill three combo boxes
Posted by Doug at 6/13/2007 9:22:30 PM
Hi
I have a list of about 50 text items (strings) that I would like to add to
about 5 combo boxes at various times depending on if a user clicks on the OK
button.
I have tried to code an example such as:
String ArrayList arr = new arr {"cat","dog","pig"};
this.cbo1.Items.Add(arr); bu... more >>
upload a file through a remote web page
Posted by shantanu at 6/13/2007 9:20:28 PM
Dear All
I have a very urgent requirement if somebody can
help!!!!!!!!!!!!!!!!!!!!!!
i have a requirement to upload a file through a remote web page.
Speaking more clearly i have a excel addin that will pick some values
from the cells and create a text file, after that using a web page url... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Easy (?!) regular expression -- find line breaks
Posted by Peter Duniho at 6/13/2007 8:55:10 PM
So, I'm trying to learn how the Regex class works, and I've been trying to
use it to do what I think ought to be simple things. Except I can't
figure out how to do everything I want. :(
If I want to take a string and break it into individual lines based on a
specific pattern ("\r\n" in... more >>
timespan issue
Posted by parez at 6/13/2007 7:42:55 PM
Hi all,
I have a TimeSpan which i get my subtracing a date from a date.
TimeSpan ts (Dim ts As TimeSpan)
ts = parsedDate.Subtract(DateTime.Now)
i get different values for Hours and TotalHours. In my case i was
geting -15 and -39.
The difference between two is 24 (i know it is obvious).... more >>
Process synchronisation
Posted by Lubomir at 6/13/2007 7:25:00 PM
Hi,
I have several processes P1...Pn and every process is running the thread T1.
The proces P1 signales the named event E. I want that when the event E is
signaled, every thread T1 in processes P1..Pn will wake up and invoke a
delegate. Than this thread should wait for the next time, when ... more >>
Prevent form from closing
Posted by sravan_reddy001 at 6/13/2007 6:57:15 PM
i want to prevent a form from closing..
to do this i want to handle the formClosing or FormClosed events.
from here i want to prevent the form from closing.
New instance of same form should not be used.
is there any way to do this?
is it posiible to do the same thing with anycode?
[i... more >>
Web link in a windows form
Posted by Charles Zhang at 6/13/2007 5:28:28 PM
I have a windows form created in C#, there is web link inside it. I
would like the default browser being launched if the link is clicked on.
Does anyone know the easiest way to do so?
Thanks
Charles Zhang... more >>
Planning on going with dynamic SQL, but...
Posted by Ronald S. Cook at 6/13/2007 5:01:26 PM
I've read a few posts on the stored procedure vs dynamic sql debate. I ran
a few performance test for myself and it appears to be a wash.
Given that, I'm leaning toward dynamic sql mostly because it would mean one
fewer place to have things.
But, before we go that route we wanted to ask t... more >>
C# handling Form events
Posted by sravan_reddy001 at 6/13/2007 4:58:51 PM
how can we handle the FormClosed and FormClosing events in C#
i am able find those events in VB.NET application Code part.(Form1
Events)
i don't find that in the C3 how can i handle those events
... more >>
Can a Forms Application trace to Console.Out?
Posted by james at 6/13/2007 4:56:01 PM
Hi Guys,
Does anyone know a way to view tracing from a Forms Application in
real time? Currently our application traces to log files, but these
are cumbersome and have to be manually refreshed. For Console
applications we simple trace to Console.Out. Any help is appreciated.
Thanks,
Jam... more >>
this.Context.Cache and Web Services: value not persisted between two subsequent calls.
Posted by BLUE at 6/13/2007 4:46:14 PM
this.Context.Cache.Insert["lastUpdateDateTime"] = lastUpdateDateTime;
When I retrieve lastUpdateDateTime is always null if the web method call is
subsequent to the one which set it.
Why???
Thanks,
Luigi.
... more >>
Obtaining Server' Ethernet Card Mac Address
Posted by Peggy at 6/13/2007 4:40:28 PM
Hello,
I have a web application running on IIS,
What I wanna do is to obtain server's ethernet card's mac address in order
to use this address for licensing issues
I have developed my web app on
vs.net 2005 +
sql server 2005 +
SBS Server +
IIS 6.0 +
My web app can obtain this add... more >>
Can I insert an image any location on RichTextBox or PictureBox ?
Posted by Asking at 6/13/2007 4:08:45 PM
Hi all,
I want to insert an image any location (x, y) on RichTextBox or PictureBox
(or any on component supported drawing too).
Can I do this? or How can I do this, please show me a way ?
Thank you
E.Miman
... more >>
Combine bitmaps
Posted by John at 6/13/2007 4:00:00 PM
Hi,
I need to combine several bitmaps together to form a single bitmap. Can
anyone show me some similar sample code?
Thanks.
AJ... more >>
RegEx to return 1 or 0 whether the tested value is empty
Posted by Robson Siqueira at 6/13/2007 3:13:26 PM
Guys,
I have a need of replacing the content of the tested value with 1 or 0,
depending if the value has content or not. 1 for value, 0 for empty. I would
like to accomplish this thru a regular expression. Does somebody have an
idea on how to do this?
Regards,
Robson Siqueira
... more >>
AppDomain isolation when having multiple AppDomain - How?
Posted by José Joye at 6/13/2007 3:01:43 PM
I'm currently trying to load an instance of a given class within a secondary
appDomain and access it from within my main AppDomain.
Everything is fine and working if the class in the second AppDomain catches
any potential exception.
However, if I throw an error within a method that is implemen... more >>
gridview sorting
Posted by bbdobuddy at 6/13/2007 2:09:00 PM
I have a question that maybe somebody can help me out.
I have a gridview that is bound to a sqltable, and I have created two
template columns.
I am having problems getting the sorting to work. I turned on the Allow
Sorting property but when I click one of the columns that is bound, it wil... more >>
Filling a Listbox on a User Control
Posted by markr1000 NO[at]SPAM earthlink.net at 6/13/2007 1:25:54 PM
I must have looked searched in 500+ places that showed up in Google
searchs, but not one has an example of what I want to do.
I have a Listbox on a User Control because I want to control the
visibility and/or presence of the Listbox and associated label, and I
want to encapsulate some of assoc... more >>
Create something akin to VS.NET Form Designer
Posted by dmeglio at 6/13/2007 1:12:51 PM
I was wondering if anyone knew of any resources that would help me
build something akin to the VS.NET form designer? Meaning, say I have
a Button object on my form. I want it to have that kind of border
around it, with the "handles" at each corner (and in the middle of
each side) that allows the... more >>
need reference on "when to rewrite"
Posted by not_a_commie at 6/13/2007 12:34:54 PM
I've seen studies before showing that it is better to rewrite code
when more than 25% (or whatever) of the code needs to be changed. I
can't seem to locate any references for that at the moment. Do any of
you have references for that type of article? Thanks.
... more >>
Width of String
Posted by randy1200 at 6/13/2007 12:23:00 PM
Any ideas on how to get the width of a string in pixels?
Thanks,
Randy
... more >>
Need help with Regular Expression
Posted by news.microsoft.com at 6/13/2007 11:13:30 AM
How do I set this expression up for either IS NULL or IS NOT NULL?
I am trying to check to see if an incoming string has either of the two
values.
new Regex(@"^([^<>=]*)\s*IS NULL\s*\s*IS NOT NULL\s*)$",
RegexOptions.Compiled | RegexOptions.IgnoreCase);
Thanks
Bill
... more >>
Yield control to windows for screen update
Posted by Eitan at 6/13/2007 11:04:05 AM
Hello,
While in extensive math calculation in MFC application, i used to yield
control to window by calling this code:
void YieldControl( void )
{
MSG msg ;
if( ::PeekMessage( &msg, NULL, 0, 0, PM_REMOVE ) )
{
::TranslateMessage( &msg )... more >>
Is there a way to grant a group of specific store proc. to a user?
Posted by dotnetnoob at 6/13/2007 10:57:00 AM
I'm using MS SQL studio express edition and it is a pain in the ass to grant
store proc. to a user by clicking. is there a better to do so?
thank... more >>
Displaying a text directly on graphics card.
Posted by Mohammad-Reza at 6/13/2007 10:24:02 AM
Hi everyone.
We're trying to diplay a message on the screen, and we want it to be always
there, regardless of whether a new application is run, which may occupy that
portion of the screen.
Put another way, I want a text (or other types of graphics) to be always
visible, even if a fullscreen ... more >>
Falloimitation - New Trends, New Brands
Posted by aleksandr-torenc NO[at]SPAM mail-dot-ru.no-spam.invalid at 6/13/2007 10:02:01 AM
Imitate your fallos within 5 minutes from here. Perfect solution for
part-time prostitution. How many times was it very lines? In your
pockets are empty rockets.
------------------------
details here
... more >>
converting a word doc to pdf in .net
Posted by Vinki at 6/13/2007 9:51:03 AM
Is it possible to convert a microsoft word document to pdf in .net code. If
anyone has done this before, please let me know.... more >>
Accessing the base constructor of a derived class
Posted by Ethan Strauss at 6/13/2007 9:12:49 AM
Hi,=20
I want to be able to make a Master constructor for a class which all =
overloads of the class constructor would call and thus if I have minor =
changes to something I only need to make them in the Master and not in =
each instance, but this does not seem to be allowed. Is there some w... more >>
actulizar un textbox desde otro formulario
Posted by Marcelo at 6/13/2007 8:58:04 AM
hola amigos.... tengo dos formularios en los cuales desde uno de ellos quiero
poder modificar lo que lleva dentro un textbox el otro.
agradesco su colaboracion.
Marcelo... more >>
Form based authentication fails for .de
Posted by maflatoun NO[at]SPAM gmail.com at 6/13/2007 8:27:50 AM
Hi,
We have a form based authentication implemented on our site that has
been working great for over 2 years for oursite.com, oursite.ca and
oursite.co.uk. However, today I found out that oursite.de is failing
(nothing happens). All other directories that require authentication
are redirected... more >>
Barcode Reading
Posted by Rinu Gopalakrishna Pillai at 6/13/2007 8:21:02 AM
Hi,
I have an application with a barcode in the Image. I want to read the
barcode from the image using program. Image resolution is 120 X 120 DPI.I
tried to read thru different barcode SDKs available in the market ( like ;
Leadtools , Pegasus , Atalasoft etc..),but none couldn’t read t... more >>
how to find out number of bytes in a string
Posted by joyce at 6/13/2007 5:59:20 AM
hi
How would I go abouts finding out how many bytes a string has. ( I
want to do this so that I can set the datatype on the database
approriately.)
Thanks
Joyce
... more >>
Create new object on the fly from another object type
Posted by sebascomeau NO[at]SPAM gmail.com at 6/13/2007 5:52:50 AM
Hi,
I don't know if this is possible but a just want to know if it is.
I want to create a new object on the fly from another object with the
same properties but all properties was another type like String.
Example :
Object to copy have this properties :
- Id (Int)
- FirstName (String... more >>
Passing jagged array byte[][] to unmanaged code
Posted by Sharon at 6/13/2007 5:15:01 AM
Hi Gurus,
I need to transfer a jagged array of byte[][] by reference to unmanaged
function, The unmanaged code should changed the values of the array, and when
the unmanaged function returns I need to show the array data to the end user.
Can I do that?
How?
-------
Thanks
Sharon... more >>
HtmlEncode
Posted by Peter K at 6/13/2007 2:41:45 AM
Hi
in an application I am writing I have to process some text files which
contain various data. Some of this data are text strings which have been
encoded with HtmlEncode (I think it is HttpServerUtility.HtmlEncode which
has been used).
How do I decode this encoded text to something more... more >>
C# reparenting - focus problem
Posted by jan.loucka NO[at]SPAM gmail.com at 6/13/2007 2:30:52 AM
Hi,
I looked around for this specific problem but could not find any
answer - there's few things in VB but still nothing exactly like this
so I'd appreciate any help.
We're writing C# WinForm application that need to "silently" use
another app (called MapInfo) within itself - the intention is t... more >>
C# If statment execution order
Posted by NvrBst at 6/13/2007 1:14:57 AM
In C# if(exp1 && exp2 && exp3)
Does it evalutate left to right (exp1 -> exp2 -> exp3)? or right to
left (exp3 -> exp2 -> exp1)? Or would it execute all of them even if
exp1 turned out to be false?
Thanks :)
... more >>
Database Conn
Posted by gopal giri at 6/13/2007 12:01:18 AM
I want to binding stored Procedure To Table Using Asp.net2.0
*** Sent via Developersdex http://www.developersdex.com ***... more >>
C# socket reconnect
Posted by Cheryl at 6/13/2007 12:00:00 AM
Hi. I am having a problem on handling asynchronous sockets in C#. I
implemented a pair of client and server sockets. The connection is ok when
first connected. However, when I turned off the server socket, the client
is able to connect, but cannot send anything out. It seems that the
So... more >>
setup and deployment graphics
Posted by Doug at 6/13/2007 12:00:00 AM
Hi
I am using the VS2005 setup and deployment project template to deploy my new
app.
However it only seems to allow graphics during the setup process to be
placed in the top banner area.
Is there a way to have the graphics on the left hand side of the EULA for
example?
Or are there... more >>
dynamic stylesheet problem
Posted by Puja at 6/13/2007 12:00:00 AM
hi all,
On my page, i have external stylesheet
<link id="sbSiteCSS" rel="stylesheet" type="text/css" runat="server" />
whose href is determined on page_load
protected void Page_Load(object sender, EventArgs e)
{
sbSiteCSS.Attributes.Add("href", "http://www.mydomain.com.au/1/site.css... more >>
|