to make a form transparent while keeping a line drawn inside it opaque? if not then what other method could be employed to achieve the same?

Set the TransparencyKey property and BackColor property to the same color.
Then draw your line on the form as normal.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.