638 Posted Topics

Member Avatar for JannuBl22t

The () => UpdateColumn(stateInformation, cid, status) uses a lambda expression to create a delegate signature for your UpdateColumn void function, but does not 'passes' the parameters to it when invoked. Probably you need to change your sentence to some thing like: [CODE]Invoke(new Action(() => UpdateColumn(stateInformation, cid, status)), new object[] {stateInformation, …

Member Avatar for lolafuertes
0
128
Member Avatar for Mr.BunyRabit

Change lines 15 and 41 to [CODE]dataGridView1 = new DataGridView();[/CODE] Hope this helps

Member Avatar for Mr.BunyRabit
0
159
Member Avatar for get connected

Try using [URL="http://www.microsoft.com/en-us/Tellme/developers/default.aspx?tab=desktop"]this[/URL] from Microsoft Hope this helps

Member Avatar for alc6379
0
110
Member Avatar for Waldek

Navigate to the base registry key HKEY_LOCAL_MACHINE and subkey SOFTWARE/Classes using the Sysytem.Windows.Forms.Application.CommonAppDataregistry (OpenBaseKey/OpenSubkey) or the Microsoft.Win32.Registry.Localmachine OpenSubKey. For each existing version you will find a subkey like Access.Application.x (where x means the version number: 12 => 2007) If the version was installed, you should find a subkey like /shell/open/command …

Member Avatar for lolafuertes
0
119
Member Avatar for sandeepbhutani

The only way I know is to create a disk driver (like antivirus do) accepting the calls to disk. Maybe you can start [URL="http://www.microsoft.com/whdc/devtools/WDK/default.mspx"]here[/URL] Hope this helps

Member Avatar for lolafuertes
0
101
Member Avatar for TheDocterd

Maybe you can do the following on the form designer: 1)Set the datagrid properties in order to select all the row at opnce, and to multi row select = false in order to have only one selected row. 2)Add the event handler for the SelectedIndexChanged event in order to be …

Member Avatar for lolafuertes
0
123
Member Avatar for toadzky

Did you opened it whith the Visual Studio Resources Editor? Even you can open it with the Notepad or XMLNotepad. Hope this helps

Member Avatar for toadzky
0
213
Member Avatar for mwjones

If the resource file is in the executing folder, you can set the basename to the name of the resource file (without the extension) and use the EntryAssemly intead of the Executing one. Hothe this helps.

Member Avatar for mwjones
0
963
Member Avatar for JD69

If your network is Active Drectory based, you can 'publish' your printers into the active directory, then navigating the AD you can find all printers published.

Member Avatar for lolafuertes
0
63
Member Avatar for MaddTechwf

Try the BGInfo utility from MS ([url]http://technet.microsoft.com/en-us/sysinternals/bb897557[/url]) Yu can launch it from VB (i.e. Shell("BGInfo.exe")). See the possible parameters and configurations to obtain the right result. Hope this helps

Member Avatar for MaddTechwf
0
90
Member Avatar for moshe12007

The sentence Tclients.AddUsersRow(a); is expecting a to be a UserRow, not a string. In order this to work you must: 1) change the line 2 to: var a = new UserRow; 2) change the line 11 to: a.Item(0) += c.Name + ", "; // because the index is base 0 …

Member Avatar for lolafuertes
0
97
Member Avatar for chintan_1671

You need to use pointers on c#. As an starting point you can read [url]http://www.c-sharpcorner.com/UploadFile/pcurnow/usingpointers10022007082330AM/usingpointers.aspx[/url]

Member Avatar for kvprajapati
-1
255
Member Avatar for get connected

The approah to find the running processes is good to know if there is an excel instance running. Else every thing is OK. I there is one (or more) running instance(s), The VisualBasic namespace offers the getobject method to get an instance of the running program. No matter wich one. …

Member Avatar for Fungus1487
0
5K
Member Avatar for emily1989

The question here is that every time you launch the button click event, you fire a loop, always ending at 5. Istead you can 1) declare the counter outside the button click procedure 2) monitor their value to start at 1 showing the button when the forms Load, and hidding …

Member Avatar for Riga
0
141
Member Avatar for CHOCHOCHO

[url]http://msdn.microsoft.com/en-us/library/system.math.sqrt(v=vs.71).aspx[/url] Hope this helps

Member Avatar for kvprajapati
-2
315
Member Avatar for horserider

Visit [URL="http://www.developerfusion.com/tools/convert/csharp-to-vb/"]this site[/URL] Hope this helps

Member Avatar for lolafuertes
0
77
Member Avatar for noel9

Be aware that lines 13 to 15 can fail if no selected item in combobox. Be aware that the selected item in combobox does not 'disapears' if you change the combo box from enabled to disabled. So I would sugges you to change your code to some thing like: [CODE] …

