all groups > c# > april 2007 > threads for tuesday april 10
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
Getting cookies of previous page
Posted by Zeba at 4/10/2007 11:42:35 PM
Hi !
I want to know the cookie value that was set in the previous page.
Initially in my page in project B I used
HttpCookie cookie = Request.Cookies.Get(somefile.COOKIE_NAME);
where cookie name is set using web.config. As a result when I call
this page of project B from some page in Pro... more >>
Enumerate Classes in a Namespace?
Posted by lucius at 4/10/2007 11:41:50 PM
Within the currently executing assembly, I would like to enumerate all
classes that exist in a particular namespace, then instance each of
them and place them into an ArrayList. How can I do that?
Thanks.
... more >>
Calling a javascript function from aspx.cs file
Posted by moni at 4/10/2007 9:59:51 PM
Hi,
I wanted to call a javascript function
function showAddress(address)
{
.....
}
from the aspx.cs file from the Gridview_RowCommand function
protected void GridView1_RowCommand(object sender,
GridViewCommandEventArgs e)
{
......
//got a string value a
//showAddress(a);
}
Ho... more >>
Question about ListView - resizing the last column: why does this work
Posted by Kimmo Laine at 4/10/2007 6:03:01 PM
Hi!
[NET 2.0, VS 2005, XP SP2]
I need to resize the last column in my listview control so that there won´t
be horizontal scrollbar.
Lets first create lv and add some items:
listView1.View = View.Details;
listView1.Columns.Add("Col 1");
listView1.Columns[0].Width =... more >>
sendkeys give licence error
Posted by Vinki at 4/10/2007 4:06:01 PM
Hello everyone,
When I am trying to start an application using sendkeys. I get an error
that License agreement has expired, but If I try to start thate exe file
manually by going to the directory where exe files resides, it does not give
me any error.
Process myProcess = Process.Star... more >>
Launch default browser - and security
Posted by Alun Harford at 4/10/2007 3:59:57 PM
I have a chat-type program that automatically highlights URLs. When
somebody clicks on one of those URLs, I use:
System.Diagnostics.Process.Start(url);
to start the default browser at that URL. This works, but has a security
issue I'd like to avoid.
Lets say somebody sends the URL:
f... more >>
How to display objects in a ListBox?
Posted by Ikke at 4/10/2007 3:27:41 PM
Hi everyone,
I've created an ArrayList in which there are Objects of type 'Item'. Item
is a simple class which holds a sequence and a link, of which the link
should be displayed in the ListBox.
I've overwritten the property ToString to return the link, yet the ListBox
only shows the name... more >>
regex problem
Posted by Frank at 4/10/2007 3:01:03 PM
Hello,
I have to admit, reg expres are not my thing, I'm having difficulties with
changing an expression. Could someone give me a hand?
I use
^\w*(?=\w*\d)(?=\w*[a-z!@#$%])(?=\w*[A-Z])\w{6,}$
to check a string for at least a lowercase letter, an uppercase and a digit
(password). I want to ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ownership chain
Posted by DaveP at 4/10/2007 1:17:56 PM
how do u keep a ownership chain of objects example below
class1=new class1()
class2=new class2()
how can i show a reference back to class2 from within class2
do i send class1 in as a parameter reference
Thanks
DaveP
... more >>
Best way to access Inherited Methods
Posted by sippyuconn at 4/10/2007 1:16:04 PM
Hi
I have a user control that is designed as below.
I am creating these User Controls Dynamically in another form. They are
multiple types of User Controls all with a common Interface so I can use a
Factory to create them all in a generic way.
The problem is that if I create a IMyInterfac... more >>
Embed IE7 in a Windows Form (with address bar and navigation?)
Posted by james at 4/10/2007 12:50:59 PM
Hi Guys,
Does anyone know how I could embed IE7 in a Windows Form, with the
Address Bar, Tabs and navigation buttons? At my work we have a kiosk
application that needs a web browser. We basically want embed all of
ie7, but don't let people close it. I see the WebBrowser control in
C#, but ... more >>
Comparing structs: System.Drawing.Color
Posted by Zytan at 4/10/2007 12:44:05 PM
I wanted to do something simple like checking my own Color variable
against Color.Black, and == returned false, even though their RGB
values were all 0! Of course, there's the A (alpha) value, but that's
0, too (I assume). I guess I naively thought that == would be
overloaded to work in this c... more >>
WPF question - ControlDesigner for WPF custom controls?
Posted by Doron at 4/10/2007 11:36:02 AM
I've posted the following thread in the MSDN Forums (for WPF), yet I wasn't
answered. I'll appriciate any help :). Thanks.
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1442244&SiteID=1... more >>
enums as bitfields, combining them works even without [FlagsAttribute]
Posted by Zytan at 4/10/2007 11:26:05 AM
I know you can use enums as a bit field with [FlagsAttribute], but,
when I use an enum without [FlagsAttribute], I can still combine one
or more of them. There's no error in doing so. I thought enums were
strongly typed, such that you need an explicit cast from an int to get
a wrong value into... more >>
Trouble With KeyDown Event in Form (Noob)
Posted by Luc The Perverse at 4/10/2007 11:05:16 AM
Hey - I am making my first C# form application! (More a teach myself app
than any pratical application)
I have a listbox that always has the control so I made an event handler for
KeyDown.
I seem to be losing information when Casting to char, since I never have any
problem using special... more >>
sendkeys to open the command window
Posted by Vinki at 4/10/2007 10:52:01 AM
public void sendKeysTest()
{
Process myProcess = Process.Start(@"C:\winnt\system32\cmd.exe");
SetForegroundWindow(myProcess.Handle);
if (myProcess.Responding)
SendKeys.SendWait("{ENTER}");
else
myProcess.Kill();
}
[DllImport("User32.dll")]
public sta... more >>
Win32 API for Search!
Posted by Vai2000 at 4/10/2007 9:41:48 AM
Hi All, Planning to call the same search API which windows Search uses for
searching , when u launch with Ctrl+F,you have the flexibility to provide a
containing text!
VB/C# any thing would work
My search wants to use Containing text
Thanks
Preferred OS:Win2k3
... more >>
How create batch file using Windows SDK Command Prompt?
Posted by Ronald S. Cook at 4/10/2007 9:37:37 AM
Currently (manually), I 1) open a Windows SDK Command Prompt and 2) navigate
to a particular folder. Then I 3) type a command and press enter. The
command is irrelevant (WCF-related) but here it is FYI:
svcutil http://localhost/COWFeedyardService/Services/Pen.svc /out:Pen.vb
/config:App.c... more >>
Emulating String.Format compile-time functionality
Posted by Rick at 4/10/2007 9:07:03 AM
With String.Format, if I have an incorrect number of args specified for a
format string, compile fails. How can I implement similar design-time
functionality for my own string functions?
... more >>
Strange problem receiving packets on a socket
Posted by White Spirit at 4/10/2007 8:41:33 AM
I have the following code to send a packet to a remote socket and
receive a response in return:
System.Net.Sockets.Socket locSocket = new System.Net.Sockets.Socket
(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.Tcp);
System.Net.Sockets.Socket remSocket = new System.Net.Sockets.Socke... more >>
Automation
Posted by John F at 4/10/2007 8:02:19 AM
Hello All,
I need to implement a form of automation between my C# MDI app and MS Word.
Is there a way to actually open up a Word doc in an MDI (like a child) and
make it look like a Word Plugin (for lack of a better description) within my
MDI app?
Thanks for your time,
John-... more >>
trying to do the right thing...
Posted by rodchar at 4/10/2007 7:56:06 AM
hey all,
i often here it's better to develop under User profile instead of
Administrator. But, I hit road blocks right off the bat. I
1. 'm trying to open a project in source safe which is trying to create the
virtual directory in iis and it doesn't have enough rights.
2. And i've tried devel... more >>
The Ultimate Keyword Optimization Guide for Search Engine Positioning
Posted by snow at 4/10/2007 7:52:53 AM
The Ultimate Keyword Optimization Guide for Search Engine Positioning
http://www.163as.com/news/Router%20Commands.html
... more >>
send function name as parameter to other function
Posted by Eran.Yasso NO[at]SPAM gmail.com at 4/10/2007 7:22:31 AM
Hi,
I saw that there's the delegate feature that handles as pointer to
function but in safe mode.
Can I send function name to other function to call it?
for example:
printmeA()
{
Console.WriteLine( "printmeA()");
}
printmeB()
{
Console.WriteLine( "printmeB()");
}
printmeC(... more >>
Craete tiff Image Page by Page
Posted by Rinu Gopalakrishna Pillai at 4/10/2007 6:54:05 AM
Hi,
Please help me to write a dll in C# , that will read each pages of a
tiff image from a file and a memory stream object ( need two ways) and
creatre a new tiff image object.The dll should return the combined tif image
object.
Thnks in advance
Rinu G P... more >>
Permissions/Protection
Posted by ShieldsJared NO[at]SPAM gmail.com at 4/10/2007 6:19:28 AM
So I recently developed an C# application to be ran by quite a few
people from a shared drive. The application is stored in say:
"ROOT". The program accesses files within say "ROOT\BIN". Is there a
way to allow the program access to this folder, but prevent users from
being abel to access it ... more >>
Page Linking
Posted by Pradeep at 4/10/2007 6:08:07 AM
Hi All,
I have search results page( with search keyword) with links to that
particular pages and small description . When you click on the one of
the link the control has to go to specific part of the page where the
search keyword is present (first instance only). I cant use <a href
=""> sim... more >>
GridView CheckBox values lost
Posted by Eugene at 4/10/2007 4:24:01 AM
Hi, I have a problem with web development, using gridview and checkbox.
My gridview has a few checkboxes, and I would retrieve the user modified
values on Save submission (button click). The problem is, consider the
example where I set the initial check value for them to be true (checked), on... more >>
Using Dictionary results in StackOverflowError
Posted by Papa.Coen at 4/10/2007 3:43:45 AM
After repeatedly calling/using a Dictionary I get a
StackOverflowError. What am I doing wrong?
The situation is as follows:
I have ruler class, this class contains some member variables,
encapsulated properties. SOme of those are calculated when get is
called. These kind of properties are act... more >>
read a word doc
Posted by sajithkahawatta at 4/10/2007 3:30:02 AM
i wrote a code to read a doc in asp.net i woked properly in my iis ms
word is installed in this pc. but when i published in another sever in
which there is no ms word instslled it give error in it i used com
reference.
i want to know is there is a way to read a doc when ms word is not
instsll... more >>
read a word doc
Posted by sajithkahawatta at 4/10/2007 3:28:58 AM
i wrote a code to read a doc in asp.net i woked properly in my iis ms
word is installed in this pc. but when i published in another sever in
which there is no ms word instslled it give error in it i used com
reference.
i want to know is there is a way to read a doc when ms word is not
instsll... more >>
how can I write the program to read Active Directory lockout statu
Posted by kevin at 4/10/2007 1:04:01 AM
I have AD in windows 2000 server
I want to read lockout status and enable lockout
I had found by internet, but only found the program by 2003 Server
Have anyone or any codes can help me solve this problem?
Best regard~~~... more >>
How do I check for a Null pointer in a composite reference ?
Posted by pamela fluente at 4/10/2007 12:58:05 AM
I want a simple method or function to check if at least one of the
field in a composite object is null (nothing).
For instance, if Field5 is null I would like that a function such
as
AtLeastOneReferenceNull(Class1.Field3.Property4.Field5.something)
would return TRUE
where
Functi... more >>
BeginAccept callback problem
Posted by Clayton at 4/10/2007 12:14:46 AM
Hi all,
I'm trying to develop a server that listens to incoming calls using
the asycnhronous methods BeginAccept / EndAccept. I start the server
(till this point it is ok) and few seconds later I stop it (with no
clients connected). Once I press the stop button an
ObjectDisposedException is f... more >>
Serialization...
Posted by Atmapuri at 4/10/2007 12:00:00 AM
Hi!
I would like to deserialize an object to which
other unknown objects hold multiple references.
Is it possible to deserialize the object without the
need to destroy and recreate it? How?
Thanks!
Atmapuri
... more >>
|