Topics
-
- 0 replies
- 2.2k views
hi all, I had to perform some formatting in an Excel 2007 workbook and I decided to write a macro. It works just fine, only that my users will never execute it unless they finde a nice button somewhere on the ribbon. Does anybody know how to do that? I run Office 2007 on XP Professional SP3. Thanks, kowalsky
Last reply by kowalsky, -
- 10 replies
- 1.5k views
Hi, I've decided to explore providing design time support for custom component's and as my first effort I have opted to take on building a tab control. Working from some good examples I have just about managed this, but I am now stuck with the problem that once tab's have been added at design time they initially work perfectly and all code seems to be serialized ok, however after a build for example (or anything that causes the design view to refresh) the tab buttons for any 'existing' tab pages that have been serialized will loose their design time ability. I've been scratching my head for a little while on this one now as I know that this wasn't always a problem a…
Last reply by eyotasoft, -
- 1 reply
- 2k views
I've created a base form with (among other commonly used controls) a DataGridView control. It's Design Modifiers Property is set to Public so that I can position the control to where it is needed on my various inherited forms. However, on all of the Inherited Forms, all of the properties of the DataGridView control are grayed out. Other "base form controls" (a custom control, a picture box, and a status bar) are all able to be modified on the inherited forms. How do I get them enabled?
Last reply by joe_pool_is, -
-
- Leaders
- Administrators
- 9 replies
- 2.5k views
I've opened a thread regarding this like 2 years ago in which I actually got a solution, but it seems now that such solution is not fast enough. The solution was to get a portion of the rendered backbuffer surface back to a BMP object and than do the pixel color check. Unfortunately, passing a surface to a stream method is way TOO slow. Is there any other way to access a specific pixel on the backbuffer and retrieve its raw color? Can this be done directly? I can't believe such a simple task is giving me such a hard time. My work is halted until I find a solution for this. Thanks, in advance.
Last reply by EFileTahi-A, -
-
-
- Leaders
- 4 replies
- 1.1k views
First of all, let me apologize for asking such a simplistic question, but here goes. Suppose one wants to search an array of 100 strings, for three words. The search for the words is conducted one at a time (word 1, word 2 and then word 3). And the words are exclusive, in that only one of the three words will appear only once in a line, if at all (ie - no line will have more than one of the words in it). In searching through the array for the first word, suppose you find it in 23 lines. Now, if a word is found in a string, that string does not need to be searched again, so when searching for the second word, one would search through 77 strings (100 - 23). And if you …
Last reply by lewist57, -
-
-
- Leaders
- 1 reply
- 1.8k views
hi all i need to send vb.net form value to php page by post method thanks all
Last reply by snarfblam, -
-
Basics on the Try and Catch usage
by Guest Fhwoarang-
- Administrators
- 8 replies
- 4.3k views
Hi, I'm a VB6 regular programmer and I'm trying to move to .NET. My transition has been soft and easy because of the good habits I learn from people in forum like this one. Still there is something I don't understand about the Try and Catch thing. 1. How do you know if something (function or method) has something that we can catch? I mean, I can look at the MSDN for everyline I writte, but that wouldn't be very practical. Do all methods and properties have an exception? 2. When or why do you use the "e" as a parameter in a catch? Sometimes I see things like this: catch (RandomException e) { // Code } I know the "e" is a value that comes from mostly from e…
Last reply by robertsams23, -
-
- 2 replies
- 4.6k views
Good morning ALL!!! Can any body tell me , all the access specifiers in vb.net and differences among them and advantage of each one.. Thanks&Regards, SrivaniAnnapurna
Last reply by robertsams23, -
-
- Leaders
- Administrators
- 5 replies
- 2.8k views
Heya, I have created my own internet browser which is almost finished, I just need one more thing to make it complete. I need my internet browser to be able to be set as the default browser. I have 2 applications 1 being the browser lets call it browserapp1.exe and I have another app which we will call setasdefaultapp1.exe, setasdefaultapp1.exe will be an application basic form with 2 buttons one to exit and one to make browserapp1.exe the default internet browser. I understand that to do this I need to edit the registry, would somebody be able to help me do this and maybe provide me with some source code? When the button on setasdefaultapp1.exe is pressed I w…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 5 replies
- 2.5k views
I have been playing around with numbers in c# (learning!), and I wonder how I would go about making a struct of mine act like one of the built-ins (such as byte) With a byte, I can go '(byte)value' to get a value within the byte range, 0..255. My struct will have values 0..47,000 - I want to be able to go '(myType)value' to get it within that range, like with the byte. Is this anything to do with the MinValue / MaxValue properties? Could someone please suggest some ideas...? Thanks
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 2.6k views
Hi! I just opened an EBAY account but it didn't ask me how I would be paying. I put a bid on an item. How exactly do I pay for it?
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 2 replies
- 775 views
Hi , I have to build a project using C# which detects all the servers once connected and then using sql as database have to use username and password to login the particular server. Could you please help me as this is my first project.
Last reply by standbackf, -
-
-
- Leaders
- 1 reply
- 1.8k views
http://img716.imageshack.us/img716/8881/blurrytext.jpg Thanks to ThePentiumGuy I have this base rendering class down here but I cant seem to get the text or other sprites to come out clear in windowed mode. Is there some simple viewport style that I can use? Windows 7 Ultimate 64-bit Visual Studio 2008 DirectX 10 SDK Public D3Ddev As Device = Nothing Public D3Dpp As PresentParameters = Nothing Public DP As DisplayMode = Nothing Public GameOver As Boolean Public Sub Start(ByVal TargetForm As Form, ByVal FullScreen As Boolean) Game.MainForm = TargetForm Game.Fullscreen = FullScreen If FullSc…
Last reply by snarfblam, -
-
- 0 replies
- 3.9k views
Hi, there i'm new in VB.NET & SQL. I have a customer form in VB.NET 2003 & my table in SQL EXPRESS 2008. I keep on getting this error message below at run time. An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll Additional information: System error. The error message comes up when the line ' Dim ds As New DataSet' is being executed in the sub below. Please your help wil be kindly appreciated. sub UpdateCust Dim cstcode As Integer = CInt(Me.lblReg.Text) 'newtstrmkstore() Dim query As String = "UPDATE customer SET" & _ " name = " & UCase(Me.txtName.Text) &…
Last reply by fola, -
-
- Leaders
- 7 replies
- 22.8k views
Hey guys, I'm new at c#. I'm still in the process of learning. I've never really been into programming, developing etc but I've always loved science and technology, and always wanted to try the game developing side of it. one of the real reasons I never stuck to learning a language was lack of ideas and understanding concepts. well, I've got a good basic tutorial to stick with for a while, and I'm finally understanding now. I'm figuring out that I like the fact that you can write software for *whatever* you want. I'm programming in console applications right now. So, my question is... Does anyone have any cool and simple ideas for programs that a beginner could w…
Last reply by philip1, -
-
-
- Administrators
- 1 reply
- 1.4k views
I am looking for a way to implement a PrograssBar on Application TaskBar item on Windows 7 as you can see in Windows 7 like when copying files! I need to do it with a few lines in Visual Basic .NET 2008. I know there is a Windows API Code Pack by Microsoft but it's a large collection and written in C#. Anyone knows how to do this in VB.NET without using a .dll reference? Thanks :)
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 9 replies
- 7.3k views
Does anyone know any way to defrag a disk in vb.net??
Last reply by BrettW, -
-
-
- Administrators
- 4 replies
- 13.4k views
Error: "managed PInvoke signature does not match the unmanaged target signature." I have this: '----Module 1---- Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As String, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long Declare Function WritePrivateProfileString Lib "kernel32" Alias "WritePrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As String, ByVal lpString As String, ByVal lpFileName As String) As Long Function GetStuff(ByVal appname As String, ByVal KEY As String) A…
Last reply by Dre__, -
-
-
- Administrators
- 3 replies
- 4.7k views
Hi, i'm pretty a noob in .NET and try to serialize a class and send it into an UDP packet. I use the udpClient class on my client and server sides and I can get an array of byte to transfert from one to another. What I don't know is how to serialize my object (which basically consist of 3 strings and 1 dictionnary). that object has the name "myCustomClassInstance" in the following example code. (-->this also means that its size is variable and that I will have to check that the size of my serialized object is under the [MTU minus header] size. but that's another problem.) For the moment I get to serialize my message by using a binaryformater then send it: …
Last reply by passel, -
-
-
- Administrators
- 2 replies
- 1.3k views
I'm sorry to disturb you find folks but I'm at my wits end with this. My problem involves getting a list of process's and there module's. i know what your saying right now 'use system.diagnostics' stupid. My problem comes from the fact that i need a FULL list of EVERYTHING with no access denied exceptions. Just catching it and moving on is not an option. My OS I'm developing on is Windows 7 and yes administrator. If you go to run and type 'cmd' and then 'tasklist /m' it seems to do what i cant. Now normally i would be lazy and just reroute the output and parse it but the application must have no outside dependency except what we make for it. Any help wo…
Last reply by Sired22, -
-
Who's Online 0 Members, 0 Anonymous, 9 Guests (See full list)
- There are no registered users currently online