|
hello,am a new user to C# sharp. when i use a datetimepicker ( format set to short), along with some more controls in a form, the first time i executed the project, Iam able to get the focus in the Datetimepicker control(by pressing tab).
But if u select a new value in the control and use tab again am not getting the focus in datetime control. IS THIS A PATCH IN DATETIME CONTROL?
But when u click on it , the mousedown event makes the selection. so, iam thinking of invoking the mousedown evnet in the Enter Event(when the control is active by pressing tab). But not sure how to do it. or is there any other way of achiveing this?
Please help me at the earliest. Much Thanks.
Regards,Manivannan.P
|
|
|
|
|
|
Is there something in particular you are having a problem with? Getting the menu to popup? Or getting the data for the menu out of a database or xml file? Or just the overall design? People will help with your problems, but too many times people are asking for others to show them how to do everything. I have seen this when I taught college. I would offer help, but you need to know how to do it. I would not just tell them everything, or how would they have learned it?
There are examples on CP and other websites. Some systems are free and others are shareware and others are commercial products.
Steve Maier, MCSD MCAD
|
|
|
|
|
Using a datagrid , I change the data source of the datagrid in run time when a button is clicked according to a search , if this datagrid is divided into pages, when I click the next page the datagrid is disappeared and u must click this button again to make it appear and it really appears in the next page
Eng.Nashwa
|
|
|
|
|
I am working on an application and need to be able to have the application have the ability to "look into" an assembly and list out the icons which are compiled into it. Any points into the right direction would be greatly appreciated.
Happy Programming and may God bless!
"Your coding practices might be buggy, but your code is always right."
Internet::WWW::CodeProject::bneacetp
N-Tech Productions
http://www.n-tp.com/
|
|
|
|
|
All embedded icons will turn up as resources in the assembly with the .ico extension.
The only tricky bit is that VS.Net adds the DefaultNamespace to the front of the icon file name when it compiles the assembly so you have to chop that off.
Here is an example showing how you would do this using the current assembly, and display the list in a messagebox.
To run on another assembly simply use Assembly.LoadFrom() to get a pointer to it.
Dim TestAssembly As [Assembly] = System.Reflection.Assembly.GetExecutingAssembly
Dim namesList As String() = TestAssembly.GetManifestResourceNames
' Fudge to get the default Namespace for the assembly.
Dim currentNameSpace As String = [String].Empty
currentNameSpace = TestAssembly.GetTypes(0).Namespace
If currentNameSpace.Length > 0 Then
currentNameSpace &= "."
End If
Dim list As String = [String].Empty
Dim names As IEnumerator = namesList.GetEnumerator
While names.MoveNext
If names.Current.ToString().ToLower().EndsWith(".ico") Then
list &= names.Current.ToString().Replace(currentNameSpace, "") & System.Environment.NewLine
End If
End While
MessageBox.Show(list)
If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
|
|
|
|
|
Thanks for the help!
Happy Programming and may God bless!
"Your coding practices might be buggy, but your code is always right."
Internet::WWW::CodeProject::bneacetp
N-Tech Productions
http://www.n-tp.com/
|
|
|
|
|
I have a program that I need to figure out what is going on. First, the code:
Class ListItemServer ---
Imports System.Data
Imports system.Data.SqlClient
Public Class ListItemServer
Inherits MarshalByRefObject
Implements ILists
Private mSQL As SqlConnection
Private mDA As SqlDataAdapter
Public Sub New()
mSQL = New SqlConnection(Config.GetConnectionString)
mDA = New SqlDataAdapter
End Sub
#Region " Affiliation Types "
Public Function GetAffiliations() As System.Data.DataSet &_
Implements ILists.GetAffiliations
Dim SelectCommand As New &_
SqlClient.SqlCommand("tff_GetAffiliations", mSQL)
mDA.SelectCommand = SelectCommand
mDA.SelectCommand.CommandType = CommandType.StoredProcedure
Dim Data As New DataSet("AffiliationTypes")
mDA.Fill(Data)
Return Data
End Function
Public Function UpdateAffiliations(ByVal Data As System.Data.DataSet) As DataSet &_
Implements ILists.UpdateAffiliations
Dim SelectCommand As New &_
SqlClient.SqlCommand("tff_GetAffiliations", mSQL)
Dim InsertCommand As New &_
SqlClient.SqlCommand("tff_AddAffilation", mSQL)
Dim UpdateCommand As New &_
SqlClient.SqlCommand("tff_UpdateAffiliation", mSQL)
Dim DeleteCommand As New &_
SqlClient.SqlCommand("tff_DeleteAffiliation", mSQL)
SelectCommand.CommandType = CommandType.StoredProcedure
InsertCommand.CommandType = CommandType.StoredProcedure
UpdateCommand.CommandType = CommandType.StoredProcedure
DeleteCommand.CommandType = CommandType.StoredProcedure
With mDA
.SelectCommand = SelectCommand
.InsertCommand = InsertCommand
.UpdateCommand = UpdateCommand
.DeleteCommand = DeleteCommand
End With
With InsertCommand.Parameters
' Parameters
End With
With UpdateCommand.Parameters
.Add("@AffiliationTypeID", SqlDbType.Int, 4, "AffiliationTypeID")
' Parameters
End With
With DeleteCommand.Parameters
.Add("@AffiliationTypeID", SqlDbType.Int, 4, "AffiliationTypeID")
End With
Try
mDA.Update(Data)
Catch sqlex As SqlException
Console.WriteLine(sqlex.Message)
Catch ex As Exception
Console.WriteLine(ex.Message)
End Try
Return Data
End Function
#End Region
End Class
Interface ILists --------
Public Interface ILists
Function GetAffiliations() As DataSet
Function UpdateAffiliations(ByVal Data As DataSet) As DataSet
End Interface
I am able to register the service and get things going with remoting, but
when I attempt to access any method I get the error message "Attempted to
call a method declared on type ILists on an object which exposes
ListItemServer". The dataset is serializable, correct? I'm clueless, so any help would be greatly appreciated! I am registering the server as a singleton and attempting to call it like this:
Dim Server as ILists = Activator.GetObject(GetType(ILists),URI)
Dim Data as DataSet
Data = Server.GetAffiliations()
Thanks!
|
|
|
|
|
Is there a code snippet that covers the creation of a slider bar that replaces the standard slider on Windows Media Player.
I know that you can hide it using uiMode set to none, but I would like to create a control to replace it and using the system.windows.form
|
|
|
|
|
Hi,
How do you package an installer developed using .net ? example C# or any other .net PL. Does the VS.net have their own packager?
I just have to know
|
|
|
|
|
|
Thank you, what do you mean by relevant Setup and Deployment?
If ever I did so, then there would be a way to create an installer using VS.net? THanks again.
I just have to know
|
|
|
|
|
aarontlu wrote:
what do you mean by relevant Setup and Deployment?
A Setup and Deployment Project
1. Right click your solution in the Solution Explorer
2. Select Add-->New Project...
3. In the new dialog, Select "Setup and Deployment Projects" from the Project Types tree on the left of the dialog.
4. Select the relevant Project Template from the icons on the right of the dialog.
aarontlu wrote:
If ever I did so, then there would be a way to create an installer using VS.net?
Do you mean create an application that performs the actions of an installer? If so then yes, it is possible. Although I don't see why - there are a number of products out there that you can create installers from already.
Do you want to know more?
WDevs.com - Member's Software Directories, Blogs, FTP, Mail and Forums
|
|
|
|
|
thank you very much. You have been much help
I just have to know
|
|
|
|
|
I'm writing a small program in C# and need to:
1) get a short sample from the microphone, and
2) split the sample into distinct frequencies
Any pointers at this would be helpful, especially with step 2. If the solution works under the compact framework it would be even nicer...
Thanks
|
|
|
|
|
are you trying to do speech recognition, if so you don't want to do that, go google it. for speech recognition, neural network, programming
IM PROUD TO BE A GMAIL;
|
|
|
|
|
Not really. I need to detect the frequency(ies) sounding from a musical instrument - playing a single note/tone.
|
|
|
|
|
|
I am trying to send a msg over net send in the dos commands, and it wont let me start up the messenger program. Now when i go net name alias then it says the service can not be started, what do I do?
|
|
|
|
|
i don't feel confident of letting my source go out with my compiled program since anything that was made to be used with the .net framework is decompilable to the point were it actually looks like the original code, not including the basic assembly. If I will publish programs later or recently i will want to protect the source under some conditions but is there a way???
IM PROUD TO BE A GMAIL;
|
|
|
|
|
Check out Remotesoft's Salamander
Or if you're using the Enterprise version of Visual Studio, there's a small and basic obfuscator bundled with it.
|
|
|
|
|
Hi,
I have several web apps on my server. One of them is based on the HTTPHandler class. This needs to create and write a file in dir 'c:\inetpub\wwwroot\httphandlers'. Its being run under the ASPNET account, which does not have write privileges for this dir.
I could change the ASPNET account to be of type 'administrator', but that does not seem like a safe thing to do. Another would be to write this file to dir <systemroot>\temp, a dir that is used to support web services. Is it safe to do so? If not, is this a case where I should use 'Impersonation'?
This file needs to persist through the lifetime of the application, and the solution needs to work for Windows XP, and Windows 2003 server.
Thanks.
-Shefali
|
|
|
|
|
I am the owner of the domain WebService.NET. I am in the process of putting it up for sale. If you are interested please send offers to info@emanages.com
Thanks!
|
|
|
|
|
J W Funhouser?? $0.00
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I want to add a Custom Options tab in MS word using Add-Ins. I referred to DOM of word but didnt find any useful information for that. can anyone suggest how it can be done
Javed Hussain
Software Developer
GoNetBPO.
|
|
|
|