|
Should i use WSH, WMI, BAT?
Any recommendations there?
Thanks,
Taen Karth
|
|
|
|
|
Does anyone have a clue as to how you would programatically drag and drop a file to another application using vb.net?
Maybe using a windows message WM_DROPFILES ?
Any code samples would be greatly appreciated.
|
|
|
|
|
how can i store picture in database as binary
and select it as binary to imagebox
thanks for help
MD_NADA
MD_NADA
|
|
|
|
|
i want to capture a picture from a scanner or digital camera and display teh picture on vb6.0 or vb.net form.
please any help will be appreciated
thanks
t.aransiola
|
|
|
|
|
You can find a VB.NET/C# example here[^] using Windows Image Acquisition (WIA).
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Can someone point me to a sample of how to copy files from one location to another using VBscript? I need to copy a pdf file from a CD to a folder on the PC and create a shortcut to the pdf file on the desktop. Any help would be appreciated, thanks.
|
|
|
|
|
Seek, and yee shall find[^]...
If you do alot of scripting, the root of the ScriptCenter Repository is here[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Is it possible to lock just one VBA module in Office applications (Word, Access, Excel). I would like to keep my VBA code unviewable, but allow others to build their own modules and add macros. Possible?
Thank you
|
|
|
|
|
AFAIK, it's all or nothing. You can't lock just one module, but I could be wrong.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
vb.net
i want to send data from my program to excel.
excel is opened but when a new document should be created, visualstudio gives me the following error message:
"exception of the type 'system.runtime.interopservices.COMexception' occured. additional information: old format or invalidate typelibrary" (roughly translated from german).
i use 'mircosoft excel 10.0 object library'.
i downloaded different examples how to connect to excel, and with every example i get the same error message.
|
|
|
|
|
What version of Excel are you using?
Steve
|
|
|
|
|
|
VB.NET
some questions concerning DATAGRID:
1. is there a simple way to use different fonts in different datagrid-columns (like changing the font in tablestyles)? or do i have to derive a new datagrid and change the font for each column there? maybe somebody has code for that or a good link?
2. why does my tablestyle not apply to my datagrid in some cases? i know that i have to define a tablestyle and add it to the grid before i fill the grid with data.
i have a form with tabcontrol and formating datagrids on the first and second tabpage works fine, but formating a second grid on the second tabpage and two grids on the third page doesn't work, though i use the same code i use for the first two grids and also format them before datasource for them is defined.
3.how can i prevent the user from sorting the columns of my grid by clicking into the column header?
i set allowsorting= false but still i can click into the header, those little triangles (upp or down) appear, and the column is sorted.
thanks
|
|
|
|
|
Hi,
1. You don't have to inherit from the grid. You'll just have to make your own DataGridColumnStyles. For example you could derive from DataGridTextBoxColumn and override the Paint function.
2. Just a guess: You are using different table names in the DataTables you are binding to those grid. In this case the MappingName of the table styles needs to reflect this.
3. This property exists both on the DataGrid and one the DataGridTableStyle. I thin kwhen you define an explicit table style than
you need to set this property on it (which overrides whatever is set on the DataGrid).
Robert
|
|
|
|
|
thanks, you are right, the names where different.
|
|
|
|
|
Hi,
I need help to convert a excel spreadsheet to a mdb file(access database). Any idea on where I can find help on this, and read more on it. It has to be a vb.net program that reads two 'sheets', and then insert that info into a database. I know how to get the information from excel using a SELECT query and System.Data.OleDb.OleDbConnection.
Any help or suggestions?
|
|
|
|
|
Connecting to Access via code is probably one of the three best documented tasks on the web. All you need to do is call INSERT to insert your data.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
The actual question here was how to get the data out of excel in order to insert into access...
to the OP...you might want to do a search for Office PIAs (Primary Interop Assemblies)
Here's a link to get you started: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnofftalk/html/office10032002.asp
|
|
|
|
|
Then why did he say this:
"I know how to get the information from excel using a SELECT query and System.Data.OleDb.OleDbConnection."
I had no idea you could do this, but if you can, then my advice was correct, and the question was not how to get the data from access, he was already doing that, apparently
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: "I know how to get the information from excel using a SELECT query and System.Data.OleDb.OleDbConnection."
Ok, what I meant was I use OleDbConnection to connect to the excel spreadsheet, and then fill a dataset with the info I get using a select statement.
The problem now is to move this info to a mdf database.
|
|
|
|
|
If you have a dataset, you can use an OleDbConnection to connect to an Access database, and you can insert data using an INSERT statement. There's heaps of info online ( including CP articles ) on using VB.NET to connect to Access.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: Connecting to Access via code is probably one of the three best documented tasks on the web. All you need to do is call INSERT to insert your data.
Hi Christian.
Ok, not to sure what you meant by the comment, basically what I want to do is take a few sheets in an excel spreadsheet, and export them into access, using an web interface and ado.net.
Reason for this terrible job, I cant explain... It's what the client wants
|
|
|
|
|
How to handle unexpected error (50003) in Vb6.0? I have a project in my machine when i compile the project the above error occured.The same project compiled without error in another machine? i have registered the SSTAB component.But in the form SSTAB couldn't visible.How to solve this problem?
|
|
|
|
|
-How to filling a listbox from other page at a web application pages(ASP.NET 2.0)?
Best Regards
Hussein Madani Ghomi
+98-912-5577-832
|
|
|
|
|
Hi,
You can pass an array between pages .....
<marquee>"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
Anant Y. Kulkarni
|
|
|
|