Topics
-
-
- Leaders
- 2 replies
- 1.1k views
please help!!! i want to learn how can i find the important redistibutables(Prerequisite,Merge Modules,dll,...) for my application to create the setup program? i use vb 2005 or vc# 2005
Last reply by snarfblam, -
-
- 1 reply
- 887 views
See code below string str = "APR 12.34% APR"; string aDecimal; aDecimal = Decimal.Parse(str, System.Globalization.NumberStyles.Any).ToString(); Response.Write(aDecimal); Here I am trying to retrieve the numeric part from the string str ? and is not working. Is there any other idea to achieve the expected result Thank u in advance
Last reply by MrPaul, -
- 1 reply
- 7.1k views
I have an asp.net Atlas enabled 2.0 website that has a gridview control in it to bind results from a query I make. The problem is that I'm tyring to bind it to a DataSet that has multiple DataTables with results in it. Only the first DataTable is bound so that: myGridView.DataSource = myDataSet; myGridView.DataBind(); is the functional equivalent of myGridView.DataSource = myDataSet.Tables[0]; myGridView.DataBind(); Is there a way to bind all the tables? Or should I be looking at a better control for this. I can dynamically add a new gridView for each Table but I want something a little more visually pleasing. Each of the Tables has different columns…
Last reply by Nate Bross, -
- 1 reply
- 968 views
I have to process lots of Solid Edge files to read the material. The material is written in a custom property. I don�t want to open every file in Solid Edge because it costs lots of time. I want to read the custom property from the file using Vb.Net. However I have not got a clue how to do this. :confused: Does anyone have an idea??:eek: Thanks.
Last reply by Nate Bross, -
-
- Leaders
- 1 reply
- 977 views
IEnumIDList folderEnum = (IEnumIDList)Marshal.GetTypedObjectForIUnknown(folderEnumPtr, typeof(IEnumIDList)); while (folderEnum.Next(1, out pidlSubItem, out celtFetched) == ShellAPI.S_OK && celtFetched == 1) { } The cycle "while" execute several time ok but suddenly raises exception "First-chance exception at 0x7c81eb33 in Server.exe: 0x80004002 Not supported" Info about Studio: Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600) Microsoft .NET Framework Version 2.0.50727 Installed Edition: Professional Whats wrong to my code?
Last reply by snarfblam, -
-
-
- Administrators
- 9 replies
- 813 views
I have created an application which runs multi-thread procedures. Thread can be run in the IDE (design mode). When I packaged up the application and installed on the client machine (with Framework 2.0 installed), the thread does not start. here is the code : '------------------------------------------------- Private Delegate Sub Task(ByVal state As Object) private sub start() dim tmpStr as string = "Test Message" Dim worker As New Task(AddressOf RptThread) worker.BeginInvoke(tmpstr, Nothing, Nothing) end sub Private Sub RptThread(ByVal state As Object) dim txt as string = state.tostring() MsgBox(txt) e…
Last reply by galaxy2004, -
-
- 1 reply
- 1.6k views
Hi all, Here's the deal. I have a word document that I want to replace some tags in. I have 2 types of tags. <%var%> <$par$>. The first (%) is used to insert variables. The second ($) is used in pairs to either include or omit sections of the document. The second I'm coding into a function that takes a bool, if true the section should be kept but the tags should be removed. if false the section should be removed between the 2 pairs of tags, including the tags. I've managed to code the first, and the include piece of the second. I however am having an issue selecting the range from one <$tag$> to the next <$tag$>. Any help would be appreciate…
Last reply by PunkStar, -
- 0 replies
- 1.1k views
Ok, I have searched the web forever for this and found suggestions, but none of them seem to work for my stituation. So, here I am. I am using AJAX.NET 1.0. I have a page with two UpdatePanels. The first contains a DropDownList and three Panels which contain various controls. When the user selects an item from the DropDownList, the appropriate Panel is displayed, while the others are hidden. This works great. The second UpdatePanel control contains a GridView. Right-clicking and dragging on the GridView paints the cells different colors (using a JavaScript routine) depending on the selection in the DropDownList. This works great when the page first loads, but stops workin…
Last reply by tfowler, -
-
- *Experts*
- Leaders
- 3 replies
- 2.4k views
Dear Admins, Over the past few months most of my development time seems to have been taken up with PocketPC apps. Is there enough volume to warrant a new 'PocketPC/SmartPhone Forum'? Also, the Shrug smilie seems to be missing. Many thanks, Paul.
Last reply by mandelbrot, -
-
-
- Administrators
- 2 replies
- 5.5k views
Can't get keys from App.config file in Class Library project - am I missing something Hi there, I'm having a bit of trouble in a C# Class Library that I'm writing - when I try to get keys from the App.config file I'm getting nothing back. I copied the code from another project of mine (a Windows Service), which works fine there. Don't understand why nothing is being returned. What I did was: Added an Application Configuration File to my Class Library project, named the default App.config It looks like this: <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key ="CopyrightFolder" value ="Copyright\\" /&g…
Last reply by joker77, -
-
-
- Administrators
- 7 replies
- 1.8k views
This is a pretty basic question so you'll see how far down I am on the learning curve. I'm building a sql string and the whole thing is getting rather unwieldy. So I'm wondering if there is a way to insert sql code not as a string but as a separate sub routine or code section. I can then build the string within the sql sub routine. If this is possible how does one define it as sql code and not vb. Thanks, Ted
Last reply by TedN, -
-
-
- Leaders
- 1 reply
- 934 views
In Visual Basic.NET 2003 how can I center controls inside a panel so no mater what size the form is the controls are always centered inside the panel.
Last reply by snarfblam, -
-
- 7 replies
- 1.2k views
I've created a data grid with the form designer and set the various column widths and headings. However, when I display the data in the data grid the column widths change back to the default and the headings are the database column headings. The code I'm using to display the data grid is: Me.dg1.DataGrid.DataSource = ds.Tables("Asset1") where dg1 is the data grid and ds the dataset. The only way I can find to get the right headings is to define them in the sql string. How can I keep my original data grid settings which I did in the form designer. Thanks, Ted
Last reply by TedN, -
- 0 replies
- 736 views
I am programming a test application that uses the parallel port. I am using a 3rd party OCX and need the resource setting numbers for LPT1. This is the number you see in the Device Manager Resources for LPT1. I have never done this and have been searching here and google without luck, maybe searching with the wrong wording. How would I do this or at leats point me in the correct direction. Thanks.
Last reply by techmanbd, -
-
- Administrators
- Leaders
- 12 replies
- 1.7k views
Is it possible to reduce an object down to its base class? To illustrate what I mean, the idea in the following code would be that the programme stops beeping after the button is pressed because the class2 object is reduced to a class1 object, which doesn't beep. But it doesn't work. Any ideas? Public Class Form1 Dim j1 As class1 Dim j2 As class2 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim j2 As New class2(Me) End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Get rid of the class2 object, I just need the cla…
Last reply by MrPaul, -
-
- 0 replies
- 1.1k views
Problem Solved, had already called the .Dispose method. Hi all I have a crystal report which I am displaying in my web page as a .pdf file. I am getting the error message: "Object reference not set to an instance of an object" when the Page_Unload method is fired. Not sure what could be going wrong, as I am using the same code in two other pages, and they work correctly. Is it that I should be using a garbage collector? Here is the code that I am using: 'Global Variable Dim oRpt As ReportDocument Protected Sub Page_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Unload oRpt.Dispose() End Sub Private Sub GenerateReport() …
Last reply by mike55, -
- 2 replies
- 867 views
OK, this might be a dumb one but I am a little confused I am newer to the asp side of things so sorry if it is a stupid one. I am using VB.Net to make my aspx pages. I am using java script to show message boxes. I want to make a yes/no message box and make something happen on the code side of things. I used to use something like dim result result=msgbox("Do You want this feature", vbyesno) if result=vbyes then blah blah blah but how do I comunicate the java script alert result to trigger some code in my .vb file? Or can I use some sort of message box? Thanks.
Last reply by mike55, -
- 1 reply
- 766 views
which skin designer applications (for .net 2005) support Right To Left Layout and office 2007 view? :rolleyes:
Last reply by hamid, -
- 1 reply
- 895 views
I have a SQL Server 2000 database that in accessed all of the time by web pages running on our web server. I need to create a mobile app that can connect to the same database. Is there a safe way to expose the database to the mobile application?
Last reply by kcwallace, -
- 2 replies
- 1.7k views
I have been looking through this forum for something dealing with an odd error I am getting. I am getting an Unable to write to stream error when I do a simple INSERT statement into a MySQL database using the .NET connector and ExecuteNonQuery(). The really interesting thing is that I do the exact same thing on a different computer, and it works. This problem has come up only on one computer and it only happens every so often. I can't lock it down. Has this happened to anyone else?
Last reply by grip003,
-
Who's Online 0 Members, 0 Anonymous, 52 Guests (See full list)
- There are no registered users currently online