|
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"
|
|
|
|
|
hello
How I Could change the surface of scroll bar?
I want a richTextBox with a colorable scroll bar.
thanks for your help.
|
|
|
|
|
|
Does anyone know of a SQL editing component that supports syntax coloring?
I have a job scheduling application written in .Net 1.1 and it would be very nice for it to be able to display SQL jobs using syntax coloring, but I don't have time to write that component myself.
Note that this component does not need to run SQL, just allow SQL text to be displayed and edited. The SQL needs to be stored in plain text, without embedded formatting codes, as the SQL will be executed by my scheduler.
|
|
|
|
|
|
Howdy,
I'm not sure if this is the correct place to post or not. I have a Miles per Gallon / Payback and engine displacement calculator that I put together in excel with a link to a carbon footprint calculator. The carbon footprint calculator works well but I can't seem to get my calculator to post. I'm not even sure if excel is the best way to post to my startup website! Check it out at www.ReV-Systems.com (it is far from completeion!!) please help
Tom at tedolan@optonline.net
Thanks Please light the way!!
|
|
|
|
|
Welcome to CodeProject
Member 4551281 wrote: I'm not sure if this is the correct place to post or not.
It's not, however I'm not yet clear enough on what you are trying to do to direct you to a more appropriate forum.
You can allow people to download an excel file from your web site and if they have excel installed they can run it. If they are using certain browsers, it may even launch it in the browser but there is no way for you, or your site, to know any of this for anonymous users.
If your users are a qualified group, meaning you know they all have excel, then you can just add the file to your web site and they can type in the address in a browser (you can have a page with a link to the file to simplify this) and download the file.
If you are trying to use some feature of Excel to publish your work as a Web Application, I have no knowledge of that feature and nothing I said above is related to that.
|
|
|
|
|
I am just trying to publish for anyones use a calculator that will give several answers after a user (not from anyone group) inputs some info. It might be that this is the wrong application for a web form use. I'm just not sure!
|
|
|
|
|
Member 4551281 wrote: It might be that this is the wrong application for a web form use. I'm just not sure!
If it is possible, it would be through the use of some feature of Excel or additional technology perhaps provided by Microsoft that I am not aware of. It is not any typical form of Web Development which would involve developing things like HTML or Server side programming mechanism (ASP.NET, Java, Perl, Ruby, etc.) that allows you to deliver HTML to the browser, along with some Javascript to create the dynamic aspects of the application.
|
|
|
|
|
How to set Data Grid View 's item value in multithreading
Best Of Regards,
Mirza Rahman
|
|
|
|
|
Hi all,
I have created windows application in c#, it is Sample.exe,
If this exe is already running, andmeanwhile if double click and initiate one more instance of Sample.exe it should point to already running Sample.exe.
Concept is simple if my windows media player is running say a movie file is being run.
and if I launch media player from shortcut it will still show the already running one instead of opening the separate media player.
Is it possible to do so for my application, how can I apply same logic to my Sample.exe
Thanks,
ashok
|
|
|
|
|
|
|
how to lock .dll file in vb.net
plz help me and send me sample code
Chandhu
|
|
|
|
|
What do you mean by "lock"??
|
|
|
|
|
the .dll file can't copy the other drives, it's lock the file
how?
Chandhu
|
|
|
|
|
Not possible. The .DLL file can be copied when your app isn't running. There's nothing you can do to prevent it from being copied. Why? Because if you prevent the file from being read (that's all a copy operation is), the app won't be able to read it either and execute the code in it.
|
|
|
|
|
Hi
I have developed an application with .net framework 2.0 using C#.
Is it possible to run this application on third party machines without the need to install the .net Framework?
Thanks
cellardoor
|
|
|
|
|