Topics
-
- 0 replies
- 2.4k views
Responsibilities: Bersian has an opening for a full-time Analyst Programmer experienced with ASP.NET and VB.NET. This position offers an exciting opportunity to use leading edge Internet technologies to develop interactive Information Management solutions. We are looking for promising candidates who thinks outside-the-box and has a passion on .NET technology. You should feel comfortable programming in .Net environment and general web technologies. You will be part of a project team with responsibility to design, develop, test, implement & maintain detailed Software Modules, Systems, and Database Applications for our customer. The role offers a fantastic opp…
Last reply by georgepatotk, -
- 0 replies
- 2.3k views
Hi, I make an asp.net project dealing with Microsoft.Office.Interop.Word. It is working fine while running on VStudio 2005 Development Server. But when I switch it to Win Server 2003, I get the following error : Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Runtime.InteropServices.COMException: Command failed Source Error: Line 24: objWordApp.Visible = True 'IIf(chkShowWord.Checked, True, False) Line 25: 'Open an existing document. Line 26: objWordApp…
Last reply by mschua44, -
-
- Leaders
- 6 replies
- 3.2k views
Howdy there, This is my first post here, but I've been on this site quite often recently, since I've been working with VB.NET. I normally code in C++. I'm making a map maker for my 2D tile-based RPG in Allegro. I've a 2D array of images, and I display them on a panel. When I call the sub that draws them again, to update (it loads the data from a file), nothing appears to happen. I am wondering if I need to clear the panel first, then draw, or if it's related to my using a StreamReader twice or more. Here's a bit of my code: Public Sub draw_map() ' Load the image preferences Dim imgprf_file As New FileStream(imgprf_filename, FileMode.Open, F…
Last reply by Odry, -
-
-
- Leaders
- 1 reply
- 2.5k views
Howdy there! I've a picturebox that holds a rather large image. I was wondering if it was possible, with the right code, to save a portion of the image to a .bmp file. For example, (This is for my map editor) they load a large bitmap of their map, and want it cut into tiles of 32x32. Is this possible in VB.NET, and if so, may I have a point in the right direction? Note: I'm rather new to VB.NET. Thanks for any help, LJ
Last reply by snarfblam, -
-
-
- Administrators
- 1 reply
- 8.1k views
Pls. help me with this error... 'Read the contents in to a byte array Dim objMyData() As Byte objMyData = CType(objMyRow("Document"), Byte()) <<<<<<<ERROR Dim objMyFile As New FileStream("C:\temp\document.doc", FileMode.OpenOrCreate, FileAccess.Write) objMyFile.Write(objMyData, 0, objMyData.Length) Unable to cast object of type 'System.String' to type 'System.Byte[]' in vb.net WHERE Document is a column in table in sql2005 that has a varchar(max) dataype. I've tried converting it to 'Dim encoding As New System.Text.ASCIIEncoding() 'objMyData = encoding.GetBytes(objMyRow("Document")) but the resulting …
Last reply by PlausiblyDamp, -
-
- 2 replies
- 4.4k views
hi friends ...i have a small doubt in asp.net..if u have idea pls give me a idea..i have a datagird in my webpage...in that grid the first column is hyperlink column..when i click a link in that column i have to redirected to that perticular page according to the link name.....pls give me a idea how to do that..... the exact req is i have a grid with 2 columns schoolname year --------------------- lpark school 2002 bloominton 2003 chg public sch 2003 assume that the school names are links to pages lpark.aspx ..... when i click that lparh school in that grid i have to redirect to lpark.aspx...same as to all the rows in that…
Last reply by facklera, -
-
- Leaders
- 2 replies
- 6.5k views
Hi all, I want to enhance this regular expression - ^[0-9a-zA-Z]{6,20}$ to not allow any spaces (leading, in between, and trailing). I know the regexp for space is (\s*), but just don't know how to put them together. Can any one help? Regards, Kyle
Last reply by microkarl, -
-
-
- Administrators
- 1 reply
- 944 views
Hello all, I am new to VB.NET but been trying to write a code for PrintDialog as seen below Private Sub PrintToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PrintToolStripMenuItem.DoubleClick PrintDialog1.Document = PreparePrintDocument() 'PrintDialog1.ShowDialog() If PrintDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then PrintDialog1.Document.Print() End If End Sub But been getting PreparedPrintDocument not declared.What could be wrong please?
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 1 reply
- 5.2k views
Which should I be using? Direct2D, GDI+ or DirectDraw? I want to make a 2D platformer game and this is bothering me, I know little about the 3, for all I know, they are the same thing! Please help me understand. :confused:
Last reply by snarfblam, -
-
-
- Leaders
- 2 replies
- 5.5k views
I'm working with a basic console application. I'm trying to use the Console.SetWindowPosition method to put the console window at the top left of the screen, but for some reason its not working (and no error either). (I also set the console to the largest size possible, as you can see in my code) Here's my code: using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { Console.ForegroundColor = ConsoleColor.Red; Console.SetWindowSize(Console.LargestWindowWidth, Console.LargestWindowHeight); Console.SetWindowPosition(Console.WindowLeft, Console.WindowTop);...etc etc... …
Last reply by fireman, -
-
-
- Leaders
- Administrators
- 2 replies
- 2k views
Hi, I am making a game (a shooting game) i want the mouse to be a crosshair. I have tried making the picturebox follow the mouse like this: Private Sub Form1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseMove PictureBox1.Location = MousePosition End Sub but the crosshair does not follow the mouse exactly (the crosshair is about 4cm away from cursor???) :confused: :confused: :confused: Anyone got any Ideas?
Last reply by snarfblam, -
-
-
- Administrators
- 1 reply
- 1.1k views
XML: Code: [serializable] public class ActionClass { [XmlElement(Form=XmlSchemaForm.Unqualified)] public string ActionType { get; set; } [XmlElement(Form = XmlSchemaForm.Unqualified)] public DateTime ActionDate { get; set; } } public class ActionModel : List<ActionClass> { public ActionModel() { XmlSerializer xs = new XmlSerializer(typeof(ActionModel), ""); using (Stream ms = new FileStream("Demo.xml", FileMode.Open, FileAccess.Read)) { object inp = xs.Deserialize(ms); this.AddRange((ActionModel)inp); } } } …
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 2 replies
- 2.3k views
I was at some Visual studio training at an academic conference a while back. The professor presenting the training got the third degree from others for not using Java. Is there a language war like Mac versus PC? I tell my students to be ready to adapt to your organization and not get locked in to one language. Am I wrong?
Last reply by Iceplug, -
-
-
- Administrators
- 2 replies
- 1.4k views
Is it possible to program events and subs like the Click Event for a button that was declared without physically being on the form? Example: Dim NewButton as New Button How would I go about firing the click event and using it inside a button that is not physically in the form during design time, but instead a new instance of it being created during runtime? Any help is appreciated, Thanks :D
Last reply by Fabian_Russ, -
-
-
- Leaders
- 4 replies
- 1.9k views
Hi, I'm working on a project in which I'm displaying many images in excel. For this reason, I'm not using shapes to store the pictures. I am currently drawing the pictures to the screen device context as the user scrolls up or down. Now I have to draw the images to the print preview and get them to print out correctly. I can draw the images to the dc of the print preview window "ExcelB", but I'm sure there is probably a better way to do this. Also, I'm drawing them in png format. thanks
Last reply by crf, -
-
-
- Administrators
- 5 replies
- 1.1k views
Or am I doing something that can't be done. I have a module with some structures and functions. In my main application i create the class by using Dim a as new b I have access to the structure but the functions do not show up. I can get by but it would be nice if these showed up. Where should I start?
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 2 replies
- 1.2k views
I have a program that uses a picture for the bar at the top of the window. (FormBorderStyle = None) I want to know how to make it so you can move the window around?:confused:
Last reply by BrettW, -
-
- 1 reply
- 2.1k views
I hope this is posted under the right category. I am using VBE 2010 and I am trying to figure out a way to find the closest match from a given image to a collection of stored images or by comparing an array of the image with stored sets of arrays. The images that I am comparing are all black and white and look like a histogram. Each row in the image starting from the left most pixel is white to a variable length and the remainder of the pixels in each row are black. I have also made this into an array where it counts the number of white pixels in each row. The image or array that is being compared to the set does not match exactly to any of them, but it should be ve…
Last reply by JumpyNET, -
-
- Administrators
- 1 reply
- 776 views
Hello everyone. I have an application that zips up some files and then attempts to send that in an e-mail as an attachment. I have noticed that if the zip file is small it works fine, but the zip is generally between 1 and 2 MB's, and at that size (Which is still rather small) it fails. I get an error that it failed due to the target of an invocation. I'm assuming that perhaps the zip file is not being released prior to the e-mail being generated when it's larger? I have both the zip creation and e-mail generation in their own backGroundWorkers. My question is what the suggested course of action would be for doing something like this. I've never had an is…
Last reply by PlausiblyDamp, -
-
- 0 replies
- 1.8k views
I have an app that is currently getting data from a remote server, via the internet, and putting that data into a DataGridView. The data (a full client list) is being pulled down when the app is started and displayed. This solution has worked but now the customer is getting too many clients to bring down at one shot. The number of clients is starting to cause a significant delay at startup and I'm looking for a new method of getting the data. The customer wants to keep the DataGridView functionality. I'd like to be able to put a textbox on the form so that on each keystroke I could call a stored proc that would return the first 20 clients that matched the current …
Last reply by flynn,
-
Who's Online 0 Members, 0 Anonymous, 12 Guests (See full list)
- There are no registered users currently online