vb.net

Few question about client application to be networked

I have made a registration program. Making use of mysql database. Can I still use the traditional programming for client applications. If I want to network it. Do I have to modify the codes a little in order to make it work? -Please enlighten me, I'm just a beginner. I don't have any idea on how this works. Do I have to install wampse...

Dynamically Scaled UIs with VB.NET WinForms?

I'm wondering if anyone is familiar with designing UIs to be scalable to any resolution. Are there any libraries or functionalities of .NET that make this easy? We also have Infragistics controls as a resource. ...

iTextSharp custom paper size

Hi, I'm using iTextsharp library to create PDF files. I can declare for A4 Landscape paper like this: Dim pdfTable As New PdfPTable(9) pdfTable.WidthPercentage = 100 Dim pdfDoc As New Document(PageSize.A4.Rotate()) I'm wondering how I can set Height of pdfTable or A4 Height manually. Because there's a lot more margin left at the bot...

Fast serarch of 2 dimensional array

I need a method of quickly searching a large 2 dimensional array. I extract the array from Excel, so 1 dimension represents the rows and the second the columns. I wish to obtain a list of the rows where the columns match certain criteria. I need to know the row number (or index of the array). For example, if I extract a range from excel...

How to draw XNA window inside a panel?

I'm developing a 3d Viewer in vb.net and xna. It's working very well. I have now a windows form and an xna render window, but I would like to render it inside a panel in the windows form. I have searched for info, but it's so hard to adapt it into my application. How can I do it? Here is the application. ...

Problem sub-total Matrix with rdlc report in vb.NET

Hi everyone, I have a matrix and I need to add the money earned this year and past years. However, I must remove the money spent in past years. I must have the separate amount per year and the total of these amounts. This is what gives my matrix: Year = Fields!Year.value =formatnumber((sum(Fields!Results.Value))-(sum(iif( ...

CSS Div Width Problem - Lining divs... widths seem to be off in IE7

So far, I'm doing this programmatically using VB.net/ASP.net: <table cellspacing="0" cellpadding="4" border="0" style="border- width:0px;width:100%;border-collapse:collapse;font-size:12px;"> <tr> <td colspan="6"></td> <td align="center" colspan="3" style="background-color:#F0D3D3;text- decoration:unde...

How do I put a listing of files into a menu?

I have a folder with .txt files in it. How can i make my menuitem get those .txt files and put the filenames in the menuitem, so that it creates a list of all .txt files in that folder. So when i put a .txt in the folder the program automatically creates the menu item. Does someone knows how to do this, or perhaps an example? ...

The best use of time at Visual Studio Launch 2010

Yes, this is a programming-related question, if a little indirectly. For better or worse, I am switching from Winforms to WPF in April. I am also going to be in attendance at the Visual Studio Launch in Las Vegas. I have a real need to get up to speed quickly in WPF, so my question is: What sessions are going to be the best use of my...

.NET and P2P - writing a P2P messenger

Hi there, Does anyone have any advice how to write such app? Or maybe knows some nice tutorial? I would like to use System.Net.PeerToPeer namespace, but everything I can find about it is MSDN which I can't read without getting mad. Or maybe using "old-school" TCP/IP would more efficient? I will appreciate every piece of advice. Every s...

Handling events from user control containing a WPF textbox

In order to take advantage of the spell checking ability of WPF textboxes, I have added one to a user control (with the use of elementhost). This user control is used in various window forms. My current problem is trying to handle keyup events from this textbox but the windows form is unable to "get" any event from the control. I can acc...

mysql database that can be accessed over a vpn?

I have 2 computers. Both with w7 as os. I have installed wampserver on one of them. I have mysql database on wampserver. Then I have made a vb.net program to connect to mysql database. I have put the program on both computers. What I want to do is for those two programs to see the same database that is on one computer. For them to be abl...

How do I make a column invisible in a gridview?

How do I make a column invisible in a gridview? I tried to use this: dataGridView.Columns(0).Visible = False But its getting an error "Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index". How can I do this? ...

Delegate within a delegate in VB.NET.

I am trying to write a VB.NET alternative to a C# anonymous function. I wish to call Threading.SynchronizationContext.Current.Send which expects a delegate of type Threading.SendOrPostCallback to be passed to it. The background is here, but because I wish to both pass in a string to MessageBox.Show and also capture the DialogResult I ne...

how to read check box in a word document in asp.net

hi friends present i am working as developes, i want code for the following scenario my scenario is the word document must contain checkbox, and this word document should read to asp.net page, when user click the check box, the selected value should be stored into the database can any one help me ...

how can i create a video duration bar in vb.net

how can i create a video duration bar so that if i add a video in listbox the duration bar should automatically increas its total duration and display the duration on it....just like in any video editing software... ...

Number of repeating in multidimensional array

Hi! I need to count number of repeating and position where they repeat of all number in multidimensional array like this: 1 2 1 1 1 2 2 3 1 And result need to be: Number 1- two times on position 1, one time on position 2, two times on position 3 Number 2- one time on position 1, two times on position 2, one times on position 3 Nu...

How to exclude non-browsable members in a sandcastle xml documentation build

I'd like to be able to exclude members that, although Public, are decorated with EditorBrowable.Never. I can't see any where to do it in the options. Is there a plug-in out there where you can specify attributes to exclude? Cheers ETA: Looks like I may have found it - the <exclude /> Tag. I'm just testing it now.... ETA2: Yes it work...

VB textbox.focus() problem

I cant seem to get VB to focus on a textbox correctly at the moment I did TextBox.focus() in the load event but still a button keeps grabbing focus anyway. Does anyone know why this would happen? ...

Disable Copy from DataGridView

Hi All, I think this is a simple question. How do I disable copy from a DataGridView. It's a silly security feature. Thanks, ...