Help on dynamically changing an event handler
I need help dynamically resetting an event handler.
I have a form with several buttons. I have intialized the Click event
of a particular button thus on the form:
_button_3.Click += new
EventHandler(the_controller.onButton3Click_NewEE);
On the same form, I am establishing a property so that I can reset the
Click event from another class (first part of my question: how do I
establish the get accessor since _button_3.Click has to be on the left
side of += or -=?):
public EventHandler Button3Click{
get { ; }
set { _button_3.Click += value; }
}
To dynamically change the event handler, I want to reset it from
another class containing my Click methods but I have to have the get
accessor (in this case, I want to reset the Click even on button 3
when I click on button 5):
public void onButton5Click(Object o, EventArgs e){
if (some condition){
the_form.Button3Click += new EventHandler(this.onButton3Click_A);
}else{
the_form.Button3Click += new EventHandler(this.onButton3Click_B);
}
}
I also need to remove the event handlers, don't I? Tag: spam post deleted Tag: 553837
How can I intercept when an item is added or removed from a List<of
I have a business object that exposes a collection of other objects
via a List<of Type>. How can I intercept when an item is either added
or removed from this list. Is it possible?
private List<Permission> _Permissions;
public List<Permission2> Permissions
{
get
{
if (_Permissions == null)
{
_Permissions = new List<Permission>();
}
return _Permissions;
}
}
The consumer of this can now say
myobject.Permissions.Add(newPermission). I'd like to be able to run
some code when this happens. What's the best way?
Thanks,
Jason Tag: spam post deleted Tag: 553835
WPF in CF
Hi
Is anyone aware if Microsoft is planning to support WPF in the Compact
Framework? I know that they introduced the WCF in 3.5 CF but have not heard
anything about WPF. (or how about WF)?
Thanks
Ivan Tag: spam post deleted Tag: 553828
Drawing xor line on picture box. HELP!
Hi,
Please help me, how I can make a line drawing on PictureBox similar to
MS paint. I thinking about this: click and hold button, move mouse and
relase button.
I'm trying useing this g.DrawLine(..), but I have a lot of line.
In C++ is a parameter XORPUT, but in C# I can't find it.
Maciek Tag: spam post deleted Tag: 553820
Transparent button
I am looking for an implementation of a button control that has the
functionality of a button on a toolbar control. In another words, the
background needs to be transparent, the borders gone (or optional), but
still act as a button.
I can't seem to find anything out there. Any pointers? Tag: spam post deleted Tag: 553813
size changing at design time
Hi all,
How can I find that the size of my userControl is changed (at design time)?
when a user changes the size of the user control at design time, I do need
to make some correction on the changed size when the AutoSize property is
true.
Any help would be appreciated.
Thanks,
Mehrdad Tag: spam post deleted Tag: 553805
Architecture and Net Remoting
Hi friends!
What is the best architecture based in Net remoting?
is valid get data with datareaders put this data in Generic list and pass it
through of n tier?
are generic list serializable?
is best get data with dataset or datatable and pass it through of n tier?
I am working with Framework 2.0. ASP.NET and C#.
Thanks
Regards
Cesar Tag: spam post deleted Tag: 553800
Urgent Requirement - Senior C#.Net developer - CT
Hi,
Below is an urgent requirement with our client.
In-person Interview needed
Role : - Senior C#.Net developer
Location :- Stamford, CT
Duration:- Contract to Hire
Salary/Annum :- To Market
Qualifications
=B7 Must have 4-year Bachelors degree in technical field.
=B7 7+ years of overall software development experience with at
least 3 years of design, development and deployment of enterprise OO
application in .NET.
=B7 Must have application development using ADO classic, VBA, &
Excel object models
=B7 C# Interop with MSExcel or any MSOffice application
=B7 Must have Financial Background
=B7 Comfortable in quickly learning technologies to achieve
business solution
=B7 Solid understanding of C#, Microsoft .NET platform and
Framework, workflow foundations working knowledge of web services,
Windows Platform, messaging architectures, data models, UML
=B7 Must have thorough understanding of modern development
technologies and infrastructures such as object oriented design, .NET/
Java technologies, and middleware, databases and Unix/Windows servers
=B7 MS Reporting Service knowledge a plus
=B7 Candidates MUST have recent exp. with WINFORMS.
=B7 Working with MS Office applications is a HUGE PLUS.
=B7 Core skills are C#. Net / WinForms /SQL
=B7 Possess good interpersonal skills, be team-oriented,
technically motivated and creative, user oriented with a desire to
learn.
If interested please forward your updated resume along with following
details asked for=85.
1)Contact Details
2)Current Location
3) Availability 4
)Rate/hr
Thanks,
Senthil.N | Jean Martin Inc.
Ph: 917 546 0991
senthiln@jeanmartin.com Tag: spam post deleted Tag: 553799
XML Config File handling with .NET Setup Project
Let's say I have a .NET application that uses an XML file to define
various configuration settings. So that I don't have to create the
file the first time the code runs, I create a "stub" of the file and
include it in a standard Setup package. But what if I have been using
the application for a while, and I add some features to the
application so that I need to re-install it. How do I set the Setup
package to recognize that the file is already there and not overwrite
it with an empty stub? Tag: spam post deleted Tag: 553792
How to set TLS security using RTC API's
Hi,
I am developing simple peer-peer RTC application for monitoring the SDP packets and i need to set the TLS security for the transport.
But iam struggling to achieving this.
Iam using IP addresses as SIP URI for communication.
I am using IRTCClientProvisioning::GetProfile()
IRTCClientProfile::EnablePrsenceEx()
IRTCClientProvisioning::EnableProfileEx()
But iam not able to establish a connection between 2 endpoints as iam not able to register to the server.
This is the code snippet :
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using RTCCORELib;
using System.Xml;
using System.Xml.Serialization;
namespace RTC_1._api
{
public partial class Form1 : Form
{
RTCClientClass _rtc = new RTCClientClass();
IRTCClientProvisioning2 userCreation;
IRTCSession _session; //To create and initializes a session of communication.
IRTCProfile userprofile; //An object for the profile of the user
IRTCClientPresence2 presence;
public Form1()
{
InitializeComponent();
}
public void RTC_IRTCEventNotification_Event_Event(RTC_EVENT RTC_event, object pEvent)
{
switch (RTC_event)
{
case RTC_EVENT.RTCE_SESSION_STATE_CHANGE:
{
IRTCSessionStateChangeEvent sessionEvent = null;
sessionEvent = (IRTCSessionStateChangeEvent)pEvent;
OnIRTCSessionStateChangeEvent(sessionEvent);
break;
}
case RTC_EVENT.RTCE_MEDIA:
{
IRTCMediaEvent mediaEvent = null;
mediaEvent = (IRTCMediaEvent)pEvent;
OnIRTCMediaEvent(mediaEvent);
break;
}
case RTC_EVENT.RTCE_MESSAGING:
{
IRTCMessagingEvent IMEvent = null;
IMEvent = (IRTCMessagingEvent)pEvent;
OnIRTCIMEvent(IMEvent);
break;
}
case RTC_EVENT.RTCE_PROFILE:
{
MessageBox.Show("RTCE_PROFILE");
IRTCProfileEvent2 profileEvent = null;
profileEvent = (IRTCProfileEvent2)pEvent;
OnProfileEvent(profileEvent);
break;
}
case RTC_EVENT.RTCE_REGISTRATION_STATE_CHANGE:
{
MessageBox.Show("RTCE_REGISTRATION_STATE_CHANGE");
IRTCRegistrationStateChangeEvent regEvent = null;
regEvent = (IRTCRegistrationStateChangeEvent)pEvent;
OnRegChangeEvent(regEvent);
break;
}
case RTC_EVENT.RTCE_CLIENT:
{
IRTCClientEvent clientEvent;
clientEvent = (IRTCClientEvent)pEvent;
OnClientEvent(clientEvent);
break;
}
}
}
private void OnClientEvent(IRTCClientEvent clientEvent)
{
RTC_CLIENT_EVENT_TYPE clientState;
clientState = clientEvent.EventType;
if (clientState == RTC_CLIENT_EVENT_TYPE.RTCCET_ASYNC_CLEANUP_DONE)
{
MessageBox.Show("srinivas akella");
}
}
private void OnRegChangeEvent(IRTCRegistrationStateChangeEvent regEvent)
{
RTC_REGISTRATION_STATE regState;
regState = regEvent.State;
switch (regState)
{
case RTC_REGISTRATION_STATE.RTCRS_REGISTERING:
MessageBox.Show("RTCRS_REGISTERING");
break;
case RTC_REGISTRATION_STATE.RTCRS_REGISTERED:
MessageBox.Show("RTCRS_REGISTERED");
break;
case RTC_REGISTRATION_STATE.RTCRS_LOGGED_OFF:
MessageBox.Show("RTCRS_LOGGED_OFF");
break;
case RTC_REGISTRATION_STATE.RTCRS_ERROR:
MessageBox.Show("RTCRS_ERROR");
break;
}
}
private void OnProfileEvent(IRTCProfileEvent2 pEvent)
{
if(pEvent.EventType == RTC_PROFILE_EVENT_TYPE.RTCPFET_PROFILE_GET)
{
if (pEvent.StatusCode == 0)
{
MessageBox.Show("1");
userprofile = (IRTCProfile)pEvent.Profile;
presence.EnablePresenceEx(userprofile, "bb", 0);
presence.SetLocalPresenceInfo(RTC_PRESENCE_STATUS.RTCXS_PRESENCE_ONLINE, null);
userCreation.EnableProfileEx(userprofile, 0x0000000F, 0x0000000F);
MessageBox.Show("1");
}
}
}
void OnIRTCIMEvent(IRTCMessagingEvent IMEvent)
{
if (IMEvent.EventType == RTC_MESSAGING_EVENT_TYPE.RTCMSET_MESSAGE)
{
string messageReceivedFromUserUri = IMEvent.Participant.UserURI;
string messageHeader =IMEvent.MessageHeader;
string message = IMEvent.Message;
MessageBox.Show(messageReceivedFromUserUri + " : " + message);
}
}
void OnIRTCSessionStateChangeEvent(IRTCSessionStateChangeEvent sessionevent)
{
RTC_SESSION_STATE sessionState;
sessionState = sessionevent.State;
switch (sessionState)
{
case RTC_SESSION_STATE.RTCSS_IDLE:
textBox3.Text = "Session is IDLE";
break;
case RTC_SESSION_STATE.RTCSS_INCOMING:
textBox3.Text = "Session is INCOMING";
//Play a ring on the local PC to alert user of incoming call.
objRTC.PlayRing(RTC_RING_TYPE.RTCRT_PHONE, true);
//Get the incoming session.
objSession = sessionevent.Session;
objSession.Answer();
break;
case RTC_SESSION_STATE.RTCSS_ANSWERING:
textBox3.Text = "Session is ANSWERING";
// Stop the ringing
objRTC.PlayRing(RTC_RING_TYPE.RTCRT_PHONE, false);
break;
case RTC_SESSION_STATE.RTCSS_INPROGRESS:
textBox3.Text = "Session is INPROGRESS";
break;
case RTC_SESSION_STATE.RTCSS_CONNECTED:
textBox3.Text = "Session is CONNECTED";
break;
case RTC_SESSION_STATE.RTCSS_DISCONNECTED:
textBox3.Text = "Session is DISCONNECTED";
objSession = null;
break;
}
}
void OnIRTCMediaEvent(IRTCMediaEvent mediaEvent)
{
RTC_MEDIA_EVENT_TYPE mediaType;
IVideoWindow videoWindow = null;
mediaType = mediaEvent.EventType;
switch (mediaType)
{
case RTC_MEDIA_EVENT_TYPE.RTCMET_STARTED:
{
videoWindow = objRTC.get_IVideoWindow(RTC_VIDEO_DEVICE.RTCVD_RECEIVE);
videoWindow.SetWindowPosition(100, 100, 400, 400);
videoWindow.Visible = 1;
textBox4.Text = "Video Window is Openend";
break;
}
case RTC_MEDIA_EVENT_TYPE.RTCMET_FAILED:
{
textBox4.Text = "Video Session is failed";
break;
}
case RTC_MEDIA_EVENT_TYPE.RTCMET_STOPPED:
{
textBox4.Text = "Video Session is closed";
videoWindow.Visible = 0;
videoWindow = null;
break;
}
}
}
RTCClientClass objRTC = new RTCClientClass();
IRTCSession objSession;
private void Connect_Click(object sender, EventArgs e)
{
userCreation = _rtc;
presence = _rtc;
_rtc.Initialize();
_rtc.SetPreferredMediaTypes(0x0000001F, true);
_rtc.EventFilter = 0x00000080 | 0x00000004 | 0x00000020 | 0x00000400 | 0x00000002;
_rtc.IRTCEventNotification_Event_Event += new IRTCEventNotification_EventEventHandler(RTC_IRTCEventNotification_Event_Event);
_rtc.ListenForIncomingSessions = RTC_LISTEN_MODE.RTCLM_BOTH;
userCreation.GetProfile(null, null, "172.25.218.48", "172.25.218.1", 4, 0);
MessageBox.Show("Over");
}
private void CreateSession_Click(object sender, EventArgs e)
{
_session = _rtc.CreateSession(RTC_SESSION_TYPE.RTCST_PC_TO_PC, null, userprofile, 0x00000001);
_session.AddParticipant("172.25.218.144", "srinivas");
}
}
}
what could be the problem in registering the profile with the server.
how to register for a server if IP addresses are used for peer-peer communication.
I would be greatful to u if u provide any pointers. Tag: spam post deleted Tag: 553790
Help with List<>..Find()
I have seen the samples for Find that explain how to use the predicate, but
they are always searching for a pre-defined value. What I don't understand
is how to search for a random value stored in a variable.
For example,
List<int> items;
int val=3;
items.Add(1);
items.Add(2);
items.Add(3);
items.Add(4);
How do I search the list "items" for the value in the variable val?
Thanks,
Phil Tag: spam post deleted Tag: 553780
CHINA WHOLESALE NIKE MAX 87 95 90 360 2007 LTD TN SHOES
Thenikeshoes DOT net
If you are interested in any of our products, please contact our
salesman and they will respond in 24 hours after hearing from you. If
you cannot find the shoes you are seeking for in the list, please also
contact with us and send us your photos, we will do our best to find
the shoes from our partners and satisfy you with our best service.
Our main customers are from Europe and North America and we know well
about the requirements for those markets, such as style number,
sticker and box details. We sincerely hope to establish beneficial
partnership with your valued company Tag: spam post deleted Tag: 553779
Need good book for MOBILE c# development
I am a C# programmer. I'm looking for a good book about .NET MOBILE
development any advice. Thanks in advanced. I already post this on the
mobile group like a week a go I think that group is dead. no one
answer Tag: spam post deleted Tag: 553778
ListView control, virtual mode, ListViewItems shown
Hi,
How to get a list of ListViewItems that are currently shown in a Windows
Form ListView control when that that control is in a virtual mode? Tag: spam post deleted Tag: 553777
Logical AND (&&) in an If Statement
This is a very basic question, but I can' turn up a statement on the
subject:
In C#, if I have
If (x == 1 && y == 2)
{
...
}
Suppose x is not equal to 1, does the logical test for y == 2 still get
executed?
TIA
Charles Tag: spam post deleted Tag: 553774
user.config file question
Hi
I have a problem connected with user.config file. I am using default
settings.settings . To settings.settings I am adding one user scope
string and one application scope string. Thus app.config file is added
to my project. When I build and run the project app.exe.config file is
created and added to application base directory. This file contains
two strings added previously.
Q1: No user.config file is created in my documents and settings
folder. Why? Is that because the application should be installed using
msi installer rather than xcopy?
I expected Visual Studio to separate user settings from app settings
(at build time )and create user.config in user specific folder, and
app.exe.config in application base folder.
Best Regards
PK Tag: spam post deleted Tag: 553771
Accessing a web service - proxy problem
I wrote a VS 2005 C# express programme that accesses a web service. It works fine when there's a
direct connection to the internet, but on two different PCs with internet access via a proxy, I get
this exception:
System.Net.WebException: The request failed with HTTP status 407: Proxy Authentication Required.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message,
WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[]
parameters)
The internet works fine on this PC with IE and Firefox. In these two browsers, a proxy is set up.
Use a proxy server for your LAN is ticked, and the address and port (80) has been entered.
Am I right in saying that my programme is not able to access the settings of the web browsers, so I
need to configure my programme with the proxy details. If so, how do I supply this information to
the proxy. Or is there a way to access the settings from IE/Firefox? Tag: spam post deleted Tag: 553769
ThreadStatic attribute
I came across the ThreadStatic attribute today, but I'm a bit confused
by it.
I understand that it makes a variable static to a particular thread,
so each thread will have it's own value for it (unlike a regular
static variable). But then what makes it different to just an
ordinary class level variable? In other words, what's the difference
between var1 and var2 below?
public class Test
{
[ThreadStatic]
public static int var1;
public int var2;
} Tag: spam post deleted Tag: 553766
Problem with EnabelVisualStyles and displaying ToolBarButtons
Hi,
After adding the Application.EnableVisualStyles() in the Main-Method of
my application, i got some strange problems
with ToolBarButtons. When the Image of the button is set during
designtime everything's ok. But all the buttons
which load their image during runtime from an ImageList and/or are
dynamicaly created have the following problems:
In default-state the button is invisible, in down-state too, but the
border higlight of the mouseover-state works.
Image is not displayed in either state.
Thanks for any help!
Martin
PS: Sorry for my bad english, but the german community is far too small
at the moment ;) Tag: spam post deleted Tag: 553761
scrolling complete column in DataGridView?
Hi!
I need to scroll horizontal only an integer column, not per pixel. I
thougt it would be best to override the onscroll method, but the
standard behavior doesn't change even if I do nothing in onScroll
*** Sent via Developersdex http://www.developersdex.com *** Tag: spam post deleted Tag: 553758
Free PGP .NET library
Hi,
I'm looking for a free PGP library written in C# to encrypt e-mails and
e-mail attachments.
Ralf Tag: spam post deleted Tag: 553750
WCF: how to find wheremy server is???
I need to find my server over the network!!! so my installer installs
client on one machine and server on other machine on the same network.
How can i do that??? How can my client know where my server is???
please help
sunny a newbee!!!! Tag: spam post deleted Tag: 553749
Linq and timeout
Been having a weird issue for the past few months -- might have started when
I moved my asp.net application to framework 3.5 so I could start using Linq
to Sql. When I open my application in VS2008 and click run, it ALWAYS
returns back to me in about 30 seconds saying there was a timeout in the
first bit of Linq that was executed. If I press "restart", to try running
the application again, it ALWAYS works the second time, and will continue to
work unless I wait about 15 or 30 minutes between runs. Then I'm back to the
timeout again on first connection. The sql server is on another box on the
same network, and I can assure you, there are no connectivity issues getting
to it. Feels like some sort of "connection pool" timeout, but I'm guessing.
Any ideas?
Thanks for the help! Tag: spam post deleted Tag: 553739
Linq and timeouts
Been having a weird issue for the past few months -- might have started when
I moved my asp.net application to framework 3.5 so I could start using Linq
to Sql. When I open my application in VS2008 and click run, it ALWAYS
returns back to me in about 30 seconds saying there was a timeout in the
first bit of Linq that was executed. If I press "restart", to try running
the application again, it ALWAYS works the second time, and will continue to
work unless I wait about 15 or 30 minutes between runs. Then I'm back to the
timeout again on first connection. The sql server is on another box on the
same network, and I can assure you, there are no connectivity issues getting
to it. Feels like some sort of "connection pool" timeout, but I'm guessing.
Any ideas?
Thanks for the help! Tag: spam post deleted Tag: 553738
Using delegates between main/sub threads
Dear All,
Here is a problem I am facing (it might be too simple, but then I
admit I am not a Guru:-)
I have a main thread, in managed C++, that deals with displaying a
form and some controls.
I invoke another thread for some processing from this thread, so
basically the main thread is waiting on the sub thread.
Now the sub-thread has to keep posting its progress to the main
thread. I have a delegate mechanism for that. So using mutex, I update
the progress variable in the sub-thread's scope, and then invoke the
main thread's delegate method to display the progress.
The problem is just when the delegate is invoked. Control switches
form sub to main thread. But main thread is already waiting for the
sub thread to finish, so it deadlocks right there.
Any ideas/suggestions? The solution seems simple, just that I dont get
it yet.
Thanks! Tag: spam post deleted Tag: 553723
NUnit, WF and email
Hi,
I have a Sequential Workflow running in my application at a regular
interval.
I have a set of NUnit tests that can validate the outcome of the above
process.
I would like to add one more activity at the end of the workflow that
will run the NUnit tests and email the results in the case of failure.
Thanks Tag: spam post deleted Tag: 553712
Gridview dynamic pagesize
I would like to assign dynamic pagesize to a gridview called
gridCustomer. The customer data is a List with a column called
groupId . When a new groupid is encountered I would like to display
data in a new page. The code doesn't seem to work. Can you please
help.
gridCustomer.DataSource = customer;
int groupId,groupRowId,count;
groupId = 1;
for (int i = 0; i < gridCustomer.Rows.Count; i++)
{
GridViewRow row = gridCustomer.Rows[i];
Label lblGroupId =
(Label)row.FindControl("GroupId");
groupRowId = Convert.ToInt32(lblGroupId.Text);
if (groupId == groupRowId)
{
count = count + 1;
}
else
{
gridCustomer.PageSize = count;
count = 0;
groupId = groupId + 1;
}
}
gridCustomer.DataBind(); Tag: spam post deleted Tag: 553687
FindControl in Repeater
I dynamically create controls (textboxes) in a repeater control. I know
their names (eg. TextBox1). How do I find the text of TextBox1 in the Form?
FindControl does not seem to work. Tag: spam post deleted Tag: 553683
Windows Service Deployment
I have a Windows Service that I am deploying by setting a Deployment project
in my solution.
The problem I am having is with the app.config file. This where we store
our connection string and folder locations.
My development app.config is different from my clients.
When I send him an msi file, I have to either add the clients app.config
file into my project in 2 locations (as I am running as an exe as well as a
Service - which calls the code from the exe project) or send him the
app.config and have him replace it.
Is there a way to tell the deployment project to include a different
app.config file than is currently in the project.
Can you set up multiple build type (personalities) to run for testing?
Thanks,
Tom Tag: spam post deleted Tag: 553682
Datasets
What is the easiest way to make a dataset and all the data inside
viewable from multiple forms. The problem i experience is when i add
data in one form i cannot view that data i added to the dataset in
another form. Please help. Thanks Tag: spam post deleted Tag: 553675
=?ISO-8859-1?Q?generique_pharmacie_en_France_acheter_lipitor_canada?=
generique pharmacie en France acheter lipitor canada concern=E9es par
cette achat lipitor belgique soft generique Acheter acheter lipitor
canada en ligne sur internet femme en termes de acheter lipitor us usa
+++ Cholest=E9rol +++ Cholest=E9rol +++ Cholest=E9rol +++
+
http://jhku.net/ACHETER-LIPITOR-BON-MARCHE/
http://jhku.net/ACHETER-LIPITOR-BON-MARCHE/
ACHETER LIPITOR BON MARCHE (Western Union, Diners, AMEX)
http://WWW.ACHETER-LIPITOR-BON-MARCHE.TK/
http://WWW.ACHETER-LIPITOR-BON-MARCHE.TK/
+
+
ACHETER ZOCOR BON MARCHE (ALL CARDS ACCEPTED !!!)
http://jhku.net/ACHETER-ZOCOR-BON-MARCHE/
http://jhku.net/ACHETER-ZOCOR-BON-MARCHE/
ACHETER ZOCOR BON MARCHE (Western Union, Diners, AMEX)
http://WWW.ACHETER-ZOCOR-BON-MARCHE.TK/
http://WWW.ACHETER-ZOCOR-BON-MARCHE.TK/
ACHETER LIPITOR BON MARCHE (ALL CARDS ACCEPTED !!!)
+
+
+
+
+
http://forums.ipodhacks.com/showthread.php?t=3D23946
acheter lipitor canada generique bon marche acheter lipitor canada en
linge sans presription femme en termes de acheter lipitor us usa achat
lipitor suisse au rabais en ligne sans prescription acheter lipitor
belgique soft generique on acheter lipitor us usa a vendre achat
lipitor belgique par email femme en termes de acheter lipitor achat
lipitor belgique generique bon marche comprimes de acheter lipitor en
France bon marche achat lipitor au rabais en ligne sans prescription
acheter du achat lipitor canada citrate de ATORVASTATINE soft en
France comprimes de acheter lipitor us usa bon marche Acheter acheter
lipitor canada en ligne sur Webacheterenligne acheter lipitor au
rabais au Canada un Achat de acheter lipitor avec livraison un Achat
de achat lipitor en France avec livraison Achetez Le acheter lipitor
canada achat acheter lipitor discret acheter du acheter lipitor cinq
acheter achat lipitor canada bon marche en linge solucion impotencia
canada acheter lipitor suisse par email achat lipitor soft generique
achat lipitor sans ordonnance achat lipitor belgique en ligne acheter
lipitor belgique commande en ligne acheter lipitor au rabais en ligne
sans prescription un Achat de achat lipitor avec livraison citrate de
ATORVASTATINE soft acquerir acheter lipitor en France soft achat
lipitor soft generique achat lipitor commande en ligne acheter lipitor
concern=E9es par cette acheter lipitor canada bon marche en linge Tag: spam post deleted Tag: 553670
Cannot find Mutex created in win service from win application
Hi All,
I have a program that can be started as windows service or as an
windows app.
I need to avoid starting this program as an application if it is
already started as a win service.
In code when program starts as a win service I create named mutex.
Then if user tries to start program as a win application I am checking
if Mutex with the same name exists already and exit program if Mutex
found.
My problem is that Mutex that was created when program started as win
service cannot be found when program starting as a win application.
If I try to run program as a win application twice during second
attempt Mutex is found.
I would appreciate if anyone can point me how to fix this.
Thanks,
Roman Tag: spam post deleted Tag: 553667
How to Right Justify Infragistics UltraStatusPanel?
I have Infragistics 2007, Volume 3:
I have a UltraStatusBar with two UltraStatusPanels:
1. Left Panel and
2. Right Panel
I want the Right Panel to appear on the right and to have its text
right justified. The RightPanel.SizingMode = Spring does not seem to
work as the comparable option does with Microsoft's regular
ToolStripStatusLabel.Spring = true.
Please advise.
Thanks Tag: spam post deleted Tag: 553665
calling javascript from asp.net c# application
Hi,
I have a the following javascript code(see below) within my asp.net page,
I would like to be able to set the value of UnSavedChanges within my c#
behind code to indicate that changes have been made but not yet saved.
For Example I have a gridview rowUpdating event as follows
protected void gvwCommodity_RowUpdating(object sender,
GridViewUpdateEventArgs e)
{
}
Do you know of any way of kicking off the SetUnSavedChanges event within
this method or setting the UnSavedChanges variable any other way..
Thanx in advance
Robert
///Javascript code below
/// this code uses essential objects and works on the callback panel
onClientClick
// event
var UnSavedChanges
function SetUnSavedChanges(callBackPanel)
{
UnSavedChanges = true;
}
function SetSavedChanges(callBackPanel)
{
UnSavedChanges = false;
}
function AdminTabStripHandler(e, eventInfo)
{
if (UnSavedChanges == true)
{
var RetVal = confirm("Are you Sure you want to leave this screen
without saving changes");
if (RetVal == true)
{
SetSavedChanges();
}
return RetVal;
}
} Tag: spam post deleted Tag: 553664
Local & remote db server - the differences... please help!
Hi everyone,
Hope you can help me with this one. We are doing a batch process on
both a local server and remote. By local I mean the db server is on
the same box and by remote I mean the db server is on another computer
(but in the same room, so not too far away). The db is: Microsoft SQL
Server 2005 - 9.00.3042.00
We have noticed that the remote server takes a lot longer that the
local. A lot longer. We are trying to think of the different ways that
could account for this. Essentially identify the difference between
local and remote connections in ASP.NET 3.0.
Yes, I know what your thinking - its the network. No, the network is
fine - its massive.
I would greatly appreciate any suggestions/comments/ideas/
possibilities code-diagnostics that you may be able to offer. i'm
really stuck. Cant't figure out why its taking so long...
Could it be a paremeter or somethign in the connection pool or is the
connection pool the same for local and remote. These are the things i
don't know about...
Thanks,
Al. Tag: spam post deleted Tag: 553661
httpWebRequest result to HtmlDocument
Hello,
I use HttpWebRequest to strip down code from a web page
and then I save it in a string variable.
I need to create HtmlDocument object from that code in
string variable.
Can anyone give an idea, without opening the page in a
webBrowser, of course :)
Kind regards,
Ivan Tag: spam post deleted Tag: 553660
Uploading a directory instead of a file
If i go as follows:
<asp:FileUpload ID=3D"dirTemp" runat=3D"server" Width=3D"400px" /><br /=
>
The element i create is requiring me to select a file. Can i use this =
control to point out a directory? Is there another one?
-- =
Konrad Viltersten Tag: spam post deleted Tag: 553659
LINQ inheritance problem
Hello everyone,
I have a c# project with a sql server database.
I have a number of lookup tables in my database which I successfully managed
to import into my LINQ dataclasses.
eg.
Table: tlkpColor
(PK) tlkpColorID
strDescription
dtmCreate
strCreateUser
Table: tlkpCompanyType
(PK) tlkpCompanyTypeID
strDescription
dtmCreate
strCreateUser
an so on...
I would like to create a generic lookup object to inherit from for my lookup
objects generated from the tables. I have tried to create a generic object
and setting discriminator property to implement inheritance as seen on some
tutorials on the net but I'm just not having any luck (and I have spent a
long time on this).
eg.
Table: tlkpGeneric
strDescription
dtmCreate
strCreateUser
Table: tlkpColor
(PK) tlkpColorID
Table: tlkpCompanyType
(PK) tlkpCompanyTypeID
etc...
I've also tried other combinations (eg. overring properties in subclasses)
Essentially, I would like to union all my lookup tables into one generic one
with a composite primary key (id + type/discriminator value) but using
inheritance.
Am I tackling this the right way?
I hope I am making sense, sorry if I am not. Please let me know if I need to
clarify anything.
Thank in advance,
Leo Tag: spam post deleted Tag: 553655
Best way to interop C# System.String with C++ std::string&
I have some C++ unmanaged code that takes std::string& arguments (as
reference), and fills them (possibly growing the string).
I want to call this code through PInvoke (DllImport), possibly using
wrapper layers in unmanaged C++ and C#.
I've thought about two approaches:
1) To pass a StringBuilder, this is converted to a char* in C++, the
wrapper code converts the char* to a std::string (copy), and in the
end, copies the std::string content back to the char*. The problem is
that the StringBuilder cannot grow in C++ code (or maybe it can? with
callbacks?), it must be initialized in C# with a size that is not
known beforehand; this also seems insecure.
2) To pass a "ref String", this is converted to a "char** arg". The
wrapper code converts *arg to a string, and in the end, should set
*arg to a new value. I don't know if the *arg pointer can really be
changed... if I create a new char[] block in the C++ heap and pass it
back (setting it to *arg), it results in a heap error (although the
string returned is correct).
All of these approaches involves copying the data (sometimes more than
twice), but, by now, I just want to make it work. Are there better
ways to accomplish this?
Thanks,
Edson Tag: spam post deleted Tag: 553651
Problem with the filtering of a property grid
Hello.
I created a designer in c#. Everything is working excepted the
property grid.
I want to show only the properties I added. So I created a class which
inherits of a button. And I added properties.
But I want to filter the base properties. So to do this, I inherit my
class from ICustomTypeDescriptor.
In the function getProperties, I filter. And I can show only my
properties. But on my host designer, the text of my button and the
position disappeared.
I mean when I add my custom button without filtering. I see it normal.
And if I filter, the text and position are removed. So it appears in
the left corner and I can't move it.
How can I fix the problem?
Thank you. Tag: spam post deleted Tag: 553650
media player...
Hi,
i want to devlope a new media player for CF in c#,but i m not getting
how to start. Can anyone tell me how should i go for that..?
Any suggestion............? Tag: spam post deleted Tag: 553648
namespaces
Are these equivalent?
------------------
using System;
namespace SomeNamespace
{
}
-------------------
namespace SomeNamespace
{
using System;
} Tag: spam post deleted Tag: 553644
www.jerseynflstore.cn china wholesale nhl nfl mlb football jersey
--------------------WWW.JERSEYNFLSTORE.CN---------------------
jersey,supply,NFL,MLB,NBA,NHL SuperBowl NFL jersey from wholesale NFL
NBA MLB NHL Jerseys.Soccer Jersey china supplier,nlf NBA Jersey Tag: spam post deleted Tag: 553643
Get System Icon for any file/folder
Hi,
How can I retrieve the system icon associated with a file/folder so that
I can show it in the list view adjacent to the file/folder name?
Regards,
Ashutosh Bhawasinka Tag: spam post deleted Tag: 553638
Refering to "Program Files" directory
On WinXP, the directory where all the installed programs are stored, can
go under different names, depending on the language of the OS. E.g.
"c:\Program Files" on one system might be "d:\Program" on another. How
dows one refer to the "right" path? I'm remembering something along
"$Program" but i'd like to get an confirmation.
--
Konrad Viltersten Tag: spam post deleted Tag: 553634
OnClick Handler
In a C# project I have an array of PictureBoxes.
I form an event handler for each picturebox as it is created using i as an
index.
PictureBox1[i].Click += new System.EventHandler(ClickHandler);
In the event handler I would like to determine the index of the clicked box.
The code below does not return the index.
public void ClickHandler(Object sender, System.EventArgs e)
{
textBox1.Text = sender.ToString();
}
Any help would be appreciated.
Thanks,
Jim Tag: spam post deleted Tag: 553618
ASP cookie reading using C#
I have a C# utility that runs in ASP website. when user logs in the
ASP code writes the cookie. I am unable to read it in C# code.
I am using Request.Cookies["cookiename"].Value.ToString()
I can read the same cookie in ASP code.
If I say Request.Cookies("CookieName") in ASP that works fine.. Tag: spam post deleted Tag: 553617