473,395 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Recover a .vb file from a .Designer.vb

I have a project that has these files:

frmCD.resx
frmCD.Designer.vb
frmCD.vb

I had a virus which wiped out the frmCD.vb. Is it possible to regenerate it
from the other files?

-Jerry
Nov 13 '08 #1
3 7129
>I have a project that has these files:
>
frmCD.resx
frmCD.Designer.vb
frmCD.vb

I had a virus which wiped out the frmCD.vb. Is it possible to regenerate
it from the other files?
Use Windows Notepad to create a text file and add the following:

Public Class frmCD

End Class

Save this and rename the file as frmCD.vb

You should then be able to open the form and work with it in VS.

All the controls should still be on the form. Any event handlers you may
have
added or any other code that was stored in this file is obviously lost,
unless
you can recover the file from backup.

HTH
Phil.
Nov 13 '08 #2
No there is no redundancy between those files :
- the resx file contains the resources
- the designer file contains all the code created by the designer (i.e. the
code that initialize the UI)
- the frmCD.vb file contains the user defined code (basically the logic
behind the UI) and so you'll have to recode this one
--
Patrice

"Jerry Spence1" <je**********@somewhere.co.uka écrit dans le message de
groupe de discussion : 0_******************************@posted.plusnet...
I have a project that has these files:

frmCD.resx
frmCD.Designer.vb
frmCD.vb

I had a virus which wiped out the frmCD.vb. Is it possible to regenerate
it from the other files?

-Jerry
Nov 13 '08 #3
On Nov 13, 2:46*pm, "Jerry Spence1" <jerry.spe...@somewhere.co.uk>
wrote:
I have a project that has these files:

frmCD.resx
frmCD.Designer.vb
frmCD.vb

I had a virus which wiped out the frmCD.vb. Is it possible to regenerate it
from the other files?

-Jerry
frmCD.Designer.vb is your partial class file that holds the places and
properties of your UI controls and sequence of subscibed events using
WithEvents clause, generally created by Windows Form Designer.

frmCD.vb is your coding file(main class file) that is used to hold
custom codes which you wrote, including methods and other objects. So,
if you lost and if you're unable to recover frmCD.vb file, you must re-
code that file because frmCD.Designer.vb doesn't know what to do
alone.

Hope this helps,

Onur Güzel
Nov 13 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Maurizio Berlusconi | last post by:
Hi all I have (my mistake) overwritten the beginning of a file where a long dictionary was pickled with another (pickled and much smaller) dictionary. Since only 10% or so of the original and...
1
by: WKC | last post by:
Recently, one of our database's mdf and ldf was corrupted. We were able to bring back the database with the capability of importing and querying the data. However, the data is not the full list. ...
1
by: Moti | last post by:
I have SQL server 2000 which recently crashed. I try to recover it and found out that the Master database is corrupt. I never backup my server using inline sql backup nor any third party backup...
4
by: chuy | last post by:
Is there a way to recover a lost password in Mysql 4.1. I have seen many articles and howto's on how to kill the Mysql process and then restart using skip grant tables option. I am not trying to...
2
by: Nate | last post by:
Hello, I am trying to recover a SQL Server 7 database from another hard disk drive that has a corrupted Windows 2000 Advanced Server installation. I am not able to repair the corrupted Windows...
2
by: Maellic | last post by:
Hi, I'm currently updating a website written with ASP.NET. The original programmer is overseas, there is no documentation, and files are all over the place. Here is a code snippet from one of...
0
by: mike_dba | last post by:
I have been testing the db2 recover command on a DB2 V8.2 Linux database. The database contains a single partition. I am not archiving logs but retaining them on disk. the backup image is to...
6
by: KG | last post by:
Hi, Does anyone knows how to recover the test file db2diag.log. By mistake I have delete the contents of db2diag.log, wondering if I could restore the contents of my db2diag.log.
6
by: MLH | last post by:
Utilities to recover tbl removed from TABLE tab of database window with the DELETE key?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.