|
|
A bit but I'm still not sure I'm there completely. Do you want to add an item to the list box but not have it displayed, i.e. have an invisible item.
I must have misunderstood as that doesn't make a lot of sense to me.
Perhaps you mean that you have added some items to the list box but they are not being displayed. Is that it?
Alan.
|
|
|
|
|
iam trying to hide a value from the user but still show certain infomation thats y iam doing the items adding programmically
|
|
|
|
|
The ListBox is an user interface element and it's function is to display items. You can't selectively hide certain items.
What you can do is store all your items in a list and then only add the items that you want the user to see to the ListBox.
Alan.
|
|
|
|
|
I'm quite happy to assist you with programming but I don't want to have spend time interpreting your text speak such as "y iam".
So please make it easy for people to help you!
Alan.
|
|
|
|
|
|
How to get/store all VSS(Visual Source Safe) user names inside the windows DataGridView control or inside a physical table in database ?
Please reply.
Thanks
Raj Ram
raj
|
|
|
|
|
Hi there,
Try by referencing Microsoft.VisualStudio.SourceSafe.Interop.dll
You may use IVSSDatabase class which has Users property.
Calin
|
|
|
|
|
I have developed a windows Application/Tool in C#.Net which is about to be released as a Beta version.
I need to add an Auto Update Feature to my Tool similar to FireFox Software Update.
This Feature should be able to notify End User about the new Version's availability and allow them to Update their Tool.However while updating the Tool, it should only update the required Files(.dll or .exe).The Tool always runs in the background, so without impacting the current process it should update the Tool. I have looked out for many solution but they simply don't meet my requirements.
It would be helpfull, if any one of you come out with the solution.
Thanks in Advance!
Aspiring Techie,
Vishnu Nath
|
|
|
|
|
|
Hi Guys,
Sorry if I am posting this in the wrong Forum. I have an web app that makes use of the ReportViewer control. In this control I am calling a Remote SQL 2005 Report. This app works fine if I run in from IIS. I can export without any issues.
We added this app into a Portal which is a Windows App and uses the Web Browser Control to display aspx pages. The page and the report displays just fine, but when I try to export the report using the Export link on the ReportViewer toolbar I get the following Error Message:
ASP.NET session has expired. Can anyone please give me guidance as to what I must do to be able to get this report exportable.
Your help is greatly appreciated.
Elizma
|
|
|
|
|
Try the ASP.NET forum, you will get better responses.
|
|
|
|
|
I have a grid with date data displaying as YY/MM/DD inside it with update functionality.
I want to check that user cant enter date with any other format.
|
|
|
|
|
The process you need to do is called validation.
If you google for 'validate' AND 'insert the type of grid you are using here', you will get thousands of possible solutions.
Do a little work first, then if you get stuck on a particular part of it, ask again.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I have a project working with WSE 3.
The service:
[Policy("StandardServicePolicy")]
public class Service1 : System.Web.Services.WebService
{
[WebMethod]
public string PlainHelloWorld(string test)
{
return string.Format("{0} = {1}",test,DateTime.Now.ToString("dd/MM/yyyy"));
}
}
file app.config for service
<configuration>
<configsections>
<section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</configsections>
<microsoft.web.services3>
<policy filename="wse3policyCache.config" />
</microsoft.web.services3>
</configuration>
and the wse3policyCache.config file:
<policies xmlns="http://schemas.microsoft.com/wse/2005/06/policy">
<extensions>
<extension name="usernameForCertificateSecurity" type="Microsoft.Web.Services3.Design.UsernameForCertificateAssertion, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<extension name="x509" type="Microsoft.Web.Services3.Design.X509TokenProvider, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<extension name="requireActionHeader" type="Microsoft.Web.Services3.Design.RequireActionHeaderAssertion, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</extensions>
<policy name="StandardServicePolicy">
<usernameforcertificatesecurity establishsecuritycontext="false" renewexpiredsecuritycontext="true" requiresignatureconfirmation="false" messageprotectionorder="SignBeforeEncrypt" requirederivedkeys="false" ttlinseconds="300">
<servicetoken>
<x509 storelocation="LocalMachine" storename="My" findvalue="CN=TEST" findtype="FindBySubjectDistinguishedName" />
</servicetoken>
<protection>
<request signatureoptions="IncludeAddressing, IncludeTimestamp, IncludeSoapBody" encryptbody="true" />
<response signatureoptions="IncludeAddressing, IncludeTimestamp, IncludeSoapBody" encryptbody="true" />
<fault signatureoptions="IncludeAddressing, IncludeTimestamp, IncludeSoapBody" encryptbody="false" />
</protection>
</usernameforcertificatesecurity>
<authorization>
<allow user="CN=CIC2008" />
<deny user="*" />
</authorization>
<requireactionheader />
</policy>
</policies>
The client:
localhost.Service1Wse service = new StandardServicePolicyApp.localhost.Service1Wse();
service.SetClientCredential(token);
Policy policy = CreatePolicy();
service.SetPolicy("StandardClientPolicy");
MessageBox.Show(service.PlainHelloWorld("Test"));
the app.config file in client:
<configuration>
<configsections>
<section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<sectiongroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="StandardServicePolicyApp.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirepermission="false" />
</sectiongroup>
</configsections>
<microsoft.web.services3>
<policy filename="wse3policyCache.config" />
</microsoft.web.services3>
<applicationsettings>
<standardservicepolicyapp.properties.settings>
<setting name="StandardServicePolicyApp_localhost_Service1" serializeas="String">
<value>http://localhost:7703/Service1.asmx</value>
</setting>
</standardservicepolicyapp.properties.settings>
</applicationsettings>
</configuration>
and the wse3policyCache.config in client
<policies xmlns="http://schemas.microsoft.com/wse/2005/06/policy">
<extensions>
<extension name="usernameForCertificateSecurity" type="Microsoft.Web.Services3.Design.UsernameForCertificateAssertion, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<extension name="x509" type="Microsoft.Web.Services3.Design.X509TokenProvider, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<extension name="requireActionHeader" type="Microsoft.Web.Services3.Design.RequireActionHeaderAssertion, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</extensions>
<policy name="StandardClientPolicy">
<usernameforcertificatesecurity establishsecuritycontext="false" renewexpiredsecuritycontext="true" requiresignatureconfirmation="false" messageprotectionorder="SignBeforeEncrypt" requirederivedkeys="false" ttlinseconds="300">
<servicetoken>
<x509 storelocation="CurrentUser" storename="My" findvalue="CN=TEST" findtype="FindBySubjectDistinguishedName" />
</servicetoken>
<protection>
<request signatureoptions="IncludeAddressing, IncludeTimestamp, IncludeSoapBody" encryptbody="true" />
<response signatureoptions="IncludeAddressing, IncludeTimestamp, IncludeSoapBody" encryptbody="true" />
<fault signatureoptions="IncludeAddressing, IncludeTimestamp, IncludeSoapBody" encryptbody="false" />
</protection>
</usernameforcertificatesecurity>
<requireactionheader />
</policy>
</policies>
with the Certificate file with CN = TEST.
When I run this project, the error message has been throw
WSE910: An error happened during the processing of a response message, and you can find the error in the inner exception. You can also find the response message in the Response property.
Security requirements are not satisfied because the security header is not present in the incoming message.
How can I fix this error??? Please help me!!!!
Thanks !
How can I fix this error
I am 27 years old and I'm working with C# and Visual Basic .NET.
I've worked also as Win developer and Web developer.
I like to share as much as possible knowledge and projects with other people.
|
|
|
|
|
How to apply DateTime Picker in data gridview when user clicks on particular cell
|
|
|
|
|
|
Hi.
I want to create a control that lets user to edit records he/she created in a long while like say a year or two. To show what I have in mind I created a picture: http://sarvsoft.com/RecordEditControl.GIF[^]
In Asp.net I had an option called Edit template which would solve exactly such problems: A set of repetitive controls. I took a look at DataGridView and it seems not to have such an option. What do you suggest?
1. Create my own custom control.
2. Use DataGridColumnStyle along with a DataGridView , I'm not sure if this works. Never did it before.
3. There is a better way?
Thanks a lot in advanced.
"In the end it's a little boy expressing himself." Yanni
|
|
|
|
|
There is a VB.NET Power Pack that has a DataRepeater control in it that should do what you want. Here[^]
|
|
|
|
|
Thanks for the link. I have to do it in C# but it will be a help anyway.
"In the end it's a little boy expressing himself." Yanni
|
|
|
|
|
Dave Kreskowiak wrote: There is a VB.NET Power Pack that has a DataRepeater control in it that should do what you want.
I just finished adding it to my C# project and it works great. It did exactly what I wanted. I don't know what to say to express my thanks. It saved me a lot of time. Your help is really appreciated. Thank you again and so much.
"In the end it's a little boy expressing himself." Yanni
|
|
|
|
|
Hi all,
I am using C#, .NET and I regularly use PropertyGrid control in my project. I am not able to create a mask(--/--/----) to the DateTime property field in the propertygrid such a way that, user can enter only in that format. For example, by default "dd/mm/yyyy" should be displayed in the DateTime field. When user key in numbers, the numbers should replace the respective palces in the field. Ofcourse, user can give input from DateTime picker also.
Please, suggest me by giving code snippets or sample source code. Thanks in advance.
|
|
|
|
|
Please, can any body respond to this question ???????
|
|
|
|
|
Hello,
I am trying to pass an PK field called ApplicationID from tbl_Application to a FK field named the same in tbl_link_application_support location.
Form 1 "Frm_EditApplication"
Form 2 "Frm_LinkAppSupport"
in Form 1 I have the following code
Private Sub Frm_EditApplication_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'ShowApplication.tbl_Application' table. You can move, or remove it, as needed.
Me.Tbl_ApplicationTableAdapter.FillEditApp(Me.ShowApplication.tbl_Application)
End Sub
Private Sub Frm_EditApplicationDetails_Click(ByVal Sender As Object, ByVal e As System.EventArgs) _
Handles Btn_App_Support.Click
Dim SelectedRowVeiw As Data.DataRowView
Dim SelectedRow As XXX_GC_IT_SIPDataSet.tbl_ApplicationRow
SelectedRowVeiw = CType(Tbl_ApplicationBindingSource.Current, System.Data.DataRowView)
SelectedRow = CType(SelectedRowVeiw.Row, XXX_GC_IT_SIPDataSet.tbl_ApplicationRow)
Dim OrdersForm As New Frm_LinkAppSupport
OrdersForm.LoadOrders(SelectedRow.ApplicationID)
OrdersForm.Show()
End Sub
in form 2 I have
Friend Sub LoadOrders(ByVal ApplicationID As String)
'TODO: This line of code loads data into the 'XXX_GC_IT_SIPDataSet.tbl_link_application_support_location' table. You can move, or remove it, as needed.
Tbl_link_application_support_locationTableAdapter.FillByShowAppSupport(XXX_GC_IT_SIPDataSet.tbl_link_application_support_location, ApplicationID)
End Sub
When I run the application I get an error
"System.InvalidCastException was unhandled
Message="Unable to cast object of type 'tbl_ApplicationRow' to type 'tbl_ApplicationRow'."
Source="XXX Customer IT Enviroments"
StackTrace:
at XXX_Customer_IT_Enviroments.Frm_EditApplication.Frm_EditApplicationDetails_Click(Object Sender, EventArgs e) in C:\Documents and Settings\UserName\My Documents\Visual Studio 2008\Projects\Work\XXX Customer IT Enviroments\XXX Customer IT Enviroments\XXX Customer IT Enviroments\Forms\Frm_EditApplication.vb:line 20 at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(ApplicationContext context) at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine) at XXX_Customer_IT_Enviroments.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81 at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
InnerException:"
I have no Idea where I have gone wrong other than it doesn't like the line "SelectedRow = CType(SelectedRowVeiw.Row, XXX_GC_IT_SIPDataSet.tbl_ApplicationRow)"
On form 1 and 2 "ApplictaionID" is a text box named "ApplicationIDTextBox"
Any Help gratefully recieved as i will be using this type of function on opening all link forms.
thanks in advance andy
|
|
|
|
|
On form 1 and 2 "ApplictaionID" is a text box named "ApplicationIDTextBox" should be
On form 1 and 2 "ApplicationID" is a text box named "ApplicationIDTextBox"
|
|
|
|
|