|
if anyone know about file recovery?
i need file recovery project in vb.net
|
|
|
|
|
|
EliottA wrote: where did you start?
in the recycle bin of course, that's where those lost files have been seen last.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Unless you know how the NT File System works internally, you're going to find this project impossible.
|
|
|
|
|
If you're targeting the FAT32 file system, then I think (but don't call me on this) that there's some form of backup built in to the file system. Alternatively, start from sector 0 of the disk, and walk the clusters until you find a file which isn't in the file system's list of file pointers
Either way, this is too advanced for VB.Net alone. You would need a hook of some sort into C++, and use the windows api from there
|
|
|
|
|
Hi,
I have DataGridView control inside a tab in a TabControl container. I have set the Selection BackColor of the grid to transparent because I don't want the rows to be coloured when selected. Now, the problem I have is that when after populating the grid, the selected cell, which I have specified, is transparent but it is showing the contents of another tab, i.e. not only is the cell row selection color transparent but the grid and current tab are also transparent. When I click out of that cell and then return, it displays correctly.
Anyone else have a similar experience?
|
|
|
|
|
pls i need anyone who can assist in getting the codes and understand the concept behind finger print security door using VB. Net programming language
|
|
|
|
|
Never heared of Google? Took me only 3 seconds to type in what i was searching for and 0.17 seconds for google to find.
try this[^]
the word is "please", by the way, not "pls"
|
|
|
|
|
Hi all.
I'm beating my head against the wall here, and I know there is a simple solution. I apparently can't find it no matter what I try.
I need a combo box that I can place some ghost text on that says "enter your search here" that will disappear when the user begins to type.
I've found how to do it in WPF, but I need a version for Net 2.5 also.
a simple owner draw won't work, as it looks like heck in Vista....
Thanks,
Tom
|
|
|
|
|
shoorrock wrote: but I need a version for Net 2.5 also.
No such thing.
shoorrock wrote: a simple owner draw won't work, as it looks like heck in Vista....
Just set the initial text, handle the focus event, and clear the text if that's what it is.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
I'm not sure what you're asking - how to change what textbox is getting the input ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I am sorry i didnot explain proply. Problem is only 1 textbox is workig. The other textbox didnot get the fouce. I am talking about virtual keyboard on screen. I can make only one textbox can get a focus. the other textbox did not get fouce. how to make the other textbox is making focus by enter button on screen after 1 textbox input done.
thank you for your concern.
|
|
|
|
|
Try the KeyPress event of your first textbox:
If e.KeyChar = Chr(13) Then
TextBox2.Focus
End If
and if that works, use the same trick with the others.
My advice is free, and you may get what you paid for.
|
|
|
|
|
Thank You for your advise
I did it your advise, but It did not working
do you have another idea..?
Thank you your Reply
|
|
|
|
|
Could you try and explain a little clearer, what it is that you are trying to do?
My advice is free, and you may get what you paid for.
|
|
|
|
|
Obviously, you have to send the return character if you want it to change the focus. Perhaps what you need is to understand the answers being given enough to understand that setting the focus of the next textbox is your solution, and that when you're given a solution, you should explore/try to understand it, instead of saying 'do you have another idea', which equates to 'give me another snippet I can try to use without learning anything'.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
woca4u wrote: I try to make virtual keyboard
If you are trying to make a virtual keyboard , you can directly send the keys to the system , instead of sending it to a specific textbox , For sending key to current active application use SendKeys.Send()
built in VB. Also it you want to send the key directly to OS use kybd_event win32 API (using Win32 API is bit tricky), Let me know your choice , if SendKeys.Send() works for you its ok , other wise we can think of using Win32 API
-Regards
Bharat Jain
bharat.jain.nagpur@gmail.com
|
|
|
|
|
This is code
Dim xlApp As New Excel.Application()
xlApp.Visible = True
xlApp.UserControl = True
Dim xlWorkBook As Object = xlApp.Workbooks
Dim oldCI As System.Globalization.CultureInfo = _
System.Threading.Thread.CurrentThread.CurrentCulture
System.Threading.Thread.CurrentThread.CurrentCulture = _
New System.Globalization.CultureInfo("en-US")
xlApp.Workbooks.Add()
System.Threading.Thread.CurrentThread.CurrentCulture = oldCI
xlApp.Visible = True
xlApp.UserControl = True
Dim xlWorkSheet As Excel.Worksheet
Dim misValue As Object = System.Reflection.Missing.Value
Dim i As Integer
Dim j As Integer
xlApp = New Excel.ApplicationClass
xlWorkBook = xlApp.Workbooks.Add
xlWorkSheet = xlWorkBook.Sheets("sheet1")
For i = 0 To RabotniciDataGridView.RowCount - 2
For j = 0 To RabotniciDataGridView.ColumnCount - 1
xlWorkSheet.Cells(i + 1, j + 1) = _
RabotniciDataGridView(j, i).Value.ToString()
Next
Next
xlWorkSheet.SaveAs("C:\vbexcel.xls")
xlWorkBook.Close()
xlApp.Quit()
releaseObject(xlApp)
releaseObject(xlWorkBook)
releaseObject(xlWorkSheet)
MsgBox("You can find the file C:\vbexcel.xls")
but when I try export to Excel give me this errror "Old format or invalid type library. (Exception from HRESULT: 0x80028018 (TYPE_E_INVDATAREAD))"
Have some ideas?
|
|
|
|
|
Did you import all the proper office references?
Why not write to CSV that way you don't need to worry about Excel?
Which line does the error occur on?
|
|
|
|
|
How to write to CVS have You some code. This code who I give above work when I change regional settings in English(USA) but my regional settings is Bulgarian
|
|
|
|
|
using (StreamWriter MyFile = new StreamWriter(Application.StartupPath+"\\output.csv"))
{
for (int i = 0; i < dataGridView1.RowCount; i++)
{
stLine = "";
for (int j = 0; j < dataGridView1.Rows(i).Cells.Count; j++)
{
stLine = stLine + grdResults.Rows.Item(i).Cells.Item(j).Value + ",";
}
MyFile.WriteLine(stLine);
}
MessageBox.Show(Application.StartupPath.toString()+"\\output.csv");
}
}
|
|
|
|
|
Can You give me this in VB thanks
|
|
|
|
|
You should be able to convert it fairly easily...I'd rather just end this thread
Imports System.IO
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim stline As String
Dim MyFile As New StreamWriter(Application.StartupPath + "\\output.csv")
Dim i, j As Integer
For i = 0 To DataGridView1.RowCount - 1
stline = ""
For j = 0 To DataGridView1.Rows(i).Cells.Count
stline = stline + DataGridView1.Item(i, j).ToString + ","
MyFile.WriteLine(stline)
Next
Next
MessageBox.Show(Application.StartupPath.ToString() + "\\output.csv")
End Sub
End Class
Man my VB is out of date..
|
|
|
|
|
See if this[^] is not the case.
|
|
|
|