all groups > c# > may 2007 > threads for tuesday may 22
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
Had a question about the menustrip
Posted by Kool-Aide at 5/22/2007 10:18:38 PM
Alright, here goes...When I put a menu strip on the windows form I can
double click the exit button to go to the source page and it takes me to the
on click exit blah blah blah and you would put Application.Exit(); Alright
well what would I put for the print preview and the print and Save and
sa... more >>
Using regex in html code
Posted by Nightcrawler at 5/22/2007 9:59:39 PM
Hi all.
I have a html table with multiple rows (one row example below). I
would like to extract everything within the <td> tags into groups on a
row by row basis. The process would be: find the first row, then
extract the column data, store data in a textfile, find the next row,
extract the c... more >>
How to obfuscate the CSharp code ?
Posted by c.simi NO[at]SPAM subnet.net at 5/22/2007 8:54:52 PM
As far as I understood intermediate CSharp IC code can be retrieved resp. re-engineered
to a similar source code as the original.
Are there any options to obfuscate the code ?
Carla
... more >>
Where is the information stored about the exact position of e.g. a button on a form ?
Posted by m.poppers NO[at]SPAM lycos.com at 5/22/2007 8:48:23 PM
Assume I position a button on a Form on position (x,y)=20,75pixel
Where (in which file) is this information stored ?
Marl
... more >>
How to call Form2.cs from Form1.cs in modal and in non-modal style ?
Posted by kenny00 NO[at]SPAM mercedes.com at 5/22/2007 8:33:22 PM
Assume I have two Forms Form1.cs and Form2.cs.
When a button but1-switch is clicked on Form1.ca the second Form2.cs should be called
and displayed.
How do I call the second Form2.cs in modal style ?
How would the same call look like if I call the second Form in non-modal style ?
Ken
... more >>
ConfigurationManager.AppSettings
Posted by Fred Chateau at 5/22/2007 8:29:16 PM
Visual Studio is telling me that ConfigurationSettings.AppSettings.Get() is
obsolete, but I cannot get ConfigurationManager to show up in Intellisense.
Any idea what I'm doing wrong?
--
Regards,
Fred Chateau
http://hotelmotelnow.com
... more >>
What is the easiest way to open a textfile for append or create it for text append?
Posted by wmeister NO[at]SPAM hotmail.com at 5/22/2007 8:28:46 PM
I would like to append text to a file which might exist or not.
What is the easiest way to open or create it depending if it exists or not
and to set it into an "append" text mode?
... more >>
Is there a source code beautifier/re-arranger in VS 2005 ?
Posted by omerc NO[at]SPAM yahoo.co.uk at 5/22/2007 8:27:36 PM
When I insert a new Eventhandler or function VS 2005 does this automatically with an
indent which I don't like. Furthermore I would change the curly bracket handling.
Is there soemthing like a built-in source code beautifier which re-arranges the source code
according to my personal preference... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Split a DataTable into two DataTables
Posted by MarkusJNZ NO[at]SPAM gmail.com at 5/22/2007 4:58:31 PM
Hi, I have a DataTable which I want split into two other datatables
with the top 1/2 of the original datatable in one datatable and the
other 1/2 in another datatable.
Is there any easier way to do this other than iterating through the
original datatable row by row and copying the row to a new... more >>
sort using powershell assembly?
Posted by Neil Chambers at 5/22/2007 3:35:41 PM
Hi All,
I'm looking to see if it's feasible to use the SortObjectCommand
included in the Microsoft.Powershell.Commands assembly.
I have a Dictionary
Dictionary<string, int[,]> d = new Dictionary<string, int[,]>();
d["apples"] = new int[2,2];
d["peaches"] = new int[2,2];
Assuming we... more >>
converting letters to it's unicode representation
Posted by Nikola Skoric at 5/22/2007 2:49:22 PM
What I have is a bunch of text in arabic, and series of Unicode bytes
which represent those arabic words (like this: \'c2\'e4\'f6\'d3\'f3\'c9
\'f1). Now I have to figure out how to convert my arabic text to bunch
of \'somethings. If I understood Unicode correctly (and I'm not sure if
I did), ... more >>
C# Newbie: Getting file size of text file?
Posted by Mashao Rakgole at 5/22/2007 2:38:21 PM
In C#,
How does one get the file size of a given text file?
BR
Mashao
... more >>
data bind combobox issue
Posted by James Martin at 5/22/2007 2:38:01 PM
I have a table that I dragged onto a form from a dataset. I changed some of
the fields to comboboxes and set the data source, display member (text), and
value member (int) to another table within the same dataset. I can start the
form and cycle through existing records. If I click on one of th... more >>
Passing XML data and providing progress to client.
Posted by BLUE at 5/22/2007 2:34:17 PM
I want to pass chunks of an xml file or an entire xml file to my WS.
I'm surprised to see fro MSDN that no System.Xml class is serializable
(XmlDocument, XmlElement and XmlNode):
- I should use a string as the web method parameter?
- to create the string I should use a stream to read the file or... more >>
List<t> findall question - predicates?
Posted by mgonzales3 at 5/22/2007 1:09:00 PM
I have a List<t> object consisting of objects which in themselves consist of
BindingListViews of objects. When I want to search for a object value I
normally create a foreach loop and increment a counter to provide me a count.
How can I refactor the same function w/o the foreach and use find... more >>
help with C# and Lotus Notes
Posted by Rick at 5/22/2007 12:31:12 PM
Hi group!!!
I'm new with lotus notes, i'm not sure if, can i send an email through lotus
notes? maybe using a lotus dll or a componet? does anyone has an example?
Regards
Rick
... more >>
Active Directory FindOne Problems
Posted by Mike at 5/22/2007 11:27:01 AM
I'm trying to use the DirectorySearcher.FindOne() method to get the display
name of the current user. The code runs on a server behind a web service.
Everything works fine when I run it on my local machine but the FindOne()
method fails when I deploy it to the server. I'm at a loss and any ... more >>
Identifying an image type.
Posted by Frank Rizzo at 5/22/2007 11:02:28 AM
I have an interesting problem. I have a directory of image files.
However, none of the files have an extension. I need to figure out what
type if image it is and attach an extension to the file. Is there a way
to determine image type in the .net framework?
Thanks.... more >>
Version auto-increment issue
Posted by ewingate NO[at]SPAM gmail.com at 5/22/2007 10:11:10 AM
I cannot seem to get the version number of my VB app to increment
properly in VS2005. When I build the app each day the "build" number
increments with no problem as does the version number but if I make
multiple changes to my code during the day and then build again that
same day the version num... more >>
List Computers on my domain
Posted by JB at 5/22/2007 9:42:57 AM
I am trying to get a list of all the active computers running on my
domain.
I'm writing some remote management style software with WMI, which
works fine when i know the computer name, but i just want to be able
to produce a list and work it from there.
I found the following method:
String ... more >>
Inquiring about good Datagrid
Posted by Katit at 5/22/2007 9:32:45 AM
Folks,
I'm starting winforms project and I need grid control that will give
me control I want. I was using FarPoint spread in VB6 to get similar
results.
I need:
1. Grid that works in unbound mode
2. I have control over each cell as far as locking, colors, (fonts?)
and events.
3. Ability... more >>
Explicit Interfaces and overriding methods
Posted by wdudek at 5/22/2007 8:46:01 AM
I know that I can't declare a method in an interface as virtual and override
it, when I am using an explicit interface, but I am wondering if anyone else
has come across this problem and how they handled it? I would definately
prefer to use explicit interfaces, but I also know I shouldn't mix ... more >>
Want form to show changing data. But it could be closed, or closing, during update.
Posted by Zytan at 5/22/2007 8:45:31 AM
I have public methods in a form. The main form calls them, to update
that form's display. This form is like a real-time view of data that
is changing.
But, the form may not exist (it is created / destroyed at user
request). I can check form != null to prevent incorrect access.
But, the f... more >>
Providing a programming interface to a plugin
Posted by Olie at 5/22/2007 8:41:50 AM
I was quite surprised to find virtually nothing about this but I may
have been searching for the wrong thing.
I want to know the best way to provide a programming interface to a
plugin. I already have a plugin architecture that allows the
application to call code in a plugin but I want the plu... more >>
Project winding down - need to document the thing.
Posted by Mufasa at 5/22/2007 8:25:18 AM
Guys,
Can anybody suggest good tools for documenting a system once it has settled
down a bit so that it's worth documenting? I've done the normal putting
descriptive XML in the class files, and normal documentation on what it's
doing.
Anybody got any suggestions of tools to help document?
... more >>
using javascrip with datagrid
Posted by Brett Wesoloski at 5/22/2007 8:23:58 AM
I can not seem to figure this out, but really haven't work a lot with
javascrip and .NET.
I have a data grid and I want to put a button in it and when the button is
pressed it will call my javascript. Now the grid is in a .ascx file. The
other kicker is I want to also use the databinder p... more >>
Drag and drop between two TreeView controls
Posted by Jesper, Denmark at 5/22/2007 5:34:00 AM
Hi,
Drag and drop between two TreeView controls, is it possible? How?
regards Jesper... more >>
Installers with Database project
Posted by Varangian at 5/22/2007 3:13:42 AM
Hi,
I have a database project and along with its scripts and stored
procedures I want to add them to the installer file (web installer
project). However sadly the database project is not listed as project
output when you try to add it. Nothing not even its contents......
what I wish is that... more >>
how to serialize a generic field object
Posted by Pascal at 5/22/2007 3:01:19 AM
Hi everybody.
I have to serialize to XML a class like this:
public class MyClass{
string myString;
object myObject;
}
myObject can be a number(int, float, double), a date or a string. Any
suggestion?
... more >>
how to serialize a generic object field
Posted by Pascal at 5/22/2007 2:53:46 AM
Hi everybody.
I have to serialize to XML a class like this:
public class MyClass{
string myString;
object myObject;
}
myObject can be a number(int, float, double), a date or a string. Any
suggestion?
... more >>
Saving a Dataset
Posted by Fred Chateau at 5/22/2007 12:00:00 AM
If I have a dataset in memory, can I save that dataset to a SQL database
without having a schema or manually creating the tables?
--
Regards,
Fred Chateau
http://hotelmotelnow.com
... more >>
How to know a COM port is a modem
Posted by Nutshell at 5/22/2007 12:00:00 AM
Hello everybody,
in my application I'd need to know if a com port is a modem or not (and
eventually its description and if it is a null modem).
I get the list of com ports available with:
string[] portList = System.IO.Ports.SerialPort.GetPortNames();
and then i set a port object like this:
Sy... more >>
access form control propertys via control name as string
Posted by Peted at 5/22/2007 12:00:00 AM
if i have the name of a control in a string is there anyway to access
its properties ?
Eg
Button btnClickme1;
i want to do this
("btnClickme" + "1").text = "newtext";
is this possible
i am trying to do this becasue i have 8 buttons on the form, they are
only differentiated in ... more >>
Addin with own main menu entry
Posted by Rainer Queck at 5/22/2007 12:00:00 AM
Hello NG,
I am currently working on a addin for VS2005 to have a couple of funtions
available I need.
Now I would extend/improve my add in, and there I have a couple of
questions:
1.)
Currently my AddIn shows up as a sub-entry to Tools, but I would like to add
my own entry to the main ... more >>
Help with serialization
Posted by lallous at 5/22/2007 12:00:00 AM
Hello
I have the following XML string:
<?xml version="1.0" encoding="UTF-8"?>
<bool name="value" val="false" display="OFF" href="/value/"
xmlns="http://MyObj.org/ns/schema/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://MyObj.org/ns/schema/1.0 /MyOb... more >>
Add executable to firewall
Posted by Francisco Matamoros at 5/22/2007 12:00:00 AM
Hello, first at all, sorry for my english, I'm spanish.
I need to add an executable to the windows's firewall. I want to do it from
c# code because I use a aleatory port generated in real-time. When the tcp
port don't register traffic during two or three minutes the firewall close
this port... more >>
My Pretty Listing is going haywire...
Posted by Johnny Jörgensen at 5/22/2007 12:00:00 AM
I've got a serious problem. I've got Visual Studio 2005 installed, and of
course I'm using the Pretty Listing formatting function. When I start up VS,
everything is fine, but after a while (which can be one minute or one hour)
the Pretty Listing starts acting weird. For instance, if I start wr... more >>
|