Member Avatar for lolafuertes
0
145
Member Avatar for y2kshane

Did you visit [url]http://msdn.microsoft.com/en-us/vsto/default[/url] ? Those tools are included in VS2010. You can find examples on how to, for both VB and C#. Hope this helps

Member Avatar for RenanLazarotto
0
146
Member Avatar for dinesh.isuranga

Setting the radiobutton checked property will do the work rbmale.Checked = (empsex = "M") rbfemale.Checked = (empsex = "F") Hope this helps

Member Avatar for lolafuertes
0
76
Member Avatar for swathys

There are almost two ways to get what you want: 1) Do a SELECT * against the table to update (using a 'WHERE 1=2' select clause in order to fill the table with no records) to obtain all the existing fileds, and use it in a data adapter to fill …

Member Avatar for lolafuertes
0
122
Member Avatar for TheBrenda

I will prefer to have this info in a dataset having 2 fields ( and Keys if needed) . Tha dataset can be persisted (saved) and loaded from disk when needed. Also, you can update (add, remove, modify) the records easely using the XMLNotepad (from Microsoft). Using a datasetview can …

Member Avatar for lolafuertes
0
129
Member Avatar for virusisfound

Maybe you'll need, first, change the database in order the EmpId will be an Integer instead of string. Then create an SQL Sentence like [ICODE]"SELECT CASE WHEN NOT EXISTS( SELECT EmpId FROM Employee WHERE EmpId = " + txtEmpId.Text + ") THEN " + txtEmpId.Text + " ELSE MAX(EmpId)+1 END …

Member Avatar for ShahanDev
-1
95
Member Avatar for mvs

Maybe you can start at [url]http://www.youtube.com/watch?v=pRql6lZTdfg[/url] (vb net 2008 how to create a report 1) Hope this helps.

Member Avatar for lolafuertes
0
66
Member Avatar for bhagawatshinde

Please start at [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.send.aspx[/url] The Send methos sends the keys to the current active application, so you need to be confident that the application having the focus is the one you are trying to send the keys. Hope this helps

Member Avatar for bhagawatshinde
0
1K
Member Avatar for discovery-power

Please, verify the line 18 of your code. Maybe you need to change to [CODE]da.DeleteCommand = myBuilder.GetDeleteCommand[/CODE] Hope this helps

Member Avatar for discovery-power
0
94
Member Avatar for Mike Bishop

Maybe on line 12 of your example you can add:[CODE]Dim Parts() As String = Lines(0).Split("="c)[/CODE] then show the Parts(1) or change the line 14 to [CODE]Me.TextBox1.Text=Lines(0).SubString(Lines(0).IndexOf("="c) + 1)[/CODE] The first solution can fail if no '=' sign exists. The second solution will show all the line content is no '=' …

Member Avatar for Mike Bishop
0
126
Member Avatar for shankarmca

Did you refresh the data gird source after inserting into the DB? I can't see it in this sub. Hope this helps

Member Avatar for shankarmca
0
110
Member Avatar for simonfoley

Just some hints: If you want one additional column then change to [CODE]Dim str(qtyCols) As String[/CODE] Then, before creating the ListViewitem, add the calculation.[CODE]str(qtyCols) = (Microsoft.VisualBasic.Val(str(qtyCols-2))/Microsoft.VisualBasic.Val(str(qtyCols-1)) * 100).ToString[/CODE] or whatelse calculation you need Hope this helps.

Member Avatar for Unhnd_Exception
0
92
Member Avatar for devilsden

Two? Lets start on point 4: Remove the () on the line 19: serial = MaskedTextBox1.Text 'Gets the serial number Point 3: You only release the xlBook. You need to release also the xlSheet (before releasing the book) and the xlApp (after releasing the book). You don't need to call …

Member Avatar for lolafuertes
0
128
Member Avatar for osei opoku

The function GetWors is expected to return one or more words, but the receptor english is a string that can only hold one, so the conversion is not possible. Changing to [CODE]Dim english() As String [/CODE]will do the work. Hope this helps

Member Avatar for lolafuertes
0
113
Member Avatar for ziyakhan10
Member Avatar for LJames

I would suggest to use an small utility PrimoPDF from [URL="http://www.primopdf.com/download.aspx"]http://www.primopdf.com/download.aspx[/URL] to convert to PDF. If you use an access database for source, you can create an Access Report to create the labels, then print them to the PrimoPDF virtual printer. Hope this helps.

Member Avatar for LJames
0
93
Member Avatar for Maha Sh.

You must query to the database table to return the not entered words using a SQL sentence like SELECT Word FROM WordsTable WHERE Word NOT IN ('word1', 'word2', ...)

Member Avatar for lolafuertes
0
118
Member Avatar for bettybarnes

Just some comments. Your Billing and Findings Tables must have a field with ConsultNo to link with the Consultation table. Change the relation according. Probably you need to connect Medication to the Doctor and to the Pharmacy so you'll need the fileds for DoctorId and PharId in the Medications table …

Member Avatar for lolafuertes
1
146
Member Avatar for bhagawatshinde

Rich text is a sort of language where you define some attributes for the text in. You can go to [url]http://msdn.microsoft.com/en-us/library/aa140277(v=office.10).aspx[/url] to read about internal syntax of rich text. Assuming you are saving the contents of the richtexbox rtf property in the SQL database, the easiest way is to write …

Member Avatar for bhagawatshinde
0
130
Member Avatar for Quazy

Do not bind the datagridview to the datatable. Instead, after each query to the DB, manully add a new row to the datagridview with the info from your data table. Hope this helps

Member Avatar for Quazy
0
108
Member Avatar for bklynman01

I've been using the Grapecity Farpoint ([url]http://www.fpoint.com/default.aspx[/url]) for many years Hope this helps

Member Avatar for bklynman01
0
132
Member Avatar for lcfjoertoft

A suggestion is to convert your array to a datatable, then set the datatable as the data source of the data grid view. Hope this helps

Member Avatar for lolafuertes
0
64
Member Avatar for Sarah Smith

The usage of Var in your array copy, is trying to obtain the lowerbound value of the [COLOR="Green"]dimension[/COLOR] Var (in your example always greater than 0), while there is only one dimension (0) on the array. If you want to start copying from a certain point, use it as starting …

Member Avatar for lolafuertes
0
101
Member Avatar for tendaimare

If you put your code here, maybe we can see where the problem is. Anyway, if you are usin a data adapter, maybe you forgot to call it for Update. Otherwise, maybe you forgot to set the data adapter commands commands for insert, delete and update. Hope this helps.

Member Avatar for Netcode
0
106
Member Avatar for Turaiel

Do you added a System.Windows.Forms.Application.Doevents() after each action (open, close, read a cell, etc...)? This will help the timer not to stop. About the problem with the audio, did you tryed PlaySound API to play the sound asynchronous?[CODE] <Flags()> Public Enum PlaySoundFlags As Integer SND_SYNC = &H0 ' play synchronously …

Member Avatar for lolafuertes
0
177
Member Avatar for pnky_14

If the database is an access database, then you need to have permissions to the folder.

Member Avatar for lolafuertes
0
86
Member Avatar for lcfjoertoft

In order to quicly free resources, I would prefer to fill some table in a memory dataset, then close and dispose the connection to the server (freeing resources). after that you can cicle over the data in memory. Between fills, give some time to the system calling the System.Threading.Thread.Sleep for …

Member Avatar for lcfjoertoft
0
107
Member Avatar for jaga_1571992@ya
Member Avatar for tendaimare

If you put your code here, maybe we can help you to find where is the problem. Anyway, if you use a data adapter, probably you miss to define the insert, delete and update commands for it, and/or miss to call it for update. Hope this helps

Member Avatar for lolafuertes
0
98
Member Avatar for venet
Member Avatar for p2kpradeep

I think that if you impersonate your application with a user other that the logged in, with enough privileges (like Administrator) your Excel will be exclusive. See [url]http://blogs.msdn.com/b/shawnfa/archive/0001/01/01/400749.aspx[/url] on how to. Hope this helps

Member Avatar for alc6379
0
165
Member Avatar for MD656

The target machines are in an Acive directory environment or in a workgroup? If they are in an active directory, the you can automate the execution of the scrip via Group Policy for the login script, Creating an active directory group with the machines to execute the script, and setting …

Member Avatar for lolafuertes
1
182
Member Avatar for Altarium

I would test if adding a FormattingApplied to true is enough: [CODE] Private Sub dataGridView1_CellFormatting(ByVal sender As Object, ByVal e As DataGridViewCellFormattingEventArgs) Handles DataGridView1.CellFormatting If Me.DataGridView1.Columns(e.ColumnIndex).Name = "Due Date" Then If e.Value IsNot Nothing Then Dim dgvdate As String = e.Value.ToString ' MsgBox(dgvdate) If dgvdate = "5" Then e.CellStyle.ForeColor = …

Member Avatar for Altarium
0
3K
Member Avatar for h0neydip

Assumming the input for the elbonian date is a textbox1 you can: a) split the input into 3 parts by "-" as separator b) Verify that the year has 4 digits including century. this is needed for the next steep c) Create an string in format of yyyy-MM-dd ( called …

Member Avatar for TsadokBlok
0
101

The End.