Answer Questions
Marshaler Quick Question About DataGrid type of UI in Task Manager ???
Hello, Please open your Task manger and see the different tabs applications, processes, performance and so on.... my question is that DataGrid has both rows and columns Drawn but in task manager there are no such horizontal lines or vertical lines. Is this control DataGrid or someone other If it is DataGrid how i can remove the lines Please answer if you know... it will only take 2 minutes. Thank you. Those boxes under applications and performance are most likely "ListView" controls FYI...you do have the capability to set the cellborderstyle in the datagridview to none ...Show All
ZopoStyle How can I change the text colour in a message box?
I have been told that this is not possible but i am sure it is. If anyone knows how to do it then I would really appreciate it. Thanks. Got it up and running and can set the colour that I want!! WOO HOO!!! Tahnk you very much have a great week and weekend. Start out by Adding a new Item to your project ...from the template window select "Dialog"...it will insert a dialog form named "Dialog1.frm" into your project with 'Ok' and 'Cancel' buttons already placed on the forms...the basic setup...all you have to do is put your Title, labels and graphics on the form and it is ready to be used DMan1 wrote: If you would like co ...Show All
MGorgone Deploying multiple EXE's using the basic publish mechanism of the IDE
I have a rather convoluted project. The distributable will come in eight different flavors, each with its main program, libraries, datafiles, doco, etc. Each flavor will also have one or more standalone executables that can be called as tools from within the main program. To complicate matters I'm using VSS 2005 to track everyting and I'm trying to use links both within the IDE and VSS to minimize the possibility of error and to let the IDE do all the work at build time. This works great with the datafiles, doco, etc. (Though I wish that it were possible to use the content / copy mechanism to copy to directories parallel or even below bin rather than within bin. It's nice to have the readme file in the root. Anyone at MS listening BT ...Show All
WXS123 problem adding menu item
i have db connection that loads 2 fields, name and directory then i need to add the 2 records to a menu so i have file.dropdownitems.add(name, nothing, process.start(directory)) but VB is telling me that system.diagnostics.process cannot be converted to system.eventhandler what am i doing wrong can someone point me in the right direction ! thanks in advance!! "file.dropdownitems.add(name, nothing, process.start(directory))" To add two records, use the .addrange method. Here is an example: Me .MnuFile.DropDownItems.AddRange( New System.Windows.Forms.ToolStripItem() _ { Me .MnuFileNewDatabase, Me .ToolStripSeparator5, Me .mnuFileOpen, Me .ToolStripSeparator4, _ Me .mnuFileClose, ...Show All
Keith Chapman Compiled app failing in InitializeComponent
I have created a WinForms application that runs fine in Debug mode, but when I deploy it to a server, it fails when it executes InitializeComponent while loading its first form. How do you debug something like this Can you post a stack trace of the failure What's the exception that you get Is the .NET framework installed on the server if the .NET Framework is not installed on the server, the application wouldn't run at all (AFAIK). Perhaps some UI Component is not fully supported on a particular OS (it can happen but do not quote me) what OS is this server you are running the application on how are you deploying it As suggested, if you ...Show All
John Kinghorn Add and remove data from file
Is t possible to: Add data to a certain offset in a file without overwriting original data from that offset, thus expanding the file Remove data from a certain offset and length in a file, instead of making a new file of the two desired parts of data from the original file Thanks! Just to add my 2p... when you have the file in memory (e.g., in a string) you can use string.insert to add data and string.substring to remove... :) I would use a StringBuilder (with enough allocated memory) rather than inserting into strings, though - each time you insert into a string, you will create a brand new string (so if your 'string' is 2Mb in size, it'll copy the whole 2Mb to another string). This is what it means when strings ...Show All
Mel V strategy to get around slow application startup...
as long as I dropped controls onto the form designer, the application starts up pronto. Imperceptible flicker/painting as the form loads up with tab controls, toolstrips, text boxes, etc. InitializeComponent within Mainform.designer.vb works. The problem is when I add usercontrols in Form_Load. The startup performance degrades noticeably and precipitously with a dozen controls. OK, I am not in Oz or statically linked exe's anymore...the code compiles on the fly. As an experiment I thought I would move the ResumeLayouts/ PerformLayout to the end of the form_load instead of at the end of InitializeComponent. That helped somewhat but it threw into a tizzy some SplitterContainer splitterdistance preperty settings. It's getting comp ...Show All
chub xbox How to add comboBox in a data grid column, DataGridComboBoxColumn???
The question is simple, & for sure sample code will b there, I searched & found only C# smples :( I want to add a combo box dynamically [at runtime] in the data grid, it should appear in one of the columns of the grid, say column 1, a text box, column 2 a check box, column 3 is a combo box please provide vb.net sample, if you use any self mde 3rd party specialized class, provide the code please no, what a shame if i knew, i m using vs.net 2003, & my advisor won't let me change the development platform :( well I have now got the code to do it some in vs2003 some how i.e. get a combo in the grid cell, but now i also need to populate that combo with values from the database, this is easy, then... The cell shou ...Show All
rjo2 Adding a right-click function to a control
I hope someone can help me out with this. I'm trying to add a function to a button when it's right-clicked , but I can't find any way to do it. Thanks (in advance!) for helping. Hi Suliman Ill b glad if u mark my response as Answered.. Thanks unfortunately as you guessed, this isnt the correct place for VB6 questions and is for .NET only. Best place, if you havent already, is to post here: http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx dg=microsoft.public.vb.general.discussion&cat=en_us_ab067bc0-bda5-4921-a1ec-e76402873945&lang=en&cr=us this is also known as a contextmenu. From the controls I have seen such as combobox, textbox, listbox, there is a pr ...Show All
rayou populate Word-Docvariables via VB-Code and set their values dynamically
Hi, i hope i find a answer on this way. Let me describe my little ( i hope so...) problem: I would like to have my code figure out which fields are on the document and populate only those. I realized this with the following code: Sub sendToWord(DokPath, DokName) Dim strPfad As String strPfad = DokPath On Error Resume Next Dim objWord As Word.Application 'search instance of Word Set objWord = GetObject(, "Word.Application") If Err.Number = 429 Then 'no instance found Err.Clear Set objWord = CreateObject("Word.Application") 'create instance On Error GoTo Fehler ElseIf Err.Number = 0 Then ' nothing Else On Error GoTo Fehler End If With objWord .Visible = True .Wind ...Show All
R.Tutus Resx designer class
Visual Studio 2005 generates strongly typed classes from *.resx files that simplify accessing resource strings, etc. The classes are created as internal. I would like to be able to package these *.resx files and associated classes into an assembly that can be shared between custom web controls in an ASP.Net application (i.e. a satellite assembly). To use these auto-generated classes, I have to manually change the class and method definitions from 'internal' to 'public'. Is there any way to automatically generate these class and method definitions as public (I have moved your post to a more appropriate forum). Using the IDE, there is currently no way to automatically generate public classes (although we are planning this function ...Show All
DJW1005 Mac Address of Ethernetcard.
Hi Can some body help me out in finding out which of the macaddress is fixed and doesnot lose the value when the network adapters are diabled. I have used the following code to identify the the mac address on my system. Dim mc1 As System.Management.ManagementClass Dim mo1 As ManagementObject mc1 = New ManagementClass( "Win32_NetworkAdapter" ) Dim moc1 As ManagementObjectCollection = mc1.GetInstances() allValues.AppendText( "Win32_NetworkAdapter" & vbCrLf) For Each mo1 In moc1 Msgbox( "Adapter Type :-> " & mo1.Item( "AdapterType" ) & vbCrLf & "MacAddress :-> " & mo1.Item( "macAddress" ) & vbCrLf) Next The Result i rece ...Show All
Noel Muhleisen Formatting/Coding
I am trying to format a textbox to display currency. The textbox is receiving the data from a dataset and I'm not sure what I have to do now. I am also having an issue programming a save button that I added to a binding navigator. I have tried several different codes to get it work, but I guess I haven't written the right one, yet. Is there anyone who can help with this, please The textbox binding has a format event . Thanks, but I have already bound the textbox to the datasource. I just needed to know how to make it show as currency in the texbox. Any ideas And I also needed to know how to work the save button that I added to the binding navigator. Thanks in advance. ...Show All
Sevugan makeing background form
well i make a program that get mouse X and Y each time the mouse moves on the form and write it to file ; i want to make that program " in the background" that still get X and Y but user wont see it he can still work and program still record ; how can i make thats well i look at the link its very helpful but i dont get it how its gets clicks Public Function InstallHook() As Boolean If _mouseHook = IntPtr.Zero Then _mouseProc = New CallBack(AddressOf MouseHookProc) _mouseHook = SetWindowsHookExW(WH_MOUSE_LL, _mouseProc, GetModuleHandleW(IntPtr.Zero), 0) End If Return _mouseHook <> IntPtr.Zero End Function thats just over what i know in VB.net (argh) i have to learn how to us ...Show All
toastman Need to bold a single word in a text box...
Is it possible to make a single word in a text box bold. See the below code. Do While inc <> maxrows - 1 inc = inc + 1 cbofarmsel.Items.Add(Trim(ds.Tables( "zdchostnam" ).Rows(inc).Item(1)) & " ,(" & Trim(ds.Tables( "zdchostnam" ).Rows(inc).Item(0)) & ")" ) Loop This snippit of code is to populate a dropdown list with the items gathered from a SQL database.. That portion is working fine what I want to do is make the first item in the list bold. So it would look like Farm1 (Server1) Farm2 (Server2) ect...... Any help would be great. Thanks in advance No you cannot. You would need to use a specialize ...Show All
