Use A Common _ViewStart In Areas?

Nov 5, 2010

In my "root" Views folder, I have a _ViewStart with the following code:

@Code
Layout = "~/Views/Shared/_Layout.vbhtml"
End COde

[code].....

View 3 Replies


ADVERTISEMENT

Activate A Map's Different Areas So As To Be Able To Click These Different Areas?

Jan 30, 2010

I would like to add a picture on my form, e.g., a map of Europe, and i wanna be able to click on UK or France etc. Each country will be programmed in doing something else. What i wanna do for a start is to make my map active so as to can click on these different countries.

View 10 Replies

Declaring Graphics Areas?

Jul 8, 2011

I have a form that I want to draw an image on.I also want this to be an animation so I can't use picturebox.However when I declare the graphics it gives me the error: "Type 'System.Drawing.Graphics' has no constructors"

:I have already import 'system.drawing:
Dim g As New Graphics() 'I get the error here
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles

[code].....

View 7 Replies

Looking On Input For Areas To Improve?

Jul 21, 2011

I'm currently in a programing class for vb.net. It's my first true exposure to OOP and I'm looking for some advice on areas where I could improve. I was wondering if someone would be willing to look at one of my programs that I have written and offer advice on areas where I can improve and things that I made much more complicated than they need to be. I'm not looking for a line by line critique just a general look at things to improve upon in the future.

View 2 Replies

Placing The Same ASP.NET Control In Different Areas Of A Page?

Feb 4, 2010

I have some code that I've inherited, and it's not the greatest in the world, but it works, with one small exception:

This page is a directory search, it has controls identified by record ID, however there exists a situation where there can be more than one result with the same record ID, thus making .NET barf. I had originally implemented a check that just didn't put the control on the page, if it was already there, but we've been getting negative feedback.

My question is this: Is there a way to put the same control in two places at once, for instance having if a user checks one, the corresponding one checks as well? I'm not terribly well versed in how .NET behaves, but I'll try to provide as much additional context as possible, if needed.

EDIT: Here's the updated code that generates the controls by looping over a datatable of results

Dim cbxSendInfo As CheckBox
Dim strCheckboxID As String = "cbxSendInfo-" & drOrganizer("ID") & "-" & i
Debug.text = Debug.text & "    Loading Checkbox (" &

[Code]....

Where drOrganizer("ID") is the record ID, and i is the result record number.

I know this is a terrible way to do this, at least from my background, but like I said, this is inherited code that's been hacked to pieces.

View 4 Replies

VS 2008 With Big Areas Of Text In Database?

May 24, 2011

I need to save in my Database, records that have a big amount of lines, and like we know each text field of Access database, have just 255 caractheres to insert.

View 4 Replies

C# - Return Another PartialView That Occupy Different Areas Of My Page?

Jan 14, 2010

i have an Ajax ActionLink which normally just returns a PartialView (which is just a UserControl ascx file) however, my needs have changed and i want to return another PartialView (so a total of two PartialViews) that occupy different areas of my page... of course i can't call " return PartialView("UserControl.ascx") " twice in a row consecutivelly... so my question is what would be an elegant work around for this?

