Topics
-
- 2 replies
- 6.6k views
Hi, I have two windows forms written in C#. The parent form can call the child form to open. In the child form, I have logic to add/remove certain nodes in a XML document. After that, I can close the child form. But I also have listbox control in the parent form to display the items from the exact XML document, since I have updated it, I would like to 'reload' the control so it will display the most updated list. But how do I do it? I suppose I can fire an event on the childform.Close() event, and use this.ParentForm to do it? But I could not see any functions in the parent form. please help.
Last reply by microkarl, -
-
- Administrators
- 11 replies
- 1.8k views
Ok, so I want to write something into the xml file and then read it. I'm a total n00b and so I'm sure it's something basic. But i've checked and messed around with it for, I guess 3 days now ='( any help would be greatly appreciated. public static string LoadXML(String TheParent, String TheChild) { System.Xml.XmlDocument doc = new System.Xml.XmlDocument(); doc.Load(@"SP.xml"); System.Xml.XmlNode node = doc.DocumentElement; string data = ""; { if (node.LocalName == "XMLDoc") { node.SelectSingleNode(TheParent); System.Collections.IEnumerator rootIter = node.GetEnumerator(); while (rootIter.MoveNext()) { System.Xml.XmlNode currentNode = (System.Xml.XmlNode)rootIter.C…
Last reply by JBudOne, -
-
- 1 reply
- 1.5k views
We're developing an ASP.Net/VB.Net application and one of the requirements is to have a tabstrip: The tabstrip is 3 rows..instead of one row. Now, I went to MS site and seems like it's Tabstrip control is not supported anymore: http://msdn.microsoft.com/library/default.asp?url=/workshop/webcontrols/overview/tabstrip.asp My manager doesnt want to buy a custom tab control and he doesnt want to use menubar stuff either because he wants to keep the Web application as close to the "custom windows app" we have as possible.. Any thoughts/examples how I can create a Tabstrip in ASP 2.0? Do I need to create Tabstrip in a graphic designer tool or something??
Last reply by eramgarden, -
-
- Administrators
- 4 replies
- 1.1k views
I currently have code written in vba to request a xml document from a url. This works fine, I am however looking to rewrite this code in vb.net. I know that I could accomplish this task by adding the COM reference Microsoft XML, v#.0, but I figure there has to be a way to do this in .nets native libraries. I can create and read xmls this is not my question. My question deals specifically with the sending a request and recieve the xml file from a URL. I have seen familiar posts with peopel being confused with the question. In short I am wondering if there is a native way in .net to request a xml file from a url. My current code looks like this: (from vba) …
Last reply by JJKazJr, -
-
- 2 replies
- 1.4k views
how can i detect all keyboard presses and their application in windows? i want create an app that record all keyboard and which app used for it. who can help and how can i do it? thanks
Last reply by hamid, -
-
- Administrators
- 3 replies
- 1.1k views
Hi all I am trying to obtain the user IP address, to determine what country that they are comming from. The purpose of this information is to redirect the user to a particular page that is configured for the individual country. Any suggestions on how to achieve this? So far I have managed to obtain the IP address of the server, but not the other way around. Mike55.
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 3 replies
- 968 views
I usually work with many threads. But more often than not I do not want those threads to hit the same routine at the same time. Currently here's what I do. If any of you have a more effective/efficient way let me know. For all i know VB has some sort of property a subroutine can have that only allows it to be accessed by one thread at a time. Public RoutineIsRunning As Boolean = False Public Sub RoutineOfInterest() If RoutineIsRunning = False Then RoutineIsRunning = True ' ' The Code for this routine ' RoutineIsRunning = False End If End Sub
Last reply by PlausiblyDamp, -
-
- 1 reply
- 3.4k views
Has anyone had any luck debugging HLSL effects in C#? I have tried everything I can think of including: 1) set DeviceType.Reference for the device 2) set the ShaderFlags.Debug for the effect 3) Set the DirectX to use the debug version and enabled debuggin shaders 4) tried running the Debug/Direct3D/Start with Direct3D Debugging Nothing seems to be working. In all cases when I set a break point in the .fx file, when the program runs the break point show a little warning symol and says something like "This break point will not currently be hit. No symbols have been loaded for this file." Does anyone know how to do this and what I've done wrong? Thanks
Last reply by jgrenier, -
- 2 replies
- 1.8k views
I'm looking for a good VB.Net development program. Currently i have Visual Studio 2002 which uses .Net Framwork 1.0 :( I do not believe you can upgrade VS 2002 to a higher framework. So i'm looking for other programs. I'd like to stick with free stuff if the difference in functionality between free and not free is not too much. Currently I've downloaded both Visual Basic 2005 Express Edition and SharpDevelop 2.0. Both of them are free, and both of these seem to run all of my old programs just fine, which totally rocks. I'm wondering what i'm losing out on between a non-free VS.Net program and the free Express edition of vb.net. Anyone know? Currently i'm not usin…
Last reply by NeuralJack, -
- 3 replies
- 938 views
Is there a simple method to search for a specific control (by its name) in a form without loops? I need to access a Target control on the form to manipulate its properties, and since its name is a variable I need to find it and grab it. The result should be something like this: Control cCtrl = this.GetControl("controlaName");
Last reply by EFileTahi-A, -
-
- Administrators
- 16 replies
- 1.3k views
I'm wondering if there is a specific forum sub-topic that I should post various questions I might have on simple efficiency. We all know that there are tons of ways to program a certain function.. i'd like to talk, now and then, about how efficient various methods of getting the job done are. Also, whether or not that method is best for vb.net or is it old-school VB programming that should be updated. One wouldnt really use the sub-topics, I wouldnt think, because it's not a question of implementation but more of a question of efficiency or using the best functions to get the job done. Often, the simplicity of the solution is something to consider too. If it takes 1 line…
Last reply by NeuralJack, -
-
- 2 replies
- 2.3k views
error MSB3021: Unable to copy file "obj\Debug\Common.DataAccess.dll" to "bin\Debug\Common.DataAccess.dll". The process cannot access the file 'bin\Debug\Common.DataAccess.dll' because it is being used by another process. Done building project "Common.DataAccess.vbproj" -- FAILED. I call a Macro that loads the "bin\Debug\Common.DataAccess.dll" file into an Assembly instance, then I use getTypes() to run through all the types and I copy some names off into a collection for use in the Macro. At this point, I set the assembly instance = to nothing. There isn't any Dispose or ReleaseAssembly. But when I attempt to rebuild the "Common.DataAccess.dll", I get the error …
Last reply by Denaes, -
- 2 replies
- 876 views
image in a button is not displayed in a particular form.This form is the instance of the form class inherited from Form and IView.
Last reply by shailee, -
- 1 reply
- 930 views
Hi all I am after creating a report in crystal 11 (trial version), I have unticked the option that saves the data with the report. I am trying to load the report using the code that I have used with crystal reports generated in visual studio.net. My problem is that the report is loading blank, what am I doing wrong? Here is the code that I am using: Private Sub GenerateReport() Dim crystalServer As String = ConfigurationManager.ConnectionStrings("SERVER").ToString Dim count As Int16 = 0 start: oRpt = New ReportDocument Dim util As New Utility Dim rptPath As String = Nothing Dim requestedHostAddress As String …
Last reply by mike55, -
-
- Administrators
- 4 replies
- 903 views
In my application I have timed events to play audio based on day of the week, start time and an end time. and the code below is how I have it running. I am looking for suggestions and examples of a better more effecient way, in short another set of eyes to look at it. I know it is ugly, it is from on of my first programs that I am updating/adding on to. Public Sub TodaysList(ByVal intAdvance As Integer, ByVal strDBFile As String) Dim Itm As ListViewItem Dim strConnect, strSql As String Dim St, Et, D, DS, AL, Dis As String Dim I As Integer Dim objDA1 As New OdbcDataAdapter Dim objDS1 As New System.Data.DataSet Dim d…
Last reply by PlausiblyDamp, -
-
- 1 reply
- 922 views
Now maybe i'm being stupid, but this is driving me really nuts... Insert the following code onto a normal form and let me know if you see anything strange when you load an image. For the smart-arses amonst you, feel free to tell me whats wrong by just looking at the code :). Basically the images are drawing all wrong. I'm wondering if it might be a problem with using GraphicsUnit.Pixel. public Bitmap SourceImage; protected override void OnPaint(PaintEventArgs e) { e.Graphics.Clear(Color.Black); if(SourceImage != null) { for(int i = 0; i < 4; i++) { Rectangle bounds = new Rectangle(i * 60, 0, 60, 240); e.Graphics.DrawImage(SourceImage, bounds.X, bounds.Y, bou…
Last reply by Cags, -
-
- Administrators
- 4 replies
- 999 views
I have a web site that I need to pull formatted text (paragraphs) out of a database and populate a web page. Does anyone have any suggestions for the best method? Every method I seem to choose drops the formatting. Do I need to manually create the line breaks?
Last reply by kcwallace, -
-
-
- Leaders
- 3 replies
- 2.4k views
Getting to the basics, a function takes in a string (the name of the class). For example "CustomerDataset". Given this string, I want to find all the tables in the Class. something like: Dim DS as Class = Reflection.ConvertStringToClass("CustomerDataset") or Dim DS as getType("CustomerDataset") I'm not picky about how I'm doing this, just so long as I end up with access to the tables collection of the dataset, being given a name. It might help to say I'm using this in a Macro, so I'm not sure if DTS will help at all with this. Thanks if you have any info
Last reply by Denaes, -
-
- 2 replies
- 690 views
I'm looking to write a macro that I can fully customize with knowledge of a class. For example, I'll be using a typed dataset Person which has say 3 tables on it. I want to be able to run the macro in the Person Partial Class and have it create an instance of a table adapter, my custom Fill, Refresh & Persist methods as well as transaction logic if there are 2+ tables. So basically I could work everything out given that I know how many tables there are and what their names are. An advanced version might take the relationships into account. This is the best article I've found for macros: http://msdn.microsoft.com/msdnmag/issues/05/07/XMLComments/ so far.…
Last reply by Denaes, -
- 0 replies
- 756 views
Hi Group, In my application I am using a datagrid, now I m implementing sorting for that datagrid, I am changing the flag for ascending and descending when SortCommand event of datagrid is fired. Now the problem I am facing is that the Sort Command event is being fired twice even if I click the header in datagrid only once thus my flag is getting reset to the original value. (I know that the event is first raised during the restoration of the page's view state. The second notification arrives when the page is being built.) (I am using .Net 1.1) Please help me out in this!! Thanks, Anup Daware Anup.daware@gmail.
Last reply by anup_daware,
-
Who's Online 0 Members, 0 Anonymous, 32 Guests (See full list)
- There are no registered users currently online