all groups > c# > october 2005 > threads for thursday october 20
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
FFT, I seeking source code for waveform tranformation into FFT spectrum
Posted by riscy NO[at]SPAM onetel.com at 10/20/2005 10:52:56 PM
Has anyone know good webpage or book covering C# code in transformation
of real time or sampled time data into FFT spectrum display (using
GDI+).
I like to learn FFT processing in abc way...can anyone point me good
book or student course booklet.
Thanks.
... more >>
getting names of all the textbox on the form
Posted by jack at 10/20/2005 10:08:01 PM
Hi,
I m beginner. i wanted to know how to get names of all the textboxes
oded on the form object
Based on that i would then flash the message to the user about the
particular textbox been blank. and fill in the appropriate details.
My guess is that this can be done with foreach(contro... more >>
Which site is a port connected to ?
Posted by Craig Lister at 10/20/2005 9:58:23 PM
Is it at all possible to monitor a port, and when there is a connection made
to a remote server by some other 3rd party app, my app could report that the
socket is connected, and can report the IP address that the port is
connected to ?
Websites:
http://www.thelisters.co.uk/
http://www.my... more >>
Binary Reader
Posted by nick.stefanov NO[at]SPAM gmail.com at 10/20/2005 8:49:51 PM
Ok having another issue with binary reader. My file contains values 08
8A . When I read ReadBytes(2) what gets stored in the array is [0] = 8
and [1] = 138. How do I convert that to 2186 integer value?
Thanks
... more >>
Parameterless Constructors - Best Practices?
Posted by Robert Zurer at 10/20/2005 8:29:29 PM
Hello All,
Is it considered a best practice to always write a parameterless constructor
for any object - just in case?
I'm not sure. I want my object to have all it absolutely requires to function
in the world at birth. Defining a parameterless constructor allows it to be
created in an u... more >>
Help with SHFILEOPSTRUCT + file deletion
Posted by Stefan at 10/20/2005 7:23:29 PM
Hi, I cannot get the code below to work (C#). I'm trying to send a
file to the recycling bin, and I keep getting the following error:
"Cannot delete file: Cannot read from the source file or disk."
Most tips i've found online talk about terminating the path with null
chars, but I'm already ... more >>
Creating a dynamic Crytsal Report
Posted by puunda NO[at]SPAM gmail.com at 10/20/2005 5:49:30 PM
Hi,
Hope I've posted to the right groups.
I'm trying create a Crystal Report for the first time using C# (novice
at that as well). The CR I can handel. What I want to do is to have a
whole bunch of fields in my application (winforms) which the user can
select to include in the report or not... more >>
Delegate
Posted by apm at 10/20/2005 5:13:21 PM
All:
Is it possible to replace the delegate with a function pointer that will use
the cdecl calling convention?
Thanks.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Why the label.text is not showing up?
Posted by Alpha at 10/20/2005 4:56:04 PM
I'm working with a Window based application. I have a small form with just 1
label control which is set as Enabled and Visible. Its text is in black
telling users to please wait while application is updating DB. However, the
form pops up but the label.text is hot showing at all. What shou... more >>
Is this. needed?
Posted by Brett Romero at 10/20/2005 3:45:18 PM
I'd like to know when exactly the this. keyword is needed. For
example:
public class Combination
{
private long n = 0;
private long k = 0;
private long[] data = null;
public Combination(long n, long k)
{
if (n < 0 || k < 0) // normally n >= k
throw new Exception("N... more >>
delegate returning string how do i capture it?
Posted by Raj Chudasama at 10/20/2005 3:42:23 PM
i have the following
public event ButtonPressedHandler InputButtonPressed;
public delegate string ButtonPressedHandler(string Value);
i am trying to capture that string
how can i do this?
i am basically trying to pass a variable from one form to another when OK
button is pressed
... more >>
arithmetic overflow
Posted by tshad at 10/20/2005 3:34:26 PM
I have the following that works:
public static void GetValueFromDbObject(object dbObjectValue, ref decimal
destination)
{
destination = 2323;
return;
}
This gives me an arithmetic overflow:
public static void GetValueFromDbObject(object dbObjectValue, ref decimal
des... more >>
ArrayList blues...
Posted by Tim at 10/20/2005 2:19:21 PM
Hi,
I am creating a printing engine and I am cycling though my recordset. Each
item gets added to an ArrayList. Once there are more items that will fit on
the page I add the item ArrayList to a pages ArrayList. Seems pretty simple
so far.
However, when I clear the items ArrayList it clea... more >>
How to tell if your C# code is running in debug mode (debug compil
Posted by Max M. Power at 10/20/2005 1:37:02 PM
How can I tell if my C# code is running in debug mode?
I need to execute some extra code only when my project has been compiled in
debug mode. In release mode I don't want to execute this extra code.
I was looking for something simple I could test like:
#if DEBUG
do_extra_code
#e... more >>
How do i exit a C#?
Posted by Random Task at 10/20/2005 1:32:05 PM
I am looking for a call equivalent to:
exit (111);
What do i use in c#?
Jim... more >>
Multiple Heirarchical List Datasource in DataGrid
Posted by BobforeApples at 10/20/2005 1:01:04 PM
Hi All,
I was trying to apply databinding to a custom collection as in the MSDN
Magazine article found in the August, 2005 issue. After converting the code
in the article to C# and applying it to an existing set of classes, I tried
using the collection as the datasource for a standard DataGr... more >>
streaming random filetypes from .aspx
Posted by Daniel at 10/20/2005 12:31:42 PM
streaming random filetypes from .aspx
how to stream a file from inside a .aspx? e.g. so one could go
href="./foo.aspx?file=bar.mp3" or href="./foo.aspx?foo.dat" etc. preferabley
i would like all file types to open with "save as" when href clicked
... more >>
Community Code Offering: Singular/Plural Phrase Constructor
Posted by Robert W. at 10/20/2005 12:27:19 PM
In my current work I noticed that I have several circumstances where I need
to create little if/else constructs to handle the phrasing of a message.
This typically involves a ternary situation like this example illustrates:
0 files were downloaded (or No files were downloaded)
1 file was ... more >>
detecting sort order
Posted by melanieab at 10/20/2005 12:27:07 PM
Hi,
I'm not working with anything web-related, all that I have is a datagrid, a
dataset, and a datatable. I programatically sort whichever column when I
need to. Now I'd like to be able to detect the order in which a column is
sorted. I've been looking into ViewState, but I'm not having mu... more >>
cannot implicitly convert type
Posted by Jeff at 10/20/2005 12:14:59 PM
I get the following error:
Cannot implicitly convert type 'Factory.Stack.pArrayStack' to
'Factory.Stack.StackDefs.ImStack'
at compile time.
I thought perhaps there was a mismatch between the interface method
types and the actual implementation types, so I removed all methods
from both the in... more >>
SqlParameter and Update problem
Posted by Jason Huang at 10/20/2005 11:57:36 AM
Hi,
The SqlParameter myPM =new SqlParameter("@Address", txtAddress.Text) is
working for update,
but SqlParameter myPM =new SqlParameter
("@Address",SqlDbType.NVarChar,90,txtAddress.Text) is not working.
The Address column is DataType NVarChar 90, no problem.
Any idea?
Jason
... more >>
Read Text File and split them to individual text file
Posted by Krish at 10/20/2005 11:25:16 AM
I have requirement, that i get one big chunk of text file. This text file
will have has information, that on finding "****End of Information****", i
have to split them individual text file with our naming standard (unique id)
and create them designated folder.
This requirement should be cre... more >>
Control.BeginInvoke vs. delegate.BeginInvoke
Posted by Valerie Hough at 10/20/2005 11:10:43 AM
I'm not entirely sure what the difference is between these two approaches.
In order to avoid reentrant code, I was using Control.BeginInvoke in my UI
to cause an asynchronous activity to be done on the UI's message loop. I
began to get System.ExecutionEngineException errors so (on the theory ... more >>
Comparison question
Posted by tshad at 10/20/2005 10:43:04 AM
I tried to do this:
public static void GetValueFromDbObject(object dbObjectValue, ref decimal
destination)
{
destination = dbObjectValue == DBNull.Value || "" ? decimal.MaxValue :
(decimal)dbObjectValue;
}
Where I am just trying to say if dbObjectValue is either equal to a
DB... more >>
Timezone and time API problem (.net bug!?)
Posted by Raj Chudasama at 10/20/2005 10:31:04 AM
I have the following code for a clock in my gui.
Everything works fine EXCEPT the following line when the TimeZone is changed
in the windows.
string tz = TimeZone.CurrentTimeZone.StandardName;
It will not pick the changed timezone
but it does pick up time change due to timezone change.... more >>
NotImplemetedException while trying to add a folder to a project in C#.
Posted by rodica via DotNetMonster.com at 10/20/2005 10:24:39 AM
Hello,
I have a problem while trying to add a folder to a project in C#.
An exception NotImplementedException is thrown every time I call one of the
function bellow.
Here the code:
DTE.Solution.Projects.Item(1).ProjectItems.AddFromDirectory (@"C:\Perl");
I get the same error with this fu... more >>
Asp.net and Frames
Posted by smilly at 10/20/2005 10:09:03 AM
how can I reference frame objects to a .net object
meaning how can I search for the frame and do things to that frame object... more >>
initializing array of Array objects
Posted by Steve at 10/20/2005 9:46:09 AM
this code:
private Array[] m_arrays = new Array[3];
results in an array of 3 null Array objects. What am I missing?
... more >>
try-catch - but a catch which catches everything
Posted by Benny at 10/20/2005 9:42:07 AM
Hi,
I have something like this:
try
{
// some code
}
catch // note - i am catching everything now
{
// do something
}
Will this sort of catch statement, catch 'unsafe' and 'kernal-level'
exceptions (even if the app is a simple asp.net app with no unsafe stuf... more >>
Extracting DataTypes for propeties from a class
Posted by Curious at 10/20/2005 9:29:17 AM
Hi,
I have a class with properties and each property has specific
datatypes.
Is it possible to extract the datatypes of each property found in a
class?
I would like to extract these datatypes so that I can build a dataset
schema structure at runtime.
Is this possible?
public class ... more >>
Finding Most Recently Modified File
Posted by mosdef_underground NO[at]SPAM yahoo.com at 10/20/2005 9:24:29 AM
How can I use C# to find the most recently modified file in a folder?
As you can probably guess, I am just a beginner, so any help would be
appreciated.
Thanks!
... more >>
MSHTML Sessions
Posted by David Pendrey at 10/20/2005 9:18:12 AM
Hi all,
I am making a program using the I.E. web browser control and need some
(more) help. I need multiple windows open (multiple instances of the web
browser) open at once on a page which requires the user to log on. As it is
now I simple create the new forms and the webpage asks me t... more >>
Outlook-Like Calendar
Posted by Renzo at 10/20/2005 8:48:19 AM
Anybody knows if there's an already-made control which looks like Outlook's
Calendar ? I mean that vertical control which has the hours at the left (9
Am, 10 Am, 11 Am). I've been told to work on a Scheduling System and have
found none which makes me think the only way is to develop it mysel... more >>
Attribute to mark variable as tooltip during debug?
Posted by William Sullivan at 10/20/2005 8:47:09 AM
I was wondering... Are there attributes you can use to mark
accessors/variables that will identify them as to be shown when hovering over
an instance of the containing object during debugging? As in, if you have a
class with lots of different instance variables, but you are interested in
se... more >>
calling a form from a form
Posted by Renzo at 10/20/2005 8:42:05 AM
hi ! i've recently begun developing in c# and i'd like to know what's the
best way of calling a form from an already instanced form ? I have done a
"Login" form which I run in the Main() using "Application.Run(...)", now when
the user logins correctly, another form named "Calendar" must be c... more >>
API call back error from deferent Thread
Posted by [Yosi] at 10/20/2005 8:33:18 AM
I have an API, with a call back error definition. API receive reference to C#
output message function (write to text box using Invoke since I use thread).
Every thing is working fine API can write a message to my GUI textbox, but
when I access the API from another THREAD , API try to call thi... more >>
VS2003: Issue with Bound, Sorted ComboBox
Posted by pagates at 10/20/2005 8:29:09 AM
Hello All,
I seem to have found a problem using a ComboBox. If you bind a ComboBox to
an ArrayList of classes, setting the DisplayMember to one field in the class
and the ValueMember to another, and the ComboBox is sorted, then the bounded
indices are incorrect.
It appears that the Comb... more >>
The limit of mail
Posted by ad at 10/20/2005 8:19:45 AM
I use asp.net to set mail to notify users to do something every Friday.
There are 500 users of my programs.
When I add 500 users in the BCC of a mail and send it with program, it fail.
But if I add 10 users in the BCC, it will ok.
What is the max users I can send at once by program?
... more >>
Generics HowTo
Posted by Jacek Jurkowski at 10/20/2005 7:42:00 AM
How to ensure that generic Collection
accept only String as a typeparam?
This causes an compiler error...
public class StringCollection<T> : List<T> where T : String
{
}
... more >>
Create access database at runtime with C#
Posted by cql90 at 10/20/2005 7:27:58 AM
Hi all PRO,
I don't know how to create the MSAccess database in the runtime with C#, Are
there any body know how to do this? I am pretty sure that all of you know
how to do it, except me :( . Thanks you so much in advance, I am deeply
appreciated for your help. Take care and have a good o... more >>
retrieve console application path
Posted by Jan at 10/20/2005 6:26:10 AM
Hi,
What is the easiest way to retrieve the path from a console application?
Right now I am using:
- System.Reflection.Assembly.GetEntryAssembly().Location to extract the path
and filename
- path.getfullpath to split path and filename
I am almost sure there is an easier way...!?
Jan... more >>
When to use IDispose
Posted by ssg31415926 at 10/20/2005 6:06:43 AM
If I have a class which wraps a class which implements IDisposable,
should I implement IDisposable, too, in the wrapping class, and call
the wrapped class Dispose() from the wrapping class Dispose()?
E.g.
Public Class Widget : IDisposable
{
private DisposableObject disposableObject;
... more >>
Page.RegisterClientScriptBlock v Page.RegisterStartupScript
Posted by Mike P at 10/20/2005 6:05:32 AM
Is there a difference between Page.RegisterClientScriptBlock and
Page.RegisterStartupScript? I've seen them both in code examples and
they both seem to be doing the same thing.
Any help would be really appreciated.
Cheers,
Mike
*** Sent via Developersdex http://www.developersdex.c... more >>
VB-Script in C#
Posted by mancha28 NO[at]SPAM web.de at 10/20/2005 5:44:27 AM
Hi,
I would write the following code in C#.
set objHTTP = CreateObject("Msxml2.XMLHTTP")
objHTTP.open "POST", "http://url.com", False
objHTTP.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
objHTTP.setRequestHeader "SOAPAction", "urn:blabla#ListOfTitles"
objHTTP.send fullStrin... more >>
No touch deployment and reflection
Posted by Andy at 10/20/2005 5:39:15 AM
Hi all,
I have an app which is being no-touch-deplopyed. One of the library
assemblies the exe uses makes a call to
System.Reflection.Assembly.GetExecutingAssembly(). This works fine if
you run the application normally, but when run using NetRun (a loader
for no touch deployment application... more >>
System.Threading.Timer - A few questions
Posted by steve at 10/20/2005 5:29:06 AM
Since System.Threading.Timer uses the threadpool to do its stuff what happens
when
(a) You try to create a timer and the thread pool is *exhausted*
(b) The timer is due to fire AND all threads in the threadpool are blocked
(deadlocked maybe)?
As a followup qn to this.. (please excuse my i... more >>
short cut, windows form, control?
Posted by Iwan Petrow at 10/20/2005 4:56:31 AM
Hi,
I want to create a short-cut for a button (for example F2, F3..)
without menu. Is there a direct way or I have to write key down event
(with this I have to add this event for each control in the form)?
Thanks.
... more >>
Reading access component from other thread.(thread stopped excepti
Posted by [Yosi] at 10/20/2005 3:33:04 AM
I have some unreasonable issue while reading access component from other
thread.
I have a Form class which includes TreeView, this tree view includes some
TreeNodes , lets say 2 .
In my Form class I define an arraylist which include reference to those
TreeNodes.
ArayList myTNodesPackage (... more >>
downloading outlook attachments
Posted by Mike P at 10/20/2005 3:26:32 AM
How do I scan through my Outlook Inbox programmatically looking for
emails with a specific sender and subject, and then download any
attachments from these emails?
Any help would be really appreciated.
Cheers,
Mike
*** Sent via Developersdex http://www.developersdex.com ***... more >>
implementating idispose of webresponse.
Posted by trialproduct2004 NO[at]SPAM yahoo.com at 10/20/2005 2:21:41 AM
hi all
can some one tell me how to call dispose method of webresponse.
I am currently using close method.
But this is creating problem. So i want to use dispose method of
webresponse.
Can some one tell me how to do this.
Any help will be appreciated.
thanks in advance.
... more >>
How to get my Network Workgroup Name with C#
Posted by Diogo Alves - Software Developer at 10/20/2005 2:06:25 AM
Hi there,
How to get my Network Workgroup Name with C#???
Hope you can help
Best Regards
... more >>
sql time out error
Posted by TaeHo Yoo at 10/20/2005 12:28:33 AM
Hi all,
I have a asp scripts which runs a stored procedure which runs for about
30 seconds to generate a dataset. Somehow this page generates the
time-out error. To find out what is wrong with page, I used SQL Profiler
to monitor on when the request hits the database and discovered that it
ta... more >>
Code analisys ...
Posted by Jacek Jurkowski at 10/20/2005 12:00:00 AM
.... is warning me not to use catch(Exception e) as too general.
But how to determine what exception type should I use if
try section may cause a few exception types? How to determine
what kind of exceptions could such lines cause?
XmlTextReader xTr = new XmlTextReader(pFileName);
XmlSerializ... more >>
How to open new Form and close current Form?
Posted by Kimelia at 10/20/2005 12:00:00 AM
I want to create something like wizard, which will ask one question and
proceed to the next question.
So, it's like showing Form A (Question 1), then when the user press "Next"
button, I want to close Form A (Question 1), and show Form B (Question 2).
Sorry to ask if this is too simple, as I a... more >>
What's the best way/control to use for this data problem?
Posted by vbMark at 10/20/2005 12:00:00 AM
Greetings,
I have text files that have:
- one record per row.
- no header.
- no delimiters.
Columns are know by the number of characters per field.
For example:
3388br445bob smith 122332324
could be:
UserID - 4 chars
BlahID - 5 chars
FirstName - whatever chars
et... more >>
about Xml sort
Posted by news.microsoft.com at 10/20/2005 12:00:00 AM
I want to XmlNode.ChildNodes reSort by any InnerText
en....how?
thanks very much!!
... more >>
Problem with TreeView CheckBox..
Posted by kiran at 10/20/2005 12:00:00 AM
I cratee a form to meet the fallowing requirement.
1. If any node is selected the corresponding checkbox should be checked
2. If any checkbox is clicked the corresponding node should be selected
1st requirement is working ,but, 2nd requirement is not wokring properly.
when I click ... more >>
|