vb.net

Entity Data Model & DataGridView - Creating new objects

I'm pretty new to the EDM, so bear with me. I have a windows form that has a DataGridView on it that's bound from the EDM I created. I figured out how to update my changes fine, but it's when the user creates a new row that I'm having a problem. I tried numerous ways and many google searches, but came up with nothing so far. Here's h...

What about the using construct in c#

I see this: using (StreamWriter sw = new StreamWriter("file.txt")) { // d0 w0rk s0n } Everything I try to find info on is does not explain what this doing, and instead gives me stuff about namespaces. ...

sftp upload open source using vb.net

i tried the question that is asked here but not much could get from it. Does anyone know where to research or if has a project for sftp using vb.net? ...

Long overdue (for me) question about disposing managed objects in .Net, VB.Net, C#

I can't believe I'm still confused about this but, any way, lets finally nail it: I have a class that overrides OnPaint to do some drawing. To speed things up, I create the pens, brushes etc before hand, in the constructor, so that OnPaint does not need to keep creating and disposing them. Now, I make sure that I always dispose of such...

"Randomly" occurring errors...

Hi, My website has a setup whereby when the application starts a module called SiteContent is "created". This runs a clearup function which basically deletes any irrelevant data from the database, in case any has been left in there from previously run functions. The module has instances of Manager classes - namely RangeManager, Collect...

Can a VB.NET .dll assembly be reflected by C#

I assume because the CLR this wouldn't be an issue? ...

Creating a file based on the byte() in VB.net

Hello, I am retrieving an image from the SQL database into Byte() variable in vb.net Dim img as byte()=dr(0) How do I create a file in my C:\images\ directory from the above img. I want to read the img and then create a file with name bimage.gif Please help ...

Combine master-detail databinding

I have created data sources from my objects in my project, some of which have other objects as members. When I want to bind a some objects to a data grid I would like to display some of the values from the member objects in the data grid as well but the examples I have come across seem to use an entire other datagrid or controls to displ...

Check excel file is open by other user

Dear all, I have a excel file place on server. I am using a application which written by VB.NET to open file in read only mode. User 1 open file in read only mode. How can user 2 detect that file is open or not status? Thanks, An ...

Reading PDF content with itextsharp dll in VB.NET or C#

How can I read PDF content with the itextsharp with the Pdfreader class. My PDF may include Plain text or Images of the text. ...

Error "E_UNEXPECTED(0x8000FFFF)" when using CDec/CInt/IsNumeric

I have encountered a strange problem, which I could solve but don't understand why it did occur. I have build a DLL with COM enabled. In this DLL I have classes that did use the functions CInt, CDec and IsNumeric. If I test these classes from a .NET application then it works ok. But when I called/run these classes from a Win32 applicati...

ASP.NET MVC 2 VB, Not recognising my Import Namespace.

I had a problem with a project I converted from C# to VB, in that the VB version it cannot seem to find an object even though I declared it with an Import statement at the top. I created a new, default MVC 2 VB project, and the same problem occurs there. I create a new MVC 2 application, I then add a reference to System.Data.Services.C...

How to Improve the UI of Xtrareport from runtime ?

I am having a problem in paging for XtraReports. How can I improve the report paging from runtime and also I would like to initialize the reportviewer from pageload. Iam not able to do that. Any help is appreciated. Thanking you . We are designing the reports from runtime , so the data on multiple pages is not working i mean I am not co...

Can I place a asp:datalist inside a repeater control and databind it?

Hi folks, Can I place a asp:datalist inside a repeater control and databind it for each time its repeated? Using VB.NET btw.. Cheers! --Jonesy ...

Using .net Datetime in sql query

I have a DateTime object I want to compare against an sql datetime field in a where clause. I'm currently using: "where (convert( dateTime, '" & datetimeVariable.ToString & "',103) <= DatetimeField)" But I believe datetimeVariable.ToString will return a different value depending on the culture where the system is running. How would ...

Cannot create instance of abstract class

I am trying to compile the following code and i am getting the error: Cannot create instance of abstract class . Please help m_objExcel = new Excel.Application(); m_objBooks = (Excel.Workbooks)m_objExcel.Workbooks; m_objBook = (Excel._Workbook)(m_objBooks.Add(m_objOpt)); m_objSheets = (Excel.Sheets)m_objBook.Worksheets; m_objSheet = (E...

Display ASP.NET Control on Event

I'm looking to create a custom date picker with code examples from several sources. Is the code to display/hide an ASP.NET control when a user clicks a button usually done with JavaScript or ASP.NET code? By display/hide, I mean within the page not a popup window. Please provide a simple example. (If ASP.NET, VB example preferred ove...

Excel not creating

i am trying to run the following code : Excel.Application xlApp; Excel.Workbook xlWorkBook; Excel.Worksheet xlWorkSheet; object misValue = System.Reflection.Missing.Value; xlApp = new Excel.ApplicationClass(); xlWorkBook = xlApp.Workbooks.Add(misValue); xlWorkShe...

Using POST or SESSION to capture data

Hi all! I'm currently working on web application using VB in ASP.NET. Right now I have 1 page with panels that we are using to show/hide depending on the flow. When the user first comes in, he/she is presented with a gridview containing a list of clients. Then the user, clicks a link from a row and is presented a form where he/she can ...

VB.Net Web Browser control - how do you handle popups?

I have a large project in Vb.net which drives a web browser control around. What's the best, and easiest, way to manage browser pop ups? Note, I am not just looking to cancel or close them. I need to manage them just like the main window. ...