how can i return two PartialViews WITHOUT wrapping these two PartialViews up in a larger parent view? i hesitate to do this because both items are in a different part of the html table which would require me to include practically the entire page in the parent view due to the structure of the table, and in this case lots of html data unnecessarily would be sent to the browser at each request - defeating the purpose of an ajax call/partial update (correct me if i'm wrong).

View 2 Replies

Custom TabControl - Move The Tabrect Areas?

Jul 23, 2010

Wondering if its possible to move the tabrect areas? For example:

[Code]....

I can already paint the tabs to the new location, but not sure if I have to override onmousedown or onmouseclick or what to have the tab selection area match up with the new painting. I haven't found any example of what I am wanting to do.

View 14 Replies

Setting Differnet Areas Of Form To Be Clickable?

Aug 26, 2009

i have a form that looks like this: i need different areas to execute different code, just as if there were buttons. how do i set areas of the form to be clickable in vb.net?

View 2 Replies

Draw Over A Form, Detect Drawing In Specific Areas?

Mar 27, 2010

[URL] In my Windows Form, I wanted the user to give an option to draw all over the form. But, if the user while drawing, enters the region 1, I want to assign a value to variable, say a=1. Correspondingly, if the user without leaving the mouse button previously enter the region 4, I want to b=1.After the user leaves the mouse button, I wanted to compare a and b. If both of them are equal, then Result=Done else not.

View 3 Replies

Making Transparent, Unclickable Areas In UserControl/pictureBox

Oct 22, 2010

I have a userControl with a picturebox in it. I need the areas of the userControl to be transparent and unclickable on the main form. After some searching Ive come up with this. [URL] but it doesn't seem to work. I have it set up so the usercontrol can be drag-and-dropped. but I dont want transparent areas to be dragable.

View 1 Replies

Stripping HTML Function Within Text Areas Content

Mar 10, 2010

I'm writing a small program that loads a folders contained file names into a list box, you then double click one of the file names listed and it appears within the programs text area where the user may freely edit it. I then have given the users options to export the data contained within the text box to a word template. What I'd like to do is add a button which the user can click in order to strip away all the html within the text areas content. I found a solution but for some reason I can't make it work. There are no errors displaying nor does the program crash out, it simply isn't doing what it should be doing.

The function I'm using is below:
Function stripHTML(ByVal strHTML)
'Strips the HTML tags from strHTML using split and join
'Ensure that strHTML contains something
If len(strHTML) = 0 Then
stripHTML = strHTML
[Code] .....

I've used the below snippet in an attempt to put the function to work in the text box.
Private Sub btnHTMLstrip_click()
' calls function stripHTML, applies to text box
richTxtBox.Text = stripHTML(richTxtBox.Text)
End Sub
So, its not working as it should?

View 1 Replies

Trim Images Crop To Remove All Blank Areas?

Aug 21, 2010

To reduce the size of some images I have, I'd like to remove the white padding that some have. The idea would be that if one has large white areas on the borders, then those can be cropped to save some space.

View 1 Replies

Ensure That Operator Cannot Accidentally Enter Data In Output Areas

Jan 24, 2010

1.Ihave to produce an application that enables the user to enter an integer rate of pay and an integer nr. of hours. On clicking a button the application should display rhe pay due. Amend the application:rate of pay to be entered as a real number;Employees are taxed at emergency rate of 40%. Amend to display GrossPay and NetPay.

2.Ensure that the operator cannot accidentally enter data in output areas!!!

The application is to be amended so thet the employees are paid overtime at time and a half for working more than 8 hours in any one session and all data enter by user should be checked to ensure that it is in a valid format and that the values are acceptable. [code]

View 2 Replies

Multiple File Upload With Input Areas Dynamically Generated

May 28, 2009

I want to create a form where the user can upload as many images as they like with the input areas being dynamically generated. I can't use Ajax for this I need to use ASP.NET controls and the images are being written to a database. Any ASP.NET control that can accomplish this? Here is my code for the dynamic form, its Javascript and its not passing the "PictureSmallLink" value back...and their in lies my problem.

<input id="PictureLinkSmall" name="PictureLinkSmall" type="file" runat="server" size="60" />
<input id="AddFile" type="button" value="Add file" onclick="addFileUploadBox()" />
<!--<p><asp:Button ID="btnSubmit" runat="server" Text="Upload Now" onclick="btnSubmit_Click" /></p>-->
<span id="Span1" runat="server" />
<script type="text/javascript">
function addFileUploadBox() {
[Code] .....

View 3 Replies

VS 2010 - Shading Some Areas Of Clock Image Based On Time

Mar 30, 2011

I have a table which contains the start date and end date, in my db. What I currently do is simply display both the fields in a ListView control. But instead of that approach, I'm thinking about displaying a 'clock' image and shading those areas with some color. This is similar to a Pie Chart. But the only difference is, I'm going to display a clock's image as background and the shading is based on the time.

View 25 Replies

Do All Programming Languages Use Static / HEAP & Stack Areas To Store Memory

Apr 9, 2012

Do all programming languages use the Static, HEAP, & Stack areas to store memory? Does understanding this help me with debugging in any way? How do I query or access the memory in .NET would I ever need to do that? Or the memory addresses?What keywords would I type into Google to get more on how the .NET CLR uses memory?I'm learning Java and am trying to compare .NET and Java and how memory management differs and is similiar.

View 2 Replies

How To Use Common Variables

Jan 12, 2012

I am new to .net and I usually had a common file which was having information of username,server,password,IPS and fixed integers in php and asp classic which i used to include in all files so that i could use them in any page. Since I have come to know that .net has no include function. how i can do it in asp.net?

View 3 Replies

Add Some Common Details In More Than Two Tables

Oct 27, 2010

I need to add some common details in more than two tables. [code]So i have stored the Department (from drop down list box) and assigned it to Dept.So i guess dept would have Csc if i choose csc and commerce if i hoose commerce.When I checked with breakpoint it s workin. Datas are added perfectly. But they are not visible in that respective table

View 2 Replies

Common .vb File For All Projects?

Apr 17, 2011

In the old VB, there is a .bas file wherein i place all the global constants there and whenever i create a new project i just include that .bas file so that all the constants i placed are automatically added to my project. Is there any way to do this on VS2008? Ill be doing dozens of Class Libraries that that needs to reference global constants.

1. Is there any other way of referencing the global constants rather than making it a shared variable in a class?

2. Also, is there a way to include a .VB file without the copying it on the local project file? My point being is that this .VB file is also being used by other Class LIbraries that i created.

View 4 Replies

Common Event For Like Controls?

Aug 28, 2011

Is it possible to set up a common event handler for a group of like controls like buttons or text boxes so a single event handler is called regardless of which of the controls is clicked, changed, etc.In my PrinterDialog study project I have 5 text boxes named TB1, TB2, TB3, TB4 and TB5 in a text box array called TBs so they can be accessed with TBs(0), TBs(1), etc.My question is if I can set up a single click event that responds when any of the 5 text boxes are clicked to avoid duplicate code n 5 different click events.

View 1 Replies

Dbtype Of Common Dbparameter

Aug 9, 2009

if i miss to set dbtype of my parameters (common.dbparameter) it works fine again?Is necessary to explain dbtype or not?

View 1 Replies

Get Common Images For Buttons?

May 25, 2009

I know it is not vb question but I was wondering if there is any place to get the common images for buttons (like save, clear, find, new , delete etc...)

View 2 Replies

Get The Data 'less Common As Possible' From A Collection?

May 15, 2011

Starting from a table like this:

| Code | Year |
---------------
| A01 | 2001 |
| A01 | 2002 |
| B01 | 2002 |
| C01 | 2003 |

I have to arrive to this:

| Code | Year |
---------------
| A01 | 2001 |
| B01 | 2002 |
| C01 | 2003 |

I have to group the first column (Code) and from the second (Year) I have to get the data 'less common as possible' compared to all the other records. I try to explain this with the example: for the code 'A01' I have 2 years: '2001' and '2002'. I have to take '2001' because it's the one that not recurs in the other records. In the case that there aren't available values 'Year' that not recurs in the other records, it's good to take whatever value.

The data are in the form of array in memory and to interact with them I'm useng some LINQ queries.

View 4 Replies

Getting Three Most Common Numbers From File?

Feb 16, 2010

Essentially, whenever my users who are logged in via a global module level variable enter a new form, their activity is "logged" in a textfile with their UserID as the name.txt and every time they visit a page it adds a new line to their log file with a number corresponding to the form they visited. For example, if they select "add a user" it will add the line "1" to their log file. Note: At the moment there is only 1 2 and 3 not 0.

I have got this far and I have got as far as creating an array which has:
Array(0) = NumberOfTimes 0 appears in the log file
Array(1) = NumberOfTimes 1 appears in the log file
etc etc

Therefore the output for this is
Msgbox(Array(0)) shows "0"
MsgBox(Array(1)) shows "4" for example and lets just say
MsgBox(Array(2)) shows "9" and
MsgBox(Array(3)) shows "1"

Therefore, finally (!) my problem is now finding which 3 are the top. I have tried various methods of sorting them but I just get "9, 4, 1, 0" rather than "2, 1, 3, 0". (By the way the end product for this is to show three links on the "welcome form" of the users 3 most visited forms). Here is a pastebin of all the rubbish I have currently tried that hasn't worked! [URL]

View 1 Replies

List Of Most Common Errors?

Nov 2, 2009

When I was learning QBasic I found a list of most common errors and it told me whether my errors were syntax errors or logic errors. Where I can find a similar list for VB 2008 Express Edition?

View 7 Replies

One Common Navigation For All Forms?

Feb 15, 2012

i made an application using VB.NET 2010. i have 5 forms. i want to know how to make one common navigation (like in a webpage) for this application. Is it possible to have the menu and header static and loads each form in one dynamic container. I hope my questing is clear :P just to make it more cleared, it is more like having a templates in php coding where we can load other page in a particular area without having to reload the entire page with each links.

View 2 Replies

And And If Statements - Only Get UltraRare Or Uncommon Or Common

Mar 27, 2012

What I am doing wrong with these And and If statements.

Sub SetRarity()

Dim Subtotal As String
Dim Total As String

[CODE]...

My question is what am I doing wrong I can only get UltraRare or Uncommon or common.

View 2 Replies

Change Common Dialog Box In Vista/7?

Nov 2, 2009

I am looking for a way to modify the default values in windows vista and or 7.

Examples:

* The default directory for the save/save-as dialog box.
* The size of the window.
* The "favorites" list on the left of the box.

I have been looking for a while and the only thing I can find is to edit the group policy but this will only affect programs that are using the xp dialog box.I am sure this is actualy pretty easy but I cannot find anything for the life of me

View 2 Replies

Combining Processes But Using A Common Module In .NET?

Nov 2, 2010

Here is a complicated, but possibly dumb question concerning adding projects together in the IDE in order to increase performance and share memory at the same time.I have written two distinct exe's. The first exe (file processsor) operates using three timers to perform communication between a hardware OEM proprietary ComServer and file output from the second exe. The second exe (work generator) simply outputs files on hard disk so that the "file processor" can process the commands in the order given. The first exe was written as a "background processor" to the second exe in a stand-alone fashion. There is a need to communicate data between the first and second exe that is time sensitive. The ComServer called by the "file processor" only allows one port to for communication to the hardware device that is a USB. The "file processor" is capable of extracting the data required but the existing technologies, such as RPC, IPC are too slow and or full of pitfalls. Microsoft's Memory Manger has found it easier to create multiple instances of the proprietary ComServer and assign the needed memory to the calling routine so that it can "scoot" memory easily in the garbage collection feature of the operating system. What this does is cause the mullitple instances that are created to "gang up" on the device either slowing its performance down, or causing time outs. [The second process is a custom 3-D graphical CAD/CAM. The first process is a machine interface. Although hind-sight is 20-20, it seemed more ideal to write this background or file processor independantly, as then it could communicate with existing as well as a custom CAD/CAMs.]

Simply writing the first processes' code into the second slows down the second process as a result of all the timer interrupts looking for work to do. (Mouse is squirrely, screen refresh is slow, etc.) I am only guessing here that the operating system's service of the more complicated single memory location is somehow interrupted more frequently for a larger project, than two smaller independant projects running seperately. I only know what I observer here. Interestingly, the two smaller projects running seperately seem to run fine.

Now for the dumb question. Is it possible to merge the "file processor" with the "work generator" in the IDE such that each process runs as independantly as two distinct apps, but at the same time, make it possible to share memory via one Module1.vb? So far, I cannot find a way for the "file processor" to see the "work generator's" Module1.vb, regardless of how many PUBLIC statements I issue in the code. In other words, what would be the steps after File->Add-> Existing Project to cause the "file processor" project with a form to start first, then drop to the background, followed by launching of the "work generator" second where each process shares the same Module1.vb?.

If this could be done, say through a compiler statement, or whatever; then this could make the Memory Manger folks happy, and provide for the speed required to operate real world processes? Basic computer science suggests a simple processor LD instruction could make data available to any application within a few clock ticks. Microsoft now longer allows direct memory access, or the ability to carve out a "stay resident" dll in memory where a memory location can be called for quick distribution information to all apps with just one call to a device.

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved