all groups > c# > january 2008
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
Is it possible to know within a function which object called it
Posted by Avi at 1/31/2008 5:17:20 PM
Hi experts,
I have a function that needs to be public. However, I have a few objects in
my system that I would want to prevent them from calling this function. Is
it possible to know within a function which object called it and exit when
it is one of the unwanted objects that called i... more >>
Table Layout Panel question
Posted by DBC User at 1/31/2008 5:11:34 PM
I have a control panel and there I create a table layout panel and it
has dock as fill property. Now I add bunch of controls to them and
they get added successfully. It is good when there are few controls.
When I create 10 * 10 table on the fly, it creates them but they just
disappear outside my... more >>
Copying strings arrays to another from Directory.GetFiles
Posted by tshad at 1/31/2008 5:10:46 PM
I am trying to do multiple Directory.GetFiles and append the results to one
array that I will process. I tried this:
string[] strFiles;
strFiles = Directory.GetFiles(SemaSettings.InputFilePath, "GL*.*");
strFiles.CopyTo(Directory.GetFiles(SemaSettings.InputFilePath,
"IN.*"),strFiles.Length... more >>
FileWatcher check on startup?
Posted by tshad at 1/31/2008 4:20:37 PM
Is there some way to have the fileWatcher to initially check the folder to
see if there is anything in it (based on the filters)?
If I reboot the machine, for example, and it starts up the service - I would
like it to look at the folder initially. The reason being that I may bring
the syst... more >>
use DataAdpater fill datatable couple times for many columns
Posted by Ryan Liu at 1/31/2008 3:43:43 PM
Hi,
If I have a very big view in database, it covers 15 tables, each table has
1000 columns.
When I issue select * from view, the database will give error -- too many
columns.
Can I use a DataAdapter fill DataTable couple times? For example, I only
read 5000 columns from the view each... more >>
userid from domain
Posted by Analizer1 at 1/31/2008 3:43:39 PM
hi...looking for a example of
How to get the Users suid from a windows domain
thanks
... more >>
100K item data binding: Is asynchronous data binding possible?
Posted by R Reyes at 1/31/2008 3:18:02 PM
Hi,
Problem: How can I databind (or put) a SqlServer query's row return of
115,000 items into a ComboBox quickly? Not much longer than a matter of
seconds, that is...
Scenario: I am rebuilding my company's Access 97 VBA database app. It pulls
115,000 items (of account names) from SqlSe... more >>
re-line up source
Posted by tshad at 1/31/2008 2:15:49 PM
Isn't there a shortcut that will re-line up your source in VB2005? I have
source that I have copied and pasted in my page and it doesn't line up
correctly, which is fine for small code but larger code is a bit of a pain.
I thought I saw it somewhere but can't seem to find it.
Thanks,
T... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
splitcontainer auto resizeing
Posted by Walter Sobchak at 1/31/2008 1:50:29 PM
I have a split container and on panel 1 I have a groupbox.
When I change group box visibility I want the splitcontainer to auto
resize so that the panel2 is ether covering the whole space (groupbox
invisible) or to resize to fill the space when the groupbox is visible.
I tried to do it with pa... more >>
Generics question
Posted by Dilip at 1/31/2008 1:31:15 PM
I boxed myself to a corner with this design. I wanted classes
implementing X to necessarily implement IEquatable. I thought I'd go
the C++ CRTP route and came up with this.
interface X<T> : IEquatable<T>
{
}
class XImpl : X<XImpl>
{
}
class XImpl_2 : X<XImpl_2>
{
}
then I had a... more >>
caret coordinates in text box
Posted by Alex K. at 1/31/2008 12:28:03 PM
Hi all
How do I get current coordinates (X,Y) of the caret symbol in a multi-line
text box?
Thank you... more >>
Capturing the Tab key in a usercontrol
Posted by Dom at 1/31/2008 12:23:17 PM
I've created a user control that contains a textbox and a listbox. I
want to capture the tab key when it is pressed in the textbox. To do
this, I override the ProcessDialogKey event in the user control. But
it occurs to me that I am now processing the tab key when it is
pressed in either the ... more >>
Send MSMQ message using C# without serialization?
Posted by Tbone at 1/31/2008 12:18:14 PM
Is there any way to send a Message without having the .NET framework add the
"serialization" data to the body of the message? I am sending binary
structures in the message and I need full control over what is in the body
of the message. I see some extra bytes before and after the message I a... more >>
Interactive Desktop Character, general questions
Posted by Mike Gleason jr Couturier at 1/31/2008 11:01:55 AM
Hi,
I would like to develop an application for children that would show an
animated character on the desktop. The user could be able to interact with
it and minimize the application. The character could be able to "walk" on
the Windows Taskbar or things like that.
I have litterally no id... more >>
window form contains desktop icon
Posted by Steve Richter at 1/31/2008 10:47:24 AM
can a desktop icon, used to launch an application window like windows
explorer, be a child control in a window form? I checked the windows
forms controls in VS2005 and did not see any such control.
I would like my code to display all the .LNK files in a directory on a
form, handle the single ... more >>
Hooking Up Automated Unit Tests (a simple approach, if one is to be had)
Posted by Jordan S. at 1/31/2008 10:44:39 AM
Okay so I've finally "seen the Light" about writing automated unit tests
ahead of time.
Question: What is a very simple approach that I can use to setting up
automated unit tests, considering that I don't want to (1) embed them in
production code at all (even with compiler directives to ign... more >>
Move a file that isn't completely written yet.
Posted by tshad at 1/31/2008 10:20:49 AM
I have a filewatcher program that tells me that a file has been created in
my folder. The problem I want to immediately move the file or access it.
If the file is large, it not be completely copied yet.
How do I tell FileWatcher to only tell me when the file is completely there?
fileWatc... more >>
Remove an item from an arraylist inside foreach
Posted by tshad at 1/31/2008 10:17:53 AM
I have an ArrayList of thread pointers that I want delete from my list when
the Thread in not alive and status is stopped. But I want to do it from the
foreach loop I am looping through. threadList is the ArrayList.
foreach (Thread theThread in threadList)
{
if ((!theThread.IsAliv... more >>
Creating Browsable DataSource and DataMember properties
Posted by mzwilli at 1/31/2008 9:35:45 AM
Hi, I'm trying to create browsable DataSource and DataMember
properties on a user control.
The idea is to create a descendent object, place a dataset then
specify the DataSource (DataSet) and DataMember (DataTable) by
browsing the controls properties.
I am close, but somtimes get an error w... more >>
One question about XML schemas
Posted by Piotrekk at 1/31/2008 9:35:15 AM
Hi
I was reading a lot about DataSets and XML schemas ( xsd )
None of the sources has answered my question - when should we use
schemas? Usually when i save and load dataset to/from XML I don't need
to create schemas.
What is the real life example of when we should create schemas for an
XML re... more >>
Finding a constructor with a parameter derived from a common base class.
Posted by jehugaleahsa@gmail.com at 1/31/2008 9:32:31 AM
Hello:
I have a class heirarchy. The classes optionally support ctors that
can take classes in the same heirarchy. This allows for run-time
decoration.
Is there a way, using reflection, to search for a ctor that has a
parameter that is of a type derived from a base class/interface?
Thank... more >>
Converting "yyyymmdd" date string into "dd monthname yyyy" format
Posted by stainless at 1/31/2008 9:26:09 AM
I know this is probably simple but I cannot find a method of
converting a date string into a format that matches the DatePicker
format in C#
eg string "20080131" converted to "31 January 2008"
I tried datetime.parseexact but could not find the definition for the
appropriate format string.
... more >>
Workflow Foundation and Oracle
Posted by ludwig_stuyck@hotmail.com at 1/31/2008 8:36:26 AM
Hi,
one of our customers has Oracle and does not want to use Sql Server.
Now we need a workflow tool in a .NET environment that works with
Oracle.
Workflow Foundation comes out of the box with Sql Server support. I've
found a community project that supports Oracle for WF (http://
www.codep... more >>
Field rendering in DataGridView with dynamic query
Posted by michael sorens at 1/31/2008 8:35:01 AM
If I populate a DataGridView with a query supplied at runtime, boolean fields
render as a CheckBox instead of just a text rendering of '0' or '1'. That is
nice sometimes, but I would like the flexibility of showing text sometimes as
well. Is there an easy way to get the text '0' or '1' instead... more >>
Search a word in Webbrowser control
Posted by aagarwal8@gmail.com at 1/31/2008 7:52:59 AM
Hi,
How can i search a particular word in webbrowser control in .Net? That
is if the searched word is found, it should be highlighted like in
internet explorer.
Regards,
Ankit!!... more >>
Calling Crystal Report, another try
Posted by Alex at 1/31/2008 6:57:51 AM
Hello, everybody
I'm sorry, but maybe first time I'd asked this question it didn't
catch the eye of the proper person. So here I go again. There is a
Crystal Report file, let's say SomeReport.rpt. When the report is
designed it could've used hard coded ODBC data source name to connect
to... more >>
Strange Problem - Parameter is not valid
Posted by zacks@construction-imaging.com at 1/31/2008 6:34:38 AM
I am having a real strange problem. I have a relatively simple C#.NET
application developed with VS2005. It is an MDI application with a
single child form. In the child form, there is a Save menu item to
save the item the child form creates. The information in the form is
saved to a SQL Server d... more >>
Linq to Entity, query sql
Posted by Davide Lo giudice at 1/31/2008 5:35:00 AM
I'm using C#, Linq to Entity and Sql Server 2005 Express.
I need to see the queries created by linq. What do I have to use?
Thaks.
sorry, but I'm a new VS developer. I have developed with delphi all my live.
Davide
... more >>
Host Control in DataGridView
Posted by Frederik at 1/31/2008 5:33:01 AM
Hi all,
Can someone tell me how I can host a LinkLabel in a DataGridView (the
existing DataGridViewLinkColumn does not provide what I need). Do I
need to derive from DataGridViewTextBoxCell or from DataGridViewCell?
Many thanks for any feedback/examples.
Frederik... more >>
Rebuilding a GAC Strong Name assembly DLL
Posted by Mark at 1/31/2008 4:15:01 AM
Hello
I've created a DLL (Common.dll) that needs to be used by multiple .NET
Windows applications. So I thought the best solution would be to deploy the
DLL into the GAC after associating it with a Strong Name.
But I've noticed a problem.
If I build a Windows Application that references t... more >>
Function minimization and random numbers
Posted by Jon Harrop at 1/31/2008 3:50:49 AM
I'm looking for cheap libraries that implement these two things (most likely
separately) in C#. There are a few all-encompassing numerical libraries out
there but they're too expensive. Any ideas?
--
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/products/?u... more >>
VS 2008, Web service and Extremely Slow Build
Posted by Chris Botha at 1/31/2008 3:07:41 AM
I have a Web Service with approx 90 functions.
I had, or still have, a VS 2005 Windows app that has a reference to the Web
Service and when building the Windows app it takes a few seconds to build
the release or debug.
Create a VS 2008 Windows app with only 1 form and a "hello world" button ... more >>
Changing Process ACL's
Posted by sternr at 1/31/2008 2:50:34 AM
Hey,
I know how to get a process's DACL using the GetKernelObjectSecurity.
But how can I modify and update I don't know.
Any help\example would be greatly appreciated!
Thanks ahead!
sternr... more >>
Why XmlTextReader does not raise the FileNotFoundException
Posted by bbindae@hotmail.com at 1/31/2008 2:48:06 AM
I am trying to check whether XmlTextReader reads the xml file
successfully or not.
MSDN says that XmlTextReader raise the FileNotFoundException when it
cannot find the file to read.
Here is the source code I wrote.
string fileName = "thisfileneverexist.xml";
XmlTextReader xmlReader = nul... more >>
CheckBox.checked return a value
Posted by nologo at 1/31/2008 2:24:06 AM
All,
Have a problem i just cant find the answer for.
I'm trying to populate a colum in a SQL database. Basically the
column requires a 1 or 0.
I'm trying to populate this col via a c# checkbox.
so basically:
checkbox.checked =1
else
=0
any ideas how to get this working? ive set the v... more >>
Datepicker blank text required
Posted by stainless at 1/31/2008 1:27:44 AM
I have a date selection field that can be blank OR set to a valid
future date.
I am thinking of using a datepicker field but have one issue with
this.
If I have a check box in the datepicker that can be unticked to
represent no date selected, whatever is the default or last date
selected p... more >>
linq to sql design question
Posted by Tem at 1/30/2008 11:17:29 PM
are the queries generated by the compiler or at runtime? ... more >>
ClickOnce issues
Posted by Jack at 1/30/2008 9:46:58 PM
Hi there,
Apologies if this NG is off-topic but I can't find anything more appropriate
(feel free to let me know). I'm looking at ClickOnce as a possible
alternative to MSI and have poured through much of the docs trying to figure
out how to customize my app's install if possible. In my dep... more >>
Dotfuscator vs ResourceManager ctor
Posted by Scott at 1/30/2008 6:00:37 PM
Hi,
I am trying to apply obfuscation to our project using Dotfuscator.
When i run the post obfuscated .exe, i get a
MissingManifestResourceException. I have isolated the problem and it
can be reproduced with the following steps:
1. Create a simple Windows Forms app
2. Right click on the ... more >>
AR2000 Compression/Decompression Algorithm
Posted by Stephany Young at 1/30/2008 5:01:45 PM
Does anyone have the source code for a C# implementation of the AR2000
Compression/Decompression algorithm that they might like to share?
... more >>
Get names of Unicode characters
Posted by Michael A. Covington at 1/30/2008 4:54:46 PM
Is there anything in the .NET Framework, or any third-party class I can get,
that would translate Unicode characters to their names? For example, given
\u0033 it should give me "Numeral Three" or words to that effect, and
likewise for much if not all of Unicode.
Thanks!
... more >>
any sample for c# applicaiton hosting internet explorer?
Posted by forum.microsoft.com at 1/30/2008 4:21:27 PM
Can some one please point me to some sample code of using c# (.net 2 or 3x)
hosting internet explorer?
The target application is to run on XP or vista.
I am thinking of building an c# application to automate some tasks surfing
some trusted sites. The logon would still be by user.
the ... more >>
Newbie : How to store 50 data elements effciently
Posted by indtaz@gmail.com at 1/30/2008 4:11:23 PM
I need to store 50 "string" values and then retrieve information
selectively. I am looking for an efficient way to store/retrieve this
information.
Here is a bit more specific information:
I have to store the names of cities and states.
Essentially, the data I have is structured as follows:... more >>
SendMessage and Menus
Posted by Pete Kane at 1/30/2008 3:55:35 PM
Hi All, does anyone know of a way to retrieve the ID of a menu ? I've
tried using Winspector but can't seem to track down menus, buttons and
other controls easy peasy, thanks... more >>
Only one usage of each socket address (protocol/network address/port) is normally permitted
Posted by pbd22 at 1/30/2008 3:50:57 PM
Hi. I am getting the below error:
Event Type: Error
Event Source: PeskyService
Event Category: None
Event ID: 0
Date: 1/30/2008
Time: 5:49:10 PM
User: N/A
Computer: Computer
Description:
Only one usage of each socket address (protocol/network address/port)
is normally permitted
... more >>
DataGridView - Vertical ScrollBar Help Needed
Posted by Tom at 1/30/2008 2:51:16 PM
First, I posted a similar request for help in another group and now
don't find the posting. Problem with my newsreader perhaps ... but
apologies if this appears as a cross posting.
My code is inconsistent in the detection of a vertical scrollbar. This
involves situations when less than the cli... more >>
Code to get all properties supporting an attribute
Posted by jehugaleahsa@gmail.com at 1/30/2008 2:07:59 PM
Hello:
I would like code that will return all properties that have a
specified attribute type.
And, once that is done, I would like code that returned all properties
that have an attribute that had a property value equal to a given
value. :-)
In my case, I have a bunch of attributes asso... more >>
How many threads does a process use
Posted by tshad at 1/30/2008 1:52:52 PM
I need to find out how many threads a process has.
I have used ThreadPool.GetAvailableThreads and ThreadPool.GetMaxThreads, but
they both show 50 for worker threads and 100 for port threads. This stays
the same as each thread is opened up. After 3 or 4 are open the numbers are
the same.
... more >>
Creating DLL for usage using vbs
Posted by alexia.bee@gmail.com at 1/30/2008 1:06:59 PM
Hi all,
I need to develop dll which should be used by vbs. the dll should
return 2D arrays, strings and other var types.
I am not sure which with which language I should do it. I debate
between C++ and C#.
The problem is that the DLL uses pointers (WLAN APIS). Does C++ dll
can return to vb... more >>
creating COM objects in C#
Posted by Dan Holmes at 1/30/2008 12:51:31 PM
I think i have the basics. I am creating a COM wrapper for my VB6 code
to call an existing assembly. Below is the wrapper. Do COM object
created in C3 need to be in a strongly named assembly? If so what if
the assembly that i am wrapping also depends on an interop layer that
isn't strong... more >>
|