|
Tovino James wrote: it isn't a stupid question.. It is.
Tovino James wrote: My old Windows Vista laptop has one Laptops have bad sound. Vista is bad too.
Your sound will be bad-bad. The only solution is to set fire to your laptop
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
I have to create one appliaction for PDF drag Drop
I have done the codine for drag drop PDf to my windows from application,
Now i want to upload PDF file to using SI component called IAGS_ImageUpload
Could you please help me how do i upload drag drop pdf file to SI component
|
|
|
|
|
I need a c# code for dot matrix direct printing code
|
|
|
|
|
I need a Ferrari and £1,000,000.
|
|
|
|
|
i think it not a big for you give me Ferrari. Better you send me man
|
|
|
|
|
I think you missed his point. Why should anyone do your work for you and just hand it over for free?
|
|
|
|
|
Print Direct To Windows Printer (EPOS Receipt)
The Master said, 'Am I indeed possessed of knowledge? I am not knowing. But if a mean person, who appears quite empty-like, ask anything of me, I set it forth from one end to the other, and exhaust it.'
― Confucian Analects
|
|
|
|
|
Thank you but i need Dot matrix printer code above code is POS code (Receipt).I'm using Dot matrix rolled paper
|
|
|
|
|
The code is no different for a dot matrix printer.
The only thing that would change would be what you send to the printer.
|
|
|
|
|
I KNEW you would say that.
The Master said, 'Am I indeed possessed of knowledge? I am not knowing. But if a mean person, who appears quite empty-like, ask anything of me, I set it forth from one end to the other, and exhaust it.'
― Confucian Analects
|
|
|
|
|
I have a created a WinForms User Control class (C# WinForms project in and Visual Studio 2017) that has (3) controls in it: A label, textbox, and button. Next drag-and-drop that User Control onto a WinForm, and it appears with each of the child controls. All appears good, for now..
Next I decide to make some changes in the User Control custom class, so I open it in the visual designer, move the button to a new location and change the size and change the caption of the button and save my changes. Rebuild. Next I open the Form that uses an instance of the User Control, and I do NOT see the updates I made to the User Control class.... The button is at the original location and original caption and original size.
Surely, the creates of this platform should now that anyone would expect these changes to be applied to the instance of the control wherever it is used in the app.
Please tell me I am missing something very basic here to make this work like true inheritance should...
I made short a video here to demonstrate this issue:
Video: Custom User Control on WinForm
|
|
|
|
|
I am creating an application to do utility billing. I want to be able to add notes/comments to each customer/meter. I'm a newbie so I am asking what is the best way to enter and store these notes. Right now I have a access database, I have a table dedicated to just the notes. I am storing date and time stamp as to when the note was added, the customer number and the note. Each note is stored in a record for each customer. I have a textbox on the windows form that I enter and display the information.
Is this the best way or is there a better/easier way. Since I am new I might be overlooking something.
With my code now I am having trouble combining the records for each customer and displaying them in the textbox. If the way I am doing it works then I will post other help on that issue.
Thanks in advance...
|
|
|
|
|
Hello guys , I try to create a Download Manager but when I was running my project and I click in start download button after that this error happen.
______________________________________________________________________________________________________
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at DotnetDownloader.frmnewdownload.btnstartdownload_Click(Object sender, EventArgs e) in E:\VisualProject(CSharp)\DownloadMenager\DotnetDownloader\frmnewdownload.cs:line 72
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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:----------------------------------------
DotnetDownloader
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
-----------------------------------------------------------------------------------------------------------
|
|
|
|
|
frmnewdownload.cs:line 72
You want us to guess what's at that line? Need an NDA?
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
E:\VisualProject(CSharp)\DownloadMenager\DotnetDownloader\frmnewdownload.cs:line 72
You have a reference variable at that line which has not been initialised, so is therefore a NullReference.
|
|
|
|
|
Have you tried putting debugger at this line and see why you getting no value?
modified 20-Sep-20 21:01pm.
|
|
|
|
|
I have a tree created at design time with 3 root nodes and 3 levels 3x3x3 =39 nodes as the default.
The nodes can be dynamically recreated.
When I cleared the nodes then recreated them, I tried looping through to add properties to the nodes of each level including their relevant context menu name.
<pre lang="text">
Private Sub RedoTree_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles RedoTree.Click
treeLoad()
treeExecutive.ExpandAll()
restoreTP()
treeExecutive.Nodes(0).EnsureVisible()
End Sub
<pre>
Sub restoreTP() ' renew treenode properties
Dim s As String, l As Short
treeExecutive.Update()
For Each treenode In treeExecutive.Nodes
s = treenode.Name
l = Len(s)
treenode.ForeColor = Color.GhostWhite
If treenode.Text <> s Then treenode.ForeColor = Color.Black
Select Case l
Case 1
treenode.NodeFont = New Font("Arial Rounded MT Bold", 10.8)
treenode.ContextMenuStrip = CMSRoot
Case 2
treenode.NodeFont = New Font("Arial", 10.2)
treenode.ContextMenuStrip = CMSTree
Case Else
treenode.NodeFont = New Font("Arial Narrow", 9)
treenode.ContextMenuStrip = CMSTree
End Select
Next
End Sub
The root nodes are number 1-3, then 11,12,13 .... 111,112,113 Total is 39 nodes
ONLY THE ROOT NODES ARE RECOGNISED AND DEALT WITH.
All the child nodes are ignored as if they don't exist
Am bogged down on this and would appreciate any help
Demac
|
|
|
|
|
The TreeView's Nodes property[^] only returns the root nodes. Each node has its own Nodes property[^] containing its child nodes.
To iterate through all nodes in the tree, you will need a recursive method. For example:
Sub restoreTP()
treeExecutive.BeginUpdate()
Try
restoreTP(treeExecutive.Nodes)
Finally
treeExecutive.EndUpdate()
End Try
End Sub
Sub restoreTP(ByVal nodes As TreeNodeCollection)
Dim s As String, l As Integer
For Each treenode As TreeNode in nodes
...
restoreTP(treenode.Nodes)
Next
End Sub
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hi
thx Richard for that info
Not familiar with recursion, but now you've helped me improve my understanding of treeviews.
I did circumvent the problem by updating node properties as they are created.
I can post that code if it might help others.
demac 
|
|
|
|
|
We are writing a combo box custom control using MS text box and list view. We are in a position where we need to provide token (close) option for the options that will be displayed in the combo box? So do you have any suggestion? Refer the below image for better understanding of the requirement.
Google Images[^]
|
|
|
|
|
WinForms or WPF? There's articles on CodeProject for both that show how to draw something as the selected item. Start there
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
|
Please do not do this. Post your question in one forum only.
|
|
|
|
|
I'm really sorry, it does not happen again, I was wrong on the topic, that's why I did it
|
|
|
|
|
Hello there. I started learning new c #. I'm doing a project. Similar to devexpress windowsmail. But the designs in my project didn't interfere with the truth. colors, dynamic designs, background colors etc .... How can I design a design like devexpress? it is an eye-catching design wowwwww ..... Please help me please. 
|
|
|
|