473,544 Members | 2,299 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

3
2,493
thread by: gjtired | last post Nov 23 '05 by: gjtired
Hi, When I click a button or dropdown box at the bottom of the web form the focus shifts to the top of the form. What can I do to make it stay where it is at? Thanks Gayle
0
902
thread by: Nejat | last post Nov 23 '05 by: Nejat
Hi, In .Net 1.1, I am having a strange problem where the overriden OnLoad() method of a usercontrol is being called at the end of the InitializeComponent() method before the logic in the constructor is complete. If I trace the logic all the way through, it will eventually comeback to the remain logic in the constructor. If I put a break...
2
1,122
thread by: Simon Hart | last post Nov 23 '05 by: Jon Skeet [C# MVP]
Hi, Is there any benefit in terms of performance to using a Struct over a class to store objects? Regards Simon.
1
11,148
thread by: Al | last post Nov 23 '05 by: Brian C. Barnes
I'm using visual C# 2005 Express Edition and I would like to open the image in the picture box, without make the picture box larger. For the moment, the code is: private void button1_Click(object sender, EventArgs e) { openFileDialog1.ShowDialog(); Image img = Image.FromStream(openFileDialog1.OpenFile()); pictureBox1.Image = img;...
5
1,425
thread by: booksnore | last post Nov 23 '05 by: booksnore
I am reading some very large files greater than 10 GB. Some of the files (not all) contain a header and footer record identified by "***" in the first three characters of the record. I need to delete the header or footer record before reading the file into a database. Whats the best way to do this in C#? Any help appreciated. Joe ***...
5
14,144
thread by: John | last post Nov 23 '05 by: John
Hi, I can't find a simple example for a simple(?) problem. I am working on an application with a variable in form1, that variable is needed in form2 for a calculation but i can't get that variable in form2. Is there a simple method (in VSexpress2005) to get that specific variable in form2? TIA,
5
1,480
thread by: Eţref DURNA | last post Nov 23 '05 by: John Timney \( MVP \)
how could I send a parameter to a runing csharp windows application?
4
4,605
thread by: Matt | last post Nov 23 '05 by: Matt
I receive a file from a client and the first 8 bytes are in Big Endian format to denote the length of the following data. This is one of the security requirements. I also have to do the same thing when sending a response file back to them. Does anyone know an easy way to convert this Big Endian format from/to an integer easily to make it...
2
1,486
thread by: pete K | last post Nov 23 '05 by: pete K
I'm sure this is something simple that I'm missing, but here's my problem. I have two frames. <frameset> <frame name="rtop" src="something1.aspx"> <frame name="rbottom" src="something2.aspx"> </frameset> What I want is for "rbottom" to display a form and when the user presses the OK button, the windows change for both frames. For...
1
1,121
thread by: Gidi | last post Nov 23 '05 by: Jeff Louie
Hi, I've created a form that prints a document which i created (with the printDocument class), I draw the page's lines and text. when i'm printing it on my computer, with my printer, the printing is ok, the page boundes are ok. but when i take my project *.exe file to a computer which have only .NET framework (and don't have visual studio),...
2
1,549
thread by: booksnore | last post Nov 23 '05 by: Brian Pelton
..eh I was stuck thinking up a subject title for this post for a while.. So I am processing a really big file (scary big). Each record is fixed length, I need to test conditions on certain fields in the record. At the moment the most efficient way I've found to process the data is a series of nested if/else statements so like below. My...
2
2,460
thread by: cr | last post Nov 23 '05 by: cr
Hello. I have a C# (Windows forms) project that uses OpenSubKey to write some values to a registry key. Here's the code: // Create the Installation registry key and values Microsoft.Win32.Registry.LocalMachine.CreateSubKey("SOFTWARE\\Company\\Produ ct\\1.0\\Installation"); Microsoft.Win32.RegistryKey install =...
1
2,234
thread by: Tof | last post Nov 23 '05 by: Peter Bromberg [C# MVP]
Hi, i 'd like to do this : - i've got a .net app (in background) and i want to trap WM_GETMESSAGE (for wm_paint) from any another window app. I don't find any good solution ! The only good think i can catch from another app is mouse and kb messages (with global hook & injecting C++ dll) (WH_KEYBOARD_LL , WH_MOUSE _LL and SetWindowsHookEx)....
4
13,346
thread by: vooose | last post Nov 23 '05 by: vooose
Consider accessing a webpage through a proxy server: WebRequest request = WebRequest.Create("http://somepage.com"); WebProxy proxy = new WebProxy(proxyHost, proxyPort); proxy.Credentials = new NetworkCredential(proxyUsername, proxyPassword); request.Proxy = proxy; Now suppose the *proxy server* authenticates using NTLM (somepage.com...
2
2,202
thread by: AdrianJMartin | last post Nov 23 '05 by: TerryFei
Hi all, I just written a app that attemps to copy a user selected file to a bunch of users machines. Trouble is that when call System.IO.File.Copy( src , dest , true ) i get a Unauthorised Access Exception thrown. dest is would be something like "\\UserMachine01\c$\localScripts\theFile.vbs"
3
1,868
thread by: androidsun | last post Nov 23 '05 by: androidsun
I am using C#. How to configure the Visual Studio.Net so that it will compile project .Dll and .Pdb on the \bin directory on my remote development server instead of in the C:\Documents and Settings\<my local account>\VSWebCache\<my web server address>\MyAppName? Currently, I have to copy the the .Dll and .Pdb from the VSWebCache aand paste...
3
1,396
thread by: rdh | last post Nov 23 '05 by: rdh
I'm using List<> to store a class of positions. Position are basically latitude and longitudes (doubles). the line is something like List<position> P = new List<position>(); Then I start adding to the List. P.add(Positions);
0
464
thread by: xzzy | last post Nov 23 '05 by: xzzy
I am using www.obout.com 's treeview control and their postback dll ( for an aspx web page ). The treeview and no postback works, BUT the postback dll keeps getting removed from the solution. No problems with any of the other dlls in the app. I have asked www.obout.com about this but they do not know. How do I prevent the DLL from...
1
815
thread by: Brett Kelly | last post Nov 23 '05 by: Truong Hong Thi
Hello, I'm trying to dynamically create instances of objects using Activator.CreateInstance(), but I'm getting the above error. Here's the code that calls CreateInstance: ------------------------------- Type t = em.GetTypeByExt(ext); object targs = new object
1
1,192
thread by: Daniel R. Rossnagel | last post Nov 23 '05 by: Eduardo Arévalo
Somebody knows as I can determine whichever TableAdapter has a DataSet, and if I can obtain a list of these?
1
278
thread by: alexmaster_2004 | last post Nov 23 '05 by: B
Hi There I'm working on a web project using ASP.NET 1.1 from C#. i have used a datagrid to display some info for the users from my DB. i have to columns in the DB that i want to display them in one column in the datagrid.the 2columns are CompanyName and CompanyLogo. so i want the 2 columns to be one column in the datagrid as: the company...
1
10,323
thread by: Brian Pelton | last post Nov 23 '05 by: Jon Skeet [C# MVP]
I feel like I'm about to get in over my head, so before I go off the deep end I'm hoping someone can point me in the right direction. I started down the road of using a List<> of an Interface type. I wanted to be able to use List.Contains() to determine if the List already has a certain object based on the Name property - which is defined...
4
1,408
thread by: Joe | last post Nov 23 '05 by: TerryFei
Hi again, I used a profiler like recommended and found that the majority of time is spent on WriteArrayMember. I have around 15 classes that inherit from CollectionBase. ObjectWriter.GetType is taking .3468 seconds and System.GetType is taking .4340 seconds. I would expect GetType to return much quick. I was reading somewhere that...
2
1,165
thread by: OBINT | last post Nov 23 '05 by: OBINT
0
1,340
thread by: Alexander Wehrli | last post Nov 23 '05 by: Alexander Wehrli
Hi all, Im using AnimateWindow API to animate a form that is owned by my main form. This owned form is user painted. The issue now is that while the window is beeing animated, no drawing happens! How can I make the form draw itself while beeing animated? Regards Alexander

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.