.net - Do "heavy" Properties Carry Weight Even If They Are Not Populated

Sep 11, 2009

Let's say you have a user class. When the user is logged in there are properties representing basic user info, an associated address and, say, 5 profile pictures, the last a generic lsit like this: Private _photos As List(Of Photo). However, instead of carrying the weight of the profile pictures in a session vairable, to reduce resource usage, I only want to populate them if the user needs to acces them. So, for the most part, the generic list of photo's is empty. Will it carry weight anyway? I'm trying to decide if I should just not populate ituntil needed, or if I should create an alternative "light" user class which doesn't have this property.

View 2 Replies


ADVERTISEMENT

When Passing An Object As An Argument To A Method, String Properties Are Populated But Integers Are Null

Jan 27, 2011

I have a class and method exposed to a client asp.net app. The class looks like

<DataContract()> _
Public Class Class1
Private v_string As String
Private v_integer As Integer

[code]....

The method is declared as

<OperationContract()> _
Function GetStuff(ByVal bar As Class1) As String

In the client code I create an instance of Class1 and set the values for v_string and v_integer, but using Wireshark to look at the xml being sent to the server only a value for v_string is being sent as part of Class1. I'm guessing this is because it considers the value of v_integer to be null/not set. Here is an example of the client code.

Dim MyService as New Service1.ServiceClient
Dim test as New Service1.Class1
test.P_integer = 1

[code]....

how different types are passed/used since Integer is a intergral type and String is a class, but can't seem to work out what to do to fix the problem.

View 4 Replies

C# - Heavy Computing On Remote Pc?

May 8, 2012

I love to experiment with linqpad, but now my task requires heavy computing power. Trying to do it on my computer is painful. My friend has a much more powerful computer than I -- can I execute some operations from my linqpad on his computer? I don't have RDP access, but I can run any .NET program on his computer.

If it is not possible, then is there any FREE service that provides computing power? Maybe a hosting trial or something. I know that Windows Azure offers a 30-day trial, but it has a very slow CPU module and in my country, MS partners cannot be expected to fix service sites when they go down.

View 2 Replies

C# Usage In COM Heavy Application?

Feb 23, 2010

I would like to use C# for an application I'm building, but the application makes heavy use of automation (i.e. Excel, Word).

Is it feasible to use C# for such an application? It used to be a nightmare to use C type languages for things like parameter lists with null arguments etc..?

View 2 Replies

Loading Heavy Application?

May 28, 2009

I created a heavy application in vb.net 2005. And on start up of main form it doing lot of things like

1. Check New Software Update taking 15sec

2. Check Registration taking 15 Sec

3. Initialize Software also take almost 20 sec

First my application show Splash Screen and do 2 operations like

1. Check Update

2. Registration

So i want to do this First show Splash Screen and

-same time it start 3rd Process and remain Hide Main Form

-Same time it perform 1st and 2nd operation if pass then just show 3rd step without time waist.

I do it with delegates threading but it is not doing both operations same time.

View 8 Replies

Loading Screen While Heavy Load

Nov 26, 2008

I have this application that fetches huge chunks of data from databases and i would like to have a loading screen, or simple image (gif) appearing on top while the app is working... but what normally happens is the whole application locks up. How can I make a certain part of my application still responsive while the rest loads?

View 1 Replies

Increasing CPU Usage To Simulate Heavy Computer Use

May 19, 2011

I'm building a VB.NET 2010 app that tracks battery usage. Run the app, start logging, then let the battery go flat. At the end, you get a nice graph that shows you how long the battery took to run down. Compare it to previous results and you can see how battery life is doing.

But this is supposed to be an unattended app, so it's not feasible for me to sit down and use word, browse the Internet, listen to music, play games etc. for four hours (especially at work!), so I'm looking for a way to artificially increase CPU usage to chew through the battery faster, and simulate how a battery would probably be used throughout a work day.

I've managed to inflate the memory usage using:

Dim a as long
Dim ptr(0 To 20000) As IntPtr
For a = 1 To 20000

[Code]....

I increase CPU usage in VB.NET? I've tried creating new threads with constant loops, but I get the funny feeling that VB.NET optimizes these kind of things to prevent memory and CPU hogging apps from taking over

View 3 Replies

Carry Over The IP's To Listbox2?

Oct 29, 2009

Stuck on resolving host IPs within a listbox. I want it to carry over the resolved IP's to listbox2. But also have an 2 radio options either to resolve IP to Hostname or resolve Hostname to IP. Thus when I hit the start button, it checks to see which one is selected and starts the process. Here is what I have found, but can there be a simplified version to this but for lists? [URL]..

View 1 Replies

Carry Info To Different Form

Jun 15, 2011

I want to create a form that a user will enter information into. Once the user hits "Submit", the program will search through my db. I want the result to populate into a completely new form. I only need the info from one column in order to generate the entire record, but how do I carry the info retrieved from the search what the user selects into the new form in order to populate the new form.

View 4 Replies

Carry Out Bidirectional Synchronization?

Dec 15, 2010

I want to carry out bidirectional synchronization.I have implemented the code and procedures in the walkthrough however i have nearly a hundred forms and more than 50 tables how do i go about that

View 1 Replies

Do Rotate Right Without Carry (Shift Towards LSB)?

May 11, 2010

I am trying to rotate a select number of bits to right with click of a button. ( bit 7 to bit 0 and rotate.) The patterns should not matter. It could be any combination of set or reset bits. The bit patterns are selected by checkbox0 to checkbox7. I like to rotate without a carry bit. Is there any way(s) to do this?

View 6 Replies

How To Carry Pictures In VB Codes

Jul 28, 2011

I'm trying to add the original pictures to my vb.net program.When the client computers install the program there should have the original pictures in their computers.And other programs, not this vb.net program, can deal with the picture. Better to get the picture fullpath ,something like D:program filesabcody.jpg.

View 8 Replies

Keystrokes Carry Over To Other Objects?

Sep 9, 2011

I am facing a problem in my code. I am working on an application in vb.net, its a windows based application. On one of my form I need to perform so many data driven operations.

if I press tab on one of the text box, I need to set a computed value in other text box and need to set the focus to that text box.

I write a code that is a like to this.

Private Sub TextBox1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyUp
Select Case e.KeyCode

[Code]....

View 9 Replies

SOS Call : Using Buttons To Carry Out Functions?

Jul 24, 2009

codes to implement buttons to do the following

1. Pause a process/ action event.

2. Resume the process/ action event.

3. Stop the process/ action event.

4. Speak the time based on the clock.

View 10 Replies

Binding Combo With Heavy Data - Reduce The Page Loading Time?

Aug 25, 2009

I have combo box being filled with more than 50 thousand records. it is getting sometime to load and bind the data. I am using datatable to bind the data. I tried using data-reader as well but in vain.

View 3 Replies

Forms :: Database Driven Login Form With Admin Backend (Image Heavy)

Jul 19, 2008

How To on a database driven login form. I'll include the Administration Backend to go along with it soon. Dial-Up users should not use this thread, it is image heavy

[Code]...

View 17 Replies

VS 2008 Random With Weight

Jan 8, 2010

I'd like to ask you a programming problem which is bothering me for quite some time now. Here is the problem

[Code]....

View 22 Replies

VS 2008 Random With Weight?

Apr 13, 2010

I'd like to ask you a programming problem which is bothering me for quite some time now.Here is the problem

I'd like to pick random names from:
-peter,50
-rick,25

[code].....

View 1 Replies

Calculate Ideal Weight For Height?

Aug 25, 2009

How can we calculate ideal weight for a given height in vb 2005. If weight is given in Kg and height is given in inches..

View 3 Replies

Code For A Program - Converts Weight ?

Jun 14, 2010

Code to make a program in visual basic that converts your weight from Earth to you weight on the Moon.

View 3 Replies

Programing Planet Weight Calculator In VB?

Jun 4, 2011

I am trying to make a program that converts the weight of objects on earth into other planets. i have trouble with naming things like weight ratio and planet because VB program doesn't accept the coding. i don't know where to put theh data in the disk so that the program can access it when it runs.

Imports System.IO
Public Class weightcalc
Private planet structure

[code]....

View 1 Replies

VS 2005 - TableLayoutPanel - Does Using It Add Weight In Application

Aug 8, 2009

Does using it puts any degradation in the performance of an application like the loading of the form/usercontrol is slower since the TableLayoutPanel has to be instantiated and the controls has to be added to it? I use it extensively and from time to time I combine it with a Panel also so I would like to be enlightened if there is no cause of concern in using it.

View 3 Replies

VS 2008 Develop A Web App That Can Interact With Websites And Carry Out Automatic Tasks?

Sep 7, 2009

I'm using Visual Studio 2008 on an XP machine and am trying to develop a web app that can interact with websites and carry out automatic tasks.One problem I have is trying to recreate the web requests for automatic interaction.

For example:I use a webBrowser control to allow me to surf a page manually. Then, once I am at a specific location, I'd like the automatic interaction to take over.Part of the website requires a log-in and exchanges cookie data.When I try to read the cookie info from the webbrowser control to build the subsequent automatic requests, the cookie content is incomplete.Upon further investigation, it appears that the site sets one of the cookies to "http only". This stops the value being visible to the webbrowser control.Is there another control or method I could use to retrieve this info?

View 1 Replies

Accept Weight Data From Detecto AS-350D?

Oct 27, 2010

I've found a scale, Detecto AS-350D [URL].. that hooks up to a computer. I was hoping someone could help me figure out how to get the information (weight) from it. I've looked around but can't seem to find any information on it. I've never wrote a program where I accepted data from a device likes this so kind of confused where to look.

Update: I'm coding in VB, and the device connects to the computer via serial port.

View 1 Replies

Adding Numbers From Repeater (Weight Field)?

Apr 20, 2010

I have a Repeater... And it has a Weight field. the weight it displayed in a textbox. I have this piece of code:
lblTotalWeightCalc.Text += NewDV.Item(i)("Weight")
This will get the Weight and display it in my label. But when I select more than one item (which will have two weights) it will show: For Example:
Item #1 : Weight = 20
Item #2: Weight= 50
The total Weight= 2050 (it doesn't add them together) I need them to be added together....

View 3 Replies

How To Change The Line Weight In A The Chart Control

Dec 3, 2010

I'm using Visual basic 2010.net with service pack 4.0. I'm using the built in chart control to generate a line graph. I have a series plotted on the fastline graph. Is there a way of accessing the weight/thickness/boldness of the line and changing it? I was able ton change the colour and I could even change the point size on the fastpoint graph.

Code:
Private Sub DisplayGraph_frm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

[code]....

View 1 Replies

Program For Weight Converter Pounds To Kilograms

Aug 4, 2009

So I am trying to write a program and I don't even know where to begin. I am trying to make a program where you enter the persons weight then pick (from radio buttons) "convert Pounds to kilograms" or "convert kilograms to pounds" and then it should convert the weight when you click display weight button to display the converted weight value. Any ideas?

View 5 Replies

VS 2010 - Most Efficient And Speedy Data Structure In Order To Carry Out Calculations

Mar 12, 2012

Which is the most efficient and speedy data structure in order to carry out calculations on it?. I have seen, collections, arrays, list arrays, databases and more. I would prefer to write just straight forward code that will be effective and which I can still understand. What I would like to do initially is have the ability to add new draws to the end of the file, edit the individual files and delete lines if required.

File would then be reformatted to show the corrections made. Some kind of data entry window is envisioned. As far as number crunching goes, I would like to make counts of each number in each of the columns , calculating averages, times since last drawn and so on.

Without being too long winded, I would eventually like to find triple combinations and maybe use them as predictions. So there you have it. This way I won�t have to go off on the wrong path, on a data structure that may not be able, or be too slow for the tasks at hand.

View 5 Replies

Project Topic Is On Data Conversion For Length And Weight

Mar 11, 2010

[code] My project topic is on data conversion for length and weight. There is something wrong with the code.

View 5 Replies

Capture Weight Of A Mettler Toledo Truck Scale Using Serialport

Aug 31, 2011

I got a code online to read via rs232 using serial port ,the code uses readExisting() to get the data(im geting data form a MettlerToledo scale connected at com3,9600,8,N,1)problem now is that i change it to ReadLine() but it captures the weight once and i need the weight updated all the time!

View 1 Replies







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