all groups > c# > september 2007
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
How to pass double codes
Posted by TARUN at 9/30/2007 11:22:41 PM
Hello all,
Please suggest me ... Is there any way to pass the string values as
"XYZ Sample String"
I encounter a situtation where i need to pass the string which should
include in double codes.
like "XYZ Sample String" i.e double code should also be pass.....
I am using C#
Thank's and... more >>
Regex issue
Posted by John B at 9/30/2007 10:01:23 PM
I am trying to do a pretty simple pattern match using regex.
The pattern is ^(?:(?<Item>.*?)@:@)*$.
This should return a match for test123@:@ but does not, instead it never
returns when I call Regex.Match, I have to kill the thread.
The code is below, The Regulator (some will know it) ret... more >>
The type 'frm_data.frm_data' is defined in an assembly that is not referenced. You must add a reference to assembly
Posted by ma79ash NO[at]SPAM gmail.com at 9/30/2007 9:04:52 PM
Language :: VS.NET/ C#
[B]The type 'frm_data.frm_data' is defined in an assembly that is not
referenced. You must add a reference to assembly[/B]
I have a Frm_sol solution, which consists on 2 projects
FRM_Business and frm_Data.
I build the 2 projects and copied the dlls created from ... more >>
please ignore - test message
Posted by JayCee at 9/30/2007 8:20:31 PM
Map a network share with WNetAddConnection3
Posted by Thorsten Dittmar at 9/30/2007 7:12:52 PM
Hi,
I'm having troubles creating network drives programmatically. I need to
map drive "O:" (which is not in use on my system) to a network share
from a C# application.
I'm using the following code:
[DllImport("mpr.dll")]
public static extern ERRORS WNetAddConnection3(IntPtr hWndOwner, re... more >>
SendKeys.SendWait
Posted by boeffchen NO[at]SPAM googlemail.com at 9/30/2007 6:08:11 PM
Hello,
I am trying to send keys to a window using the method above, though I
am encountering timing issues, which msdn warned me of before.
The way I tried to fix it is polling if the window I want to send keys
to is really the focus via:
while (GetForegroundWindow() != theHwndWeWant)
Thre... more >>
Adding C# library reference to Silverlight project
Posted by Abbas at 9/30/2007 3:28:39 PM
Does anyone know how to utilize a C# class within a silverlight
project?
I was trying to add a reference to my non-silverlight Class Library
and the VS 2008 IDE told me "You can only add project references to
other Silverlight projects in the solution".
... more >>
Vista application
Posted by amir at 9/30/2007 2:40:25 PM
Hello all,
I wrote an application in VS2005 which works fine on XP. Now tried to
run it on a vista computer... doesnt work.
The application opens a socket for listening for requests, it is
supposed to recieve it from a unix computer... but now the unix
computer doesnt reach my application... c... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How do i convert a byte[2] with format big endian signed int to a integer value?
Posted by eywitteveen NO[at]SPAM gmail.com at 9/30/2007 2:30:24 PM
Hello,
Introduction:
I'm currently working on retrieving altitude values from a a
file(srtm). This file contains a array of byte values and depending of
the position i want to know, i have to read to byte's to know what the
altitude is.
This works fine, till i want to convert the bytes to a ... more >>
Find X,Y on DoubleClick Event on panel with scrolling
Posted by Gidi at 9/30/2007 2:12:03 PM
Hi,
I've panel in my windows form, and i want to get the exact mouse position
when i double click.
I used:
Point p = this.panel1.PointToClient(Cursor.Position);
but now, if i'm pointing on the top-left corner of the panel i get the
cordinates (0,0), and then, i'm scrolling with the mouse... more >>
Preserve State
Posted by Martijn Mulder at 9/30/2007 1:28:41 PM
In a simple desktop application, when the user starts my program again,
I want her to find things just as she left them last time. What is a
simple straightforward way to implement such persistence?... more >>
C# .NET OCR Components
Posted by Bob Campbell at 9/30/2007 12:29:38 PM
I am trying to find C# .NET components that will allow me to scan an image
file (.jpg, .bmp, etc.), extract information and file the form as a .doc,
..xls or even put the information into an SQL database.
There are a few packages being sold (OCR Tools, LEADTOOLS, OCRExpress), but
they are a... more >>
IE7
Posted by Desmond at 9/30/2007 10:40:02 AM
Can someone give mr a link to an IE7 newsgroup. I am having a
nightmare with AOL toolbars not going away.
Please help.
Desmond.
... more >>
Singletone design question
Posted by csharpula csharp at 9/30/2007 9:05:17 AM
Hello ,
I have a singeltone and I would like to add some methods to it not only
getInstance() but some other logical methods as to a regular class. Is
it bad design?
Thank you!
*** Sent via Developersdex http://www.developersdex.com ***... more >>
List<T> sort performance
Posted by Jesper, Denmark at 9/30/2007 5:09:00 AM
Hi,
Can I expect a clever sorting algorithm behind the Sort() function for the
List<T> class? Can't find anything on the net that says anything about this.
regards Jesper
... more >>
Focus Topmost form Only
Posted by Newbro at 9/30/2007 4:22:01 AM
Hi,
Please bare with me as I'm starting to learn. Basically I have a mainform
which get created upon program startup, and an Aboutbox form that shows
itself when user click on the 'About' button. I can get the Aboutbox to show
and appear topmost by calling corresponding functions, but what ... more >>
Running Dotnet Win App From a Mapped Drive
Posted by Sylvie at 9/30/2007 12:00:00 AM
Hello,
I have recently developed a windows application using VS.Net 2005 &
Devexpress Commponents.
When I try to run application on the client using a mapped drive on my SBS
Server 2003, app is not working, if I run it locally, it runs normal.
It s related to some permission issues I th... more >>
unitialized readonly fields produces no warning
Posted by cody at 9/29/2007 9:11:20 PM
It is possible to declare and use/instantiate a class with a
uninitialized readonly field without even a compiler warning. Why don't
I get warnings?
public class Stuff
{
public readonly int a;
}
By definition, readonly fields can only be initialized inside a
constructor or within t... more >>
What DBType supports unicode with SQL Server
Posted by Hamilton Colyer-Long at 9/29/2007 9:00:59 PM
Hi all,
I have a TableAdapter with a connection to an SQL Server database that uses
stored procedures to insert and update records. Problems occur when I
attempt to insert unicode (Chinese) characters in the database; all that
comes through is question marks. The parameter to insert the str... more >>
Locating new row
Posted by Peter Morris at 9/29/2007 8:21:29 PM
If I have a data source bound to my DataGridView, and then I perform an
action that adds a new row to that datasource. How can I tell which row in
the DataGridView to focus? I can't just select the last row because the
user may have chosen to sort by one of the numerous columns.
Thanks
... more >>
Sorting DataGridView
Posted by Peter Morris at 9/29/2007 7:42:48 PM
DataGridView allows the user to sort data by clicking a column header. Can
someone tell me how I can configure the control so that the first column is
by default sorted ascending?
Thankyou
Pete
... more >>
Drag n drop using c#
Posted by weird0 at 9/29/2007 5:58:38 PM
i am developing an application in which i can drag and drop icons
using c#. I tried out a few tutorials on code-project.com, but they
don't seem to work and are too hard to understand, like the usual
case. :-(
Can somebody help me out with this that how can i drag n drop using
c#. Please exp... more >>
ASP.NET (silverlight..... ) [contniue]
Posted by vinnie at 9/29/2007 5:20:30 PM
ok, thanks for the help.
Some of you, was right: too many words, to much marketing without
identifying the final user. Smithers gave the easiest answer.
Now, as i wasn't enough confused, on the Microsoft web site i found
these:
Microsoft Expression Web
Microsoft Expression Design
Microsof... more >>
C# Equivalent of this VB String Array Code?
Posted by David Pendleton at 9/29/2007 5:07:07 PM
Hello all.
I'm trying to find the best C# equivalent for the following VB.
If myCollection.Count > 0 Then
Dim myStrings() As New String((myCollection.Count - 1)) {}
myCollection.CopyTo(myStrings, 0)
End If
I have been unable to do something like the followin... more >>
Environment with string replace ....
Posted by Gabriel at 9/29/2007 4:57:27 PM
Hello,
I do this :
s = Environment.CurrentDirectory;
s = s.Replace("\\", @"\");
Environment.CurrentDirectiry return a path like this C:\\....\\....\\.....
I'd like replace the \\ by \, but the code I use not work. Any idea ?
Best Regards,... more >>
XmlDocument parsing using SelectSingleNode()
Posted by David Veeneman at 9/29/2007 3:19:34 PM
I've used the XmlDocument class for some time to parse XML documents. After
being away from it for a while, I have come across a type of XML file it
doesn't seem to work with, although the XML seems perfectly valid. I'm
hoping someone in this forum can point out the flaw in my logic that I kno... more >>
What does Microsoft write in .Net?
Posted by jim at 9/29/2007 2:57:15 PM
Maybe I'm missing something, but it doesn't look like Microsoft writes a lot
of apps in .Net (although they certainly push it for others).
What does MS write using pure .Net?
If applications like Symantec's antivirus, NeatReciepts or Franklin Covey's
PlanPlus for Windows is any guide, .Net... more >>
silverlight
Posted by vinnie at 9/29/2007 2:34:47 PM
Hi young folk, and i'm learning to work with ASP.net and yesterday I
was talking to a friend in regards a good book to buy for learning
CSS. With surprise he told me that Microsoft has released the Flash
competitor that integrates perfectly with ASP.Net, called
Silverlight.
Surfing for Silver... more >>
Mixing unmanaged C++ and C#
Posted by Jon Slaughter at 9/29/2007 3:59:28 AM
How difficult is it for one to integrate unmanaged C++ into C#? I know for
functions one can use DLLimport but how does one go about doing it for
classes? Do I have to completely reimplement the classes in managed C++ as a
wrapper to the unmanaged C++ classes or is there an easier way?
Esse... more >>
Reading redirected stdout from a spawned process
Posted by Ray Mitchell at 9/29/2007 1:51:01 AM
Hello,
I have a C# application in which I start another process which produces
output to stdout and stderr. In fact, that process is the uSoft VS2005 C/C++
compiler itself! I would like to capture the results of the compile and
display them in a RichTextBox. The problem I'm having is tha... more >>
DllImport issue!
Posted by chandan at 9/29/2007 12:04:43 AM
Hi All,
I have a dll created using vc++(Unmanaged).So when we are using this
I have to give to full path of this dll as a parameter of DllImport
attribute. The parameter takes only const string value. It will work
fine by hard coding, but what will be case when I deploy this project?
Is th... more >>
Fake Inheritance with Delegates
Posted by Martijn Mulder at 9/29/2007 12:00:00 AM
You can fake the mechanism of inheritance by passing in a delegate
function to the constructor. The constructor sets the delegate to a
certain named function, Greet() in the example below. By calling Greet()
from an instance of your object, the designated delegate is called. The
same functio... more >>
Writing to crystal report from datagridview
Posted by Cheryl at 9/29/2007 12:00:00 AM
Hi! I have a datagridview that create views for a dynamic dataset. Now I
would like to put the whole datagridview to a crystal report? Any ideas to
do this?
Thanks!
... more >>
Hiding a DIV tag (and contents) from inside codebehind
Posted by xlar54 at 9/29/2007 12:00:00 AM
Can someone explain to me how this can be done? I have a div tag with
contents, that I would like to hide under certain circumstances (such
as variableA = 1), etc.
Thanks
... more >>
ASPNet 2.0 C# files download question
Posted by Jason Huang at 9/29/2007 12:00:00 AM
Hi,
In my ASPNet 2.0 C# web form frmDownLoad.aspx, I have a HyperLink for
clients to download a specific document Report1.doc.
What I want to know is getting the client's public IP and PC's name under
the situation that Report1.doc is downloaded completely.
How do I do that?
Thanks for hel... more >>
itemize variable via reflection
Posted by Bob at 9/28/2007 10:42:03 PM
Hi,
Does anyone know if it is possible to use reflection to determine the
names and value types of the variables currently in scope?
Thanks,
Bob
... more >>
Reading big chunk of binary data from socket
Posted by Willy Stevens at 9/28/2007 10:33:09 PM
Hello,
In my application I have to read sometimes quite big chunk of binary data.
I have a buffer which default size is 32000 bytes.
But how could I read binary data that exceeds 32000 bytes?
Is allocating more size to buffer and copy data that exceeds 32000 bytes at
tail the only way
or ... more >>
DLL path
Posted by DaveP at 9/28/2007 9:48:42 PM
How Can i get the location where a Dll Was Loaded From
Tks
DaveP
... more >>
DLL and Application Config
Posted by DaveP at 9/28/2007 9:25:14 PM
i have a c#Dll being Called From Vb6 using Iinterface
now my question is
Can ConfigurationManager.AppSettings be used with this DLL or Do i have to
Create My own Config for this Dll
Tks
DaveP
... more >>
CSS
Posted by vinnie at 9/28/2007 8:04:57 PM
do you think that it's possible to build a nice web site in asp.net
2.0 C# without knowing anything about CSS?
... more >>
Question about connecting client programs to Sql server 2005 running on local area network
Posted by ali at 9/28/2007 7:21:13 PM
I have a program that has hand written database connections and
DataGridView that connects to my database on sql server
using computer's name .this works fine locally BUT problem occures
when running my app on local area network
causes this exception
" Application attempted to perform an ope... more >>
64 bit OS
Posted by Lubomir at 9/28/2007 4:29:00 PM
Hi,
When I create and executable (with VS running on 32 bit OS) with solution
configuration for platform "Any CPU", how does run this application on 64 bit
OS? Is this app running like WOW or will it be running like a true 64 bit
application?
Thanks,
Lubomir... more >>
Validating an .exe file
Posted by Martijn Mulder at 9/28/2007 2:36:04 PM
When I distribute my .exe assembly, I want to make sure that users get
the correct file. When someone has meddled with the contents, I want the
program to quit with a message. Is there a way to set some kind of
checksum in the .exe itself so that the .exe auto-validates itself? I am
not sure... more >>
Editing a solution on two machines
Posted by MFK at 9/28/2007 2:25:02 PM
Hi all,
First apologies for the off topic question, this is a sourcesafe question,
but the Sourcesafe groups just don't get answers, so I thought I'd try your
patience here <G>
I have a solution (currently 2 pojects) at one site that I want to be able
to take to another site and edit the... more >>
Reading from a file, what am i doing wrong here ?
Posted by Claire at 9/28/2007 12:23:26 PM
I can't see what Ive done wrong with the following, would someone help
please.
I'm trying to read rich text from a file. Ive tested the file using a hex
editor and the contents have been written correctly. When i read back the
file, the result is returned as the file name and not the file con... more >>
RTF Editor
Posted by Joe at 9/28/2007 12:06:56 PM
Does anyone know of a good RTF editor for WinForms? I want to use the
standard RichTextBox but need a good editor.
With source would be nice...
Thanks,
Joe
... more >>
Web Page Input
Posted by Looch at 9/28/2007 10:01:03 AM
Hi All,
I have a button on a win form that opens the UPS web site, which uses
a .jsx page for the default page. Easy enough. I've viewed the source
code of the page and found the input boxes for the user name and
password. Is it possible to interact with the web page from my
application to au... more >>
How to use Variable in select statement?
Posted by Mehbs at 9/28/2007 9:54:33 AM
I created a very simple form.
There are 2 text boxes; 1 for entering account number and other to display
its desription.
I also placed buttom so when it is clicked, select statement underneath grab
the description of that part number and display on the form.
I also created a data set fo... more >>
intellisense problem
Posted by Dan Holmes at 9/28/2007 9:28:32 AM
I admit this might have more to do with the IDE than the language but...
in VS2005 sp1 when i highlight the interface inherited by my class and
then choose "Implement Interface" -> Implicitly i get this message: "All
members of this type have already been implemented". The problem is the
c... more >>
How to create manifest for non .net application
Posted by DBC User at 9/28/2007 9:12:22 AM
Sorry for off topic here. I would like to know will it be possible to
create a manifest for non .net application? I have a program created
with VC 2.1 and Install Sheild as well. I want those two programs to
require admin privileges to run in vista. I know I can do it in VS
2005 by adding additi... more >>
|