Topics
-
- 0 replies
- 2.2k views
I'm trying to read text out of google talks chat window, but I can't seem to figure out how. This is my current code: [DllImport("user32.dll",EntryPoint="FindWindow")] public static extern int FindWindow(string _ClassName, string _WindowName); [DllImport("user32.dll",EntryPoint="FindWindowEx")] public static extern int FindWindowEx(int hWnd1, int hWnd2, string lpsz1, int lpsz2); [DllImport("user32.dll",EntryPoint="SendMessage")] public static extern int SendMessage(int _WindowHandler, int _WM_USER, int _data, int _id); [DllImport("user32.dll",EntryPoint="SendMessage")] public static extern int SendMessage(int _WindowHandler, int _WM_USER, int _data, string _id…
Last reply by decrypt, -
- 2 replies
- 1.3k views
I have to do extensive MS Excel programming from windows .net, like creating Excel (.xls), creating multiple work sheets in the excel, formating, coloring, etc. can anyone let me know which component i should use. any feedback is appreciated. In VB6.0 this was a peice of cake.
Last reply by Mike_R, -
-
- Administrators
- 3 replies
- 1.6k views
I setup an array like: dim test(,) as string test = functionname("test") msgbox(test.length) and hten I get error: An unhandled exception of type 'System.NullReferenceException' occurred in Trigger v2.exe Additional information: Object reference not set to an instance of an object. Why? I know there are 10 or 20 some records that should be returned by functioname("test"). I have tried test.length(1).. and a lot of other test.* ones.. But seem to get the same errror above.. Why? thanks!
Last reply by PlausiblyDamp, -
-
-
- Administrators
- Leaders
- 8 replies
- 1.5k views
Greetings: The below code complies w/o error, however, upon running it the above error msg is generated (by second line in below code). Thing is, I'm not sure why as I'm defining the variable as a type that is in the collection. :confused: (The routine is for making all child panels on a main panel invisible upon initial load.) Any and all guidance will be appreciated. Private Sub HideAllPanels(ByVal ThePanel As Panel) For Each ControlObj As Panel In ThePanel.Controls If ControlObj.GetType.ToString() = "Panel" Then ControlObj.Visible = False If ControlObj.Controls.Count > 0 Then…
Last reply by snarfblam, -
-
-
- Leaders
- 3 replies
- 867 views
I am looping thought all of the files in a directory. Easy enough, now I am putting the file name of each file in a textbox for my user to check as the loop goes through each file. After the user verifies the file, they press a button to continue to the file in the loop. My question is, how can I get my loop to stop at each file after putting the file info in the textbox and then waiting for my user to click OK. I guess I want the loop to pause when it gets to the user verification point and then resume when the user presses the button. Any ideas? Thanks, Chester
Last reply by cpopham, -
-
- 3 replies
- 1.7k views
I had a datagridview which contains all the last name of a certain database.the data was displaying properly .I want to accomplished two tasks,first I want it that upon loading on the datagrid, data are sorted alphabetically already even without pressing the column header.Second I want to search the datagrid using a text box. I want like an autocomplete manner, if I type a single letter, say "B", the datagridcolumn will automatically point to the the name say "Bal" and so on...thanks....
Last reply by hairixe, -
- 2 replies
- 2k views
:eek: i have a usb card reader and its attached with a simple vb program to read data from the card by clicking a button. what i want to do is, i want to read the card automaticaly when i insert the card(no need to press the button). i think it need to capture windows/hardware event.. any idea..
Last reply by hairixe, -
-
- Administrators
- 6 replies
- 1.2k views
Here is what I am trying to accompilish. I want to give the use the option to Lock the form on the screen so no one can move the form. I see there is a lock option when you view the form properties but it doesn't seem to be accessible by code. I have tried locking the position by the Move event on the form. This works to a point, you are still able to move and you see it snap into place. This is not visually pleasing. Does anyone have an idea on how to make this work. Thanks ZeroEffect
Last reply by ZeroEffect, -
-
-
- Leaders
- Administrators
- *Experts*
- 17 replies
- 1.7k views
Who remembers the super bowl commercial that yahoo put out a few years back with the dolphin? So, how did you find this place? And why do you come back? Me? Yahoo... I was searching for a solution to an odd VS2003 issue I was having. I come back because I think it's important to be a part of a technical community and to always continue learning about my trade. Just skimming the questions people ask I usually learn a little something new or I'm refreshed on something I've forgotten. There are a lot of smart folks here and I enjoy the community that's sprung up around a common dedication and appreciation to knowledge and learning.
Last reply by AFterlife, -
-
- 0 replies
- 940 views
Now I've got a new problem with this project. I have a datagrid bound to a datatable I created in the form designer. I'm adding rows to the data table in code, and the first time I bind the datagrid, it shows one row, and the second and subsequent times I bind it, it shows 0 rows, but DOES show the header. Here's the code: Dim PartNumber As String Dim GoodPart As Boolean Dim PartCount As Integer = Session("PartCount") Dim PartIndex As Integer = Session("PartIndex") Dim PartLine As String = "" Dim dtParts As DataTable Dim dtCopy As DataTable If Session("PostBack") = True Then Session("PostBack") = False dtParts = dsSelectedParts.Tables("dtSelectedParts") E…
Last reply by SteveoAtilla, -
- 0 replies
- 2.7k views
Hi - How can the HeaderRow be null? ShowHeader is set to true, and I can gView.Columns.Add(Col); so gView is definitely there, but I can't GridViewRow gvr = gView.HeaderRow; gvr.Cells[0].Text = "hello"; because it drops out with 'Object reference not set to an instance of an object' because gvr is null! How can this be? I've tried to manually instate the HeaderRow, but the property is read-only. Any ideas? Thanks, Graham
Last reply by GrahamRounce, -
- 1 reply
- 954 views
I am building a small program and it will be using Access as the backend. The database has a field that contains quotations, such as those by presidents, etc. These quotes will be entered by a user and as such may contain quote marks ("), apostrophes ('), commas (,), ampersands (&), and possibly any other special character that my come to mind. I know about the trouble Access has handling the single apostrophe and how you should handle it by replacing it with a double apostrophe, but will I run into any other problems either with the string variable in VB .Net or Access with the other possible charachters such as quotaion marks (") and ampersands (&) and if so,…
Last reply by kejpa, -
- 0 replies
- 865 views
Okay, I have an application that I need to create a local DataTable bound to a DataGrid so the user can create their list of parts prior to inserting them into the database. I had been using a simple CheckBoxList, but the formatting limitations were really ticking me off (extraneous spaces removed automatically), so I decided to switch to a bound DataGrid. Here is the code I have for when the user clicks the "Add" button: Dim NewTableRow As System.Data.DataRow = dsSelectedParts.Tables("dtSelectedParts").NewRow() If Len(Trim(txtPartNum.Text)) > 0 Then PartNumber = UCase(txtPartNum.Text) GoodPart = ValidPart(PartNumber) Else GoodPart = False End …
Last reply by SteveoAtilla, -
-
- Leaders
- 1 reply
- 1.5k views
I am trying to Initialize some arrays with in a structure, and when the arrays are initialized the memory that they are being allocated to is all off. For example when I set whole(0) equal to something the value is being placed in amount(1) instead of whole(0) very odd. Below is the code I am using to create and initialize the arrays. Public Structure fee_inrecord <MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValArray)> Dim amount() As Double 'Path to data files <MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValArray)> Dim whole() As Double <MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValArray)…
Last reply by snarfblam, -
-
-
- Administrators
- Leaders
- 4 replies
- 3.3k views
Looking at the VS 2005 Express example for C++ "How to Modify the Size of Placement of a Picture at Run Time": private: void StretchPic() { // Stretch the picture to fit the control. pictureBox1->SizeMode = PictureBoxSizeMode::StretchImage; // Load the picture into the control. // You should replace the bold image // in the sample below with an icon of your own choosing. pictureBox1->Image = Image::FromFile(String::Concat( System::Environment::GetFolderPath( System::Environment::SpecialFolder::Personal), "\\Image.gif")); } Does not work. I can find the image ok, but the fil…
Last reply by joe_pool_is, -
-
- 0 replies
- 1.2k views
I'm using VB.NET express 2005 to write a web site. On a master page I have two menus at the top, one below the other, both populated by code. The one on top has several drop-downs, and due to formatting the drop-downs rendered behind the menu below, rather impractical. I fixed this problem by encapsulating each menu in its own Panel and setting the proper z-orders. This worked until recently, and I can't figure out how to get it to work now. Instead the drop-downs render roughly 400 pixels to the right of where they are supposed to. Any help would be appreciated. If you need any more code (sample rendered page, css, themes) just ask. Give me up to a couple days to…
Last reply by Antediluvia, -
-
- Administrators
- 4 replies
- 1.2k views
Try this out at home: Create a class with a property that is a collection like List<Crap>. Then in a win form throw in like 10 comboboxes. When the form loads create an instance of your class(put some stuff in the collection) Set each combo's data source to the collection Change any combo box and they ALL CHANGE. I don't understand. I want to load each combo with a datasource but after that I want them to act independently of one another. Creating new instances of the collection doesn't solve this. Only creating a new instance of your class will make the combos act on their own. What am i missing here?
Last reply by Denaes, -
-
-
- Leaders
- 8 replies
- 1.2k views
I have a feeling that this will depend on whether you program C# or VB, but... I'm sure most C# programmers have noticed that C#'s for syntax is a bit more involved that that of VB. If a new, more VBish loop structure was introduced, which of the following would you prefer, and why? I'd appreciate other suggestions, too, but understand that the basic idea is to compliment VB's simple "For blah = blah To blah" syntax. loop(controlVariable, start, lastValueIterated){} [color=DarkGreen]//Compare[/color] loop(i, 5, 10) {} for(int i = 5; [color=Red][b]i <= 10[/b][/color]; i++) {} [color=Blue]5, 6, 7, 8, 9, 10[/color] [/Code] [Code] loop(controlVariab…
Last reply by mskeel, -
-
- 0 replies
- 1.7k views
Hi all I have 2 drop down lists, the data in the second list is based on the users selection from the first list. However I am getting the following error when I press a button to proceed with any operation: From google, one suggestions is to set the EnableEventValidation in the page source to false, however I definately don't want to do this. The second option suggested was to call the cmd: ClientScript.RegisterForEventValidation(me.UniqueId) To call this cmd, it must be in the Render declaration of the page, however from what I can see the page does not have such a declaration, only a PreRender. Any suggestions? Mike55.
Last reply by mike55, -
-
- Leaders
- 4 replies
- 1.3k views
Does anyone know how to properly reference an embedded swf file and play it? Currently, I copy the embedded swf file to the hard drive and then access it using the following code FlashMovie.Movie = Application.StartupPath & "\MyFlash.swf" FlashMovie.Play() While this method does work, I'd rather skip the step of copying the file to the harddrive and instead just use it straight from assembly. The problem is that FlashMovie.Movie part of the code requires a path (string) to the location of the file. Any suggestions for accomplishing this or should I just stick with what I have? Thanks in advance. -=Simcoder=-
Last reply by Simcoder, -
-
Who's Online 0 Members, 0 Anonymous, 32 Guests (See full list)
- There are no registered users currently online