Topics
-
-
- Administrators
- Leaders
- 4 replies
- 783 views
I have a header and library file I want to make into a DLL, my problem is I know nothing of C# and how to acomplish this. Could someone give me some direction. Thanks ZeroEffect
Last reply by ZeroEffect, -
-
-
- Administrators
- 2 replies
- 1.3k views
This is for a WinForms environment. I am trying to create a ComboBox, that contains all the Countries in my database where I don't have to "hook" it up on every single form that it will be used. So I tried to do some inheritance, I inherited it from a ComboBox. In the constructor I simply connect to the Sql database and query a list of Id and country values. However when I drag this ComboBox into my WinForm I'm getting some code generation in the Designer.cs under the InitializeComponent(). The problem is the autocode generator generates two lines. this.comboBoxCountry.DataSource = ((object)(resources.GetObject("comboBoxCountry.DataSource"))); …
Last reply by feurich, -
-
-
- Administrators
- 6 replies
- 1.9k views
hey guys, i am having a few problems with the file.exists() function. everything works fine when the file i am checking is on the same computer but if i put the file on a network computer .g my lptop and check if it exists then the program freezes and goes into not responding. can anyone help? thanks
Last reply by PlausiblyDamp, -
-
- 10 replies
- 6.5k views
Hi, I'm a beginner to programming and i've looked all over the net for an answer and I can't find an answer to my problem. I found one that was close but coded in vb 6 and when I tried to upgrade the code with 2008 it wouldn't work and my debugging skills are...novice at best. Here's the text file I need to extract data from: -------------------------------------------------- ftp> Connected to 10.100.50.25. open 10.100.50.25 220 JD FTP Server Ready. User (10.100.50.25:(none)): 331 Enter password. 230-Hewlett-Packard FTP Print Server Version 2.4.5 Directory: Description: ------------------------------------------------------ …
Last reply by randr11, -
-
- Leaders
- 7 replies
- 3.9k views
Hi, In my program I dynamically create an instance of a class (from an external dll), which is responsible storing and loading data with serialization. The serialization is working fine, but the deserialization doesn't work, since the assembly where the class is located is not loaded. (At least that is what the error message tells me: Unable to find assembly 'AT_Memory, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.) How can I fix this without referencing the assemblies at design time? If needed, I'll try to make a short code example.
Last reply by Arokh, -
-
-
- Leaders
- 2 replies
- 1.1k views
Dear all, This is part of the code for my Masters project which I wrote. I am using this code to run in VB to read data from approximately huge text files which contain raw data. Approximately 300 files each 6-7 MB; total 2.26GB text file data (each text file has like 30,000+ lines). The problem is using this code my data reads very slowly (30 days approximately to read all text files into excel worksheet), and I need to speed up the process. I was thinking if I convert to VB.NET 2005 it will execute faster. Option Explicit Dim rmr_files() As String 'Array containing directories and rmr data file names Dim rmr_folder_name As String 'Name of first fold…
Last reply by snarfblam, -
-
Multithread
by AFC08-
- Administrators
- 4 replies
- 1.1k views
The application is basically this: I have three buttons in my form, lets say Btn1, Btn2 and Btn3. Everytime i click btn1 i start ThreadA. ThreadA reads certain msg from my DB and displays them in the form textbox. If i click on Btn2, ThreadA is stopped and THreadB starts, which shows different messages. This way, if i click on Btn1 again I start the process where i got interrupted. When I pres Btn2 and ThreadB has started i have two options: If i click on Btn3 then in relation to the msg i have currently displayed I will display another one, however if i keep it pressed for more than 2 seconds i will be going thru a loop of messages and then go back to the point where…
Last reply by PlausiblyDamp, -
-
- 0 replies
- 870 views
Hi I have three panels in multiview MultiView1.SetActiveView(View1) is the default panel. If I navigate to a page from panel 2 or 3, how do I navigate back to 2 or 3 via a back button My Back Button Code Private Sub fBTNGoBack_Click(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles fBTNGoBack.Click lTransferURL = lNUTHState.NUTHHome & "/Patient/DemographicDetails.aspx" lTransferURL = lTransferURL & "?ActionOnEntry=" lTransferURL = lTransferURL & NUTHConst.ScreenAction.Load lTransferURL = lTransferURL & "&ModeOnEntry=" If lNUTHState.tblUserLevelId = NUTHConst.UserLevel.READ Then lTransfer…
Last reply by Bill Humphrey, -
-
- *Gurus*
- 4 replies
- 1.9k views
Hi all, How can I autoscroll multiline textbox when I have 2many lines? I tried ScrollToCaret but since there is no focus on control and text is added trough code it won�t work. Another thing, I have some demanding code on Button click handler and when I tab the form down and back up controls don't show (I know I have to redraw whole form to render stuff on it again but how?) Should I rather use threading instead? Thanks Igor
Last reply by Anon, -
-
-
- Administrators
- 5 replies
- 858 views
Hi there, I need to store all the values of the first row of a datagridview in to an array. I have tried a lot but havent managed to do this. Can someone help me on the way. Thanks,
Last reply by feurich, -
-
- 0 replies
- 976 views
Hi I have a dynamic datagrid CTL embedded in a multi page view aspx page. When i run the web app and click on a button in the dg the item command event wont fire up. Here is my CTL HTML Code <%@ Control Language="vb" EnableViewState="true" AutoEventWireup="True" Inherits="MyositisPresentation.ImagingListCTL" CodeFile="ImagingListCTL.ascx.vb" %> <%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %> <LINK href="../NUTH_main.css" type="text/css" rel="stylesheet"> <TABLE height="100%" cellSpacing="5" cellPadding="0" width="100%" border="0"> <tr vAlign="bottom"> <t…
Last reply by Bill Humphrey, -
-
- Leaders
- 1 reply
- 1.3k views
I'd like to do additive blending of one image over another using the provided .NET graphics features. I have google'd it, but that turned it up with about 0 useful results. In fact, it seems like no-one even asked about doing additive blending with .NET at all! So, is it so simple and obvious that no-one ever had to ask and I just totally missed it? Or is it impossible with .NET? Does anyone have any suggestions?
Last reply by snarfblam, -
-
-
- Administrators
- 3 replies
- 701 views
I've searched around the web to see what I can do about either packing the .net framework with my application or at least having the app search to see if the framework is installed and then installing it if it isn't. I've found some software that will allow you to package it, but I don't want to pay 1,500 + USD for that. I'd much rather just have the App install the framework automatically, if applicable. Due to the way this app will be used, it's not ideal to have the user manually install it. Thanks for any help :D
Last reply by PlausiblyDamp, -
-
- 0 replies
- 1.2k views
Hi guys! Need some guidance here. i want to select a specific text in ms word document and format it using vb.net. here's what I have With WordApp.Selection.Find .Text="word to find" .Font.Color = Word.WdColor.wdColorBlue --> supposed I want to color it blue End With what seems to be lacking here? It will not work. Thanks and Best Regards!
Last reply by pasensyoso, -
- 0 replies
- 1.2k views
Hey guys, i'm a total newb to d3d, but I'm hoping what I am asking is fairly simple. I have a c# application, I have referenced the required DirectX dll's. I now have a video game running, in D3D. I want the c# application to take a screen shot of what I see in-game. This is what I have so far, and I'm kind of lost. Can anyone help me? IntPtr hWnd = new IntPtr(); foreach (AdapterInformation adapter in Manager.Adapters) { // Check whether or not this is the default adapter if (adapter.Equals(Manager.Adapters.Default)) { hWnd = Manager.GetAdapterM…
Last reply by v8maro, -
- 2 replies
- 714 views
i am developing web application asp.net with c#... if i click a particular link one excel file will opent (it contains reports)... how can i open this excel file and i have to modify that excel file...
Last reply by DPrometheus, -
-
- Administrators
- 5 replies
- 2.2k views
I'm trying to watch the directory where my application .exe runs from. Watching for directory changes, filename changes, etc etc I'm using the FileSystemWatcher class and set the Path property to the right directory just fine. When I ran my original application, i used just a regular method for handling the Changed event and tried updating my textBox1.Text property to show the Name property however I was receiving the cross thread exception that shows that your not supposed to do it that way unless you want possible instability.... So I read the MSDN article about how to make thread-safe calls to update GUI controls. There are two known methods for doing so as shown…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- Leaders
- 6 replies
- 985 views
hi all i was wondering if anyone could update this bit of code so i can use it in future vb.net projects.thank you so much in advance #include <stdio.h> #include <stdlib.h> #include <string.h> void usage(char *str) { printf("Usage (descramble): %s -d [input module] [output scramble]\nUsage (scramble): %s -s [input scramble] [output/input module]\n", str, str); } void rescramble(FILE *fp, FILE *out, char *str) { int i; int code = 0, mtc1 = 0, ori = 0, lui = 0, patch = 0, addr_patched = 0; printf("Scrambling %s... ", str); fseek(out, 0, SEEK_END); int size = ftell(out); size = (size - (size % 4)) / 4; for (i = size - 1; i > -1; i--) { fseek(…
Last reply by highboy, -
-
-
- Leaders
- 2 replies
- 6.2k views
Hello everyone :) Well I'm busy with a homework assignment on copying 4 arrays each to a seperate arraylist. The first array is of type int, the second string, then char, then decimal. I tried using the CopyTo() method but then I get errors about the size of the arraylist or something, because I use the ToArray() method on the destination arraylist. So I decided to do it as follows: ArrayList myArrayList = new (iArray); And so I repeat that for all 4 the arrays. --- But how would I have proceeded if i wanted to use the CopyTo() method? Must I declare a fixed size for the arraylist when using the ToArray() method? It won't really be very elegant p…
Last reply by snarfblam, -
-
-
- Administrators
- 10 replies
- 1.5k views
Hello, I have written an address book and for its database, I used Access to create a .mdb database and store my data programmatically into this .mdb file. However, the problem is that when reading and saving data to this kind of database I have to use Jet 4.0 which is NOT available on 64-bit systems and I have to compile my application as 32-bit in order to run on all systems. I just want to know how is upgrade to SQL? I never used SQL, can I create a stand-alone database file using SQL like Access and create tables/fields so I can modify it programmatically? I also need the database file to be independent and don't need any special requirements to run on target sys…
Last reply by PlausiblyDamp, -
-
Who's Online 0 Members, 0 Anonymous, 56 Guests (See full list)
- There are no registered users currently online