|
That's not a question, but a task. Start with writing the code to retrieve the value from the listbox. Then write the code to assign a new DataRow.
If you have a more specific question, you'll get a more specific answer.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
You can use a for loop and add all the selected values from list box to the DataTable and bind that DataTable to your GridView Control.
Cheers
|
|
|
|
|
Hi all,
I am wondering that on my form nither validators nor Validationsummery is working. why? below is my code.
<pre lang="HTML"><table align="center" border="0" cellpadding="0" cellspacing="0" width="700">
<tr>
<td align="center" class="formHeading">
Add a New User</td>
</tr>
<tr>
<td align="center" style="height: 20px">
</td>
</tr>
<tr>
<td align="left" style="height: 20px" class="nbdcontent">
</td>
</tr>
<tr>
<td align="center" style="height: 20px">
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="700">
<tr style="color: #000000">
<td align="left" class="nbdcontent" nowrap="nowrap" style="width:
9px; height: 17px;"> </td>
<td align="left" class="nbdcontent" nowrap="nowrap" style="width:
141px; height: 17px;" valign="top"> </td>
<td align="left" class="nbdcontent" style="height: 17px" valign="top" colspan="5">
<asp:Label ID="lblMsg" runat="server" Font-Bold="True" Visible="False"></asp:Label>
</td>
<td align="left" height: 17px;" valign="top">
</td>
<td style="width: 100px; height: 17px;">
</td>
</tr>
<tr style="color: #000000">
<td align="left" class="nbdcontent" nowrap="nowrap" style="width:
9px; height: 17px;"> </td>
<td align="left" class="nbdcontent" nowrap="nowrap" style="width:
141px; height: 17px;" valign="top"> </td>
<td align="left" class="nbdcontent" style="height: 17px" valign="top" colspan="5">
</td>
<td align="left" height: 17px;" valign="top">
</td>
<td style="width: 100px; height: 17px;">
</td>
</tr>
<tr style="color: #000000">
<td align="left" class="nbdcontent" nowrap="nowrap" style="width:
9px; height: 17px;"> </td>
<td align="left" class="nbdcontent" nowrap="nowrap" style="width:
141px; height: 17px;" valign="top"> </td>
<td align="left" class="nbdcontent" style="height: 17px" valign="top" colspan="5">
<asp:RadioButtonList ID="RadioButtonList1" runat="server" CssClass="nbdcontent"
AutoPostBack="True" RepeatDirection="Horizontal" Font-Bold="True"
Font-Size="Medium"
onselectedindexchanged="RadioButtonList1_SelectedIndexChanged">
<asp:ListItem Value="0">CPMU</asp:ListItem>
<asp:ListItem Value="1">SPMU</asp:ListItem>
<asp:ListItem Value="2">SFTI</asp:ListItem>
</asp:RadioButtonList>
</td>
<td align="left" height: 17px;" valign="top" colspan="2">
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
ControlToValidate="RadioButtonList1" ErrorMessage="Type required !">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr style="color: #000000">
<td align="left" class="nbdcontent" nowrap="nowrap" style="width:
9px; height: 17px;"> </td>
<td align="left" class="nbdcontent" nowrap="nowrap" style="width:
141px; height: 17px;" valign="top"> </td>
<td align="center" class="nbdcontent" style="height: 17px" valign="top">
</td>
<td align="left" style="width: 120px; height: 17px;" valign="top">
</td>
<td align="left" style="width: 120px; height: 17px;" valign="top"> </td>
<td nowrap="nowrap" style="height: 17px;" align="left"
class="nbdcontent" valign="top"> </td>
<td align="center" class="nbdcontent" style="width: 13px; height: 17px" valign="top">
</td>
<td align="left" height: 17px;" valign="top">
</td>
<td style="width: 100px; height: 17px;">
</td>
</tr>
<tr style="color: #000000">
<td align="left" class="nbdcontent" nowrap="nowrap" style="width:
9px; height: 17px;"> </td>
<td align="left" class="nbdcontent" nowrap="nowrap" style="width:
141px; height: 17px;" valign="top"> State</td>
<td align="center" class="nbdcontent" style="height: 17px" valign="top">
:</td>
<td align="left" style="width: 120px; height: 17px;" valign="top">
<asp:DropDownList ID="ddlStates" runat="server" AutoPostBack="True"
CssClass="mytextbox"
AppendDataBoundItems="True" DataTextField="State"
DataValueField="State_Id" Enabled="False"
onselectedindexchanged="ddlStates_SelectedIndexChanged1">
<asp:ListItem Value="0">-Select-</asp:ListItem>
</asp:DropDownList>
</td>
<td align="left" style="width: 120px; height: 17px;" valign="top"> </td>
<td nowrap="nowrap" style="height: 17px;" align="left"
class="nbdcontent" valign="top"> </td>
<td align="center" class="nbdcontent" style="width: 13px; height: 17px" valign="top">
</td>
<td align="left" height: 17px;" valign="top">
</td>
<td style="width: 100px; height: 17px;">
</td>
</tr>
<tr style="color: #000000">
<td align="left" class="nbdcontent" nowrap="nowrap" style="width:
9px; height: 17px;"> </td>
<td align="left" class="nbdcontent" nowrap="nowrap" style="width:
141px; height: 17px;" valign="top"> </td>
<td align="center" class="nbdcontent" style="height: 17px" valign="top">
</td>
<td align="left" style="width: 120px; height: 17px;" valign="top">
</td>
<td align="left" style="width: 120px; height: 17px;" valign="top"> </td>
<td nowrap="nowrap" style="height: 17px;" align="left"
class="nbdcontent" valign="top"> </td>
<td align="center" class="nbdcontent" style="width: 13px; height: 17px" valign="top">
</td>
<td align="left" height: 17px;" valign="top">
</td>
<td style="width: 100px; height: 17px;">
</td>
</tr>
<tr style="color: #000000">
<td align="right" class="nbdcontent" style="width: 9px; height:
17px"> </td>
<td align="left" class="nbdcontent" style="width: 141px; height:
17px" valign="top"> SFTI</td>
<td align="center" class="nbdcontent" style="height: 17px" valign="top">
:</td>
<td align="left" colspan="2" style="width: 120px; height: 17px" valign="top">
<asp:DropDownList ID="ddlSFTI" runat="server" AutoPostBack="True"
CssClass="mytextbox" DataTextField="SFTI_Name"
DataValueField="SFTI_Id" Enabled="False">
<asp:ListItem Value="0">-Select-</asp:ListItem>
</asp:DropDownList>
</td>
<td align="left" class="nbdcontent" style="height:
17px" valign="top"> </td>
<td align="center" class="nbdcontent" style="width: 13px; height:
17px" valign="top"> </td>
<td style="width: 100px; height: 17px" valign="top">
</td>
<td style="width: 100px; height: 17px"> </td>
</tr>
<tr style="color: #000000">
<td align="right" class="nbdcontent" style="width: 9px; height:
17px"> </td>
<td align="right" class="nbdcontent" style="width: 141px; height:
17px" valign="top"> </td>
<td align="center" class="nbdcontent" style="height: 17px" valign="top">
</td>
<td align="left" colspan="2" style="width: 120px; height: 17px" valign="top">
<asp:Label ID="lblUserId" runat="server" Visible="False"></asp:Label>
</td>
<td align="left" class="nbdcontent" style="height:
17px" valign="top"> </td>
<td align="center" class="nbdcontent" style="width: 13px; height:
17px" valign="top"> </td>
<td style="width: 100px; height: 17px" valign="top">
</td>
<td style="width: 100px; height: 17px"> </td>
</tr>
<tr style="color: #000000">
<td align="right" class="nbdcontent" style="width: 9px; height:
17px"> </td>
<td align="left" class="nbdcontent" style="width: 141px; height:
17px" valign="top"> User Id</td>
<td align="center" class="nbdcontent" style="height: 17px" valign="top">
:</td>
<td align="left" colspan="2" style="width: 120px; height: 17px" valign="top">
<asp:TextBox ID="txtUserId" runat="server" CssClass="mytextbox"
AutoPostBack="True" ontextchanged="txtUserId_TextChanged"></asp:TextBox>
</td>
<td align="left" class="nbdcontent" style="height:
17px" valign="top">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="txtUserId" ErrorMessage="User Id Required !">*</asp:RequiredFieldValidator>
</td>
<td align="center" class="nbdcontent" style="width: 13px; height:
17px" valign="top"> </td>
<td style="width: 100px; height: 17px" valign="top">
</td>
<td style="width: 100px; height: 17px"> </td>
</tr>
<tr style="color: #000000">
<td align="right" class="nbdcontent" style="width: 9px; height:
17px"> </td>
<td align="left" class="nbdcontent" style="width: 141px; height:
17px" valign="top"> </td>
<td align="center" class="nbdcontent" style="height: 17px" valign="top">
</td>
<td align="left" colspan="2" style="width: 120px; height: 17px" valign="top">
</td>
<td align="left" class="nbdcontent" style="height:
17px" valign="top">
</td>
<td align="center" class="nbdcontent" style="width: 13px; height:
17px" valign="top"> </td>
<td style="width: 100px; height: 17px" valign="top">
</td>
<td style="width: 100px; height: 17px"> </td>
</tr>
<tr style="color: #000000">
<td align="right" class="nbdcontent" style="width: 9px; height:
17px"> </td>
<td align="left" class="nbdcontent" style="width: 141px; height:
17px" valign="top"> Email</td>
<td align="center" class="nbdcontent" style="height: 17px" valign="top">
:</td>
<td align="left" colspan="2" style="width: 120px; height: 17px" valign="top">
<asp:TextBox ID="txtEmail" runat="server" CssClass="mytextbox"
></asp:TextBox>
</td>
<td align="left" class="nbdcontent" style="height:
17px" valign="top">
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ControlToValidate="txtEmail" ErrorMessage="Email is not valid !"
ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
</td>
<td align="center" class="nbdcontent" style="width: 13px; height:
17px" valign="top"> </td>
<td style="width: 100px; height: 17px" valign="top">
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"
ControlToValidate="txtEmail" ErrorMessage="Email required !">*</asp:RequiredFieldValidator>
</td>
<td style="width: 100px; height: 17px"> </td>
</tr>
<tr style="color: #000000">
<td align="right" class="nbdcontent" style="width: 9px; height:
17px"> </td>
<td align="right" class="nbdcontent" style="width: 141px; height:
17px" valign="top"> </td>
<td align="center" class="nbdcontent" style="height: 17px" valign="top">
</td>
<td align="left" colspan="6" style="height: 17px" valign="top">
<asp:RegularExpressionValidator ID="Regex2" runat="server" ControlToValidate="txtpassword"
ValidationExpression="^(?=.*[A-Za-z])(?=.*\d)(?=.*[$@$!%*#?&])[A-Za-z\d$@$!%*#?&]{8,}$"
ErrorMessage="Minimum 8 characters atleast 1 Alphabet, 1 Number and 1 Special Character"
ForeColor="Red" Display="Dynamic" /></td>
</tr>
<tr style="color: #000000">
<td align="right" class="nbdcontent" style="width: 9px; height:
17px"> </td>
<td align="left" class="nbdcontent" style="width: 141px; height:
17px" valign="top"> Password</td>
<td align="center" class="nbdcontent" style="height: 17px" valign="top">
:</td>
<td align="left" colspan="2" style="width: 120px; height: 17px" valign="top">
<asp:TextBox ID="txtpassword" runat="server" CssClass="mytextbox"
TextMode="Password" onchange="ToggleButton();" ></asp:TextBox>
</td>
<td align="left" class="nbdcontent" style="height:
17px" valign="top">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="txtpassword" ErrorMessage="Password Required !">*</asp:RequiredFieldValidator>
</td>
<td align="center" class="nbdcontent" style="width: 13px; height:
17px" valign="top"> </td>
<td style="width: 100px; height: 17px" valign="top">
</td>
<td style="width: 100px; height: 17px"> </td>
</tr>
<tr style="color: #000000">
<td align="right" class="nbdcontent" style="width: 9px; height:
17px"> </td>
<td align="left" class="nbdcontent" style="width: 141px; height:
17px" valign="top"> </td>
<td align="center" class="nbdcontent" style="height: 17px" valign="top">
</td>
<td align="left" colspan="6" style="height: 17px" valign="top">
<asp:CompareValidator ID="CompareValidator1" runat="server"
ControlToCompare="txtpassword" ControlToValidate="txtConfirmpassword"
ErrorMessage="Confirmed Password did not match"></asp:CompareValidator>
</td>
</tr>
<tr style="color: #000000">
<td align="right" class="nbdcontent" style="width: 9px; height:
17px"> </td>
<td align="left" class="nbdcontent" style="width: 141px; height:
17px" valign="top"> Password Confirmed</td>
<td align="center" class="nbdcontent" style="height: 17px" valign="top">
:</td>
<td align="left" colspan="2" style="width: 120px; height: 17px" valign="top">
<asp:TextBox ID="txtConfirmpassword" runat="server" CssClass="mytextbox"
TextMode="Password" onchange="ToggleButton();" ></asp:TextBox>
</td>
<td align="left" class="nbdcontent" style="height:
17px" valign="top">
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
ControlToValidate="txtConfirmpassword"
ErrorMessage="Confirmed Password Required !">*</asp:RequiredFieldValidator>
</td>
<td align="center" class="nbdcontent" style="width: 13px; height:
17px" valign="top">
</td>
<td style="width: 100px; height: 17px" valign="top">
</td>
<td style="width: 100px; height: 17px"> </td>
</tr>
<tr style="color: #000000">
<td align="right" class="nbdcontent" style="width: 9px; height:
17px"> </td>
<td align="right" class="nbdcontent" style="width: 141px; height:
17px" valign="top"> </td>
<td align="center" class="nbdcontent" style="height: 17px" valign="top">
</td>
<td align="left" colspan="2" style="width: 120px; height: 17px" valign="top">
<asp:Button ID="Button1" runat="server" onclick="Button1_Click"
Text="Submit" />
</td>
<td align="left" class="nbdcontent" style="height:
17px" valign="top"> </td>
<td align="center" class="nbdcontent" style="width: 13px; height:
17px" valign="top"> </td>
<td style="width: 100px; height: 17px" valign="top">
</td>
<td style="width: 100px; height: 17px"> </td>
</tr>
<tr>
<td style="width: 9px; height: 19px;" class="nbdcontent"> </td>
<td style="width: 141px; height: 19px;" class="nbdcontent" valign="top">
</td>
<td style="height: 19px;" align="center" class="nbdcontent" valign="top">
</td>
<td style="height: 19px;" valign="top" colspan="6">
<asp:RegularExpressionValidator ID="Regex3" runat="server" ControlToValidate="txtConfirmpassword"
ValidationExpression="^(?=.*[A-Za-z])(?=.*\d)(?=.*[$@$!%*#?&])[A-Za-z\d$@$!%*#?&]{8,}$"
ErrorMessage="Minimum 8 characters atleast 1 Alphabet, 1 Number and 1 Special Character"
ForeColor="Red" Display="Dynamic" /></td>
</tr>
<tr style="color: #7f6a63">
<td align="left" class="nbdcontent" nowrap="nowrap" style="width:
9px; height: 18px"
valign="top"> </td>
<td align="left" class="nbdcontent" nowrap="nowrap" style="width:
141px; height: 18px"
valign="top">
</td>
<td align="center" class="nbdcontent" style="height: 18px"
valign="top">
</td>
<td align="left" style="height: 18px" valign="top">
</td>
<td align="left" style="height: 18px" valign="top"> </td>
<td align="left" class="nbdcontent" nowrap="nowrap"
style="height: 18px"
valign="top"> </td>
<td align="center" class="nbdcontent" style="width: 13px; height:
18px" valign="top">
</td>
<td align="left" valign="top" style="height: 18px">
</td>
<td style="width: 100px; height: 18px">
</td>
</tr>
<tr style="color: #7f6a63">
<td align="left" class="nbdcontent" nowrap="nowrap" style="width:
9px; height: 18px"
valign="top"> </td>
<td align="left" class="nbdcontent" nowrap="nowrap" style="width:
141px; height: 18px"
valign="top">
</td>
<td align="center" class="nbdcontent" style="height: 18px"
valign="top">
</td>
<td align="left" style="height: 18px" valign="top">
</td>
<td align="left" style="height: 18px" valign="top"> </td>
<td align="left" class="nbdcontent" nowrap="nowrap"
style="height: 18px"
valign="top"> </td>
<td align="center" class="nbdcontent" style="width: 13px; height:
18px" valign="top">
</td>
<td align="left" valign="top" style="height: 18px">
</td>
<td style="width: 100px; height: 18px">
</td>
</tr>
<tr style="color: #7f6a63">
<td align="left" class="nbdcontent" nowrap="nowrap" style="width:
9px; height: 18px"
valign="top"> </td>
<td align="left" class="nbdcontent" nowrap="nowrap" style="width:
141px; height: 18px"
valign="top">
</td>
<td align="center" class="nbdcontent" style="height: 18px"
valign="top">
</td>
<td align="left" valign="top" colspan="6" rowspan="2">
<asp:ValidationSummary ID="ValidationSummary1" runat="server"
ShowMessageBox="True" ShowSummary="False" />
</td>
</tr>
<tr style="color: #7f6a63">
<td align="left" class="nbdcontent" nowrap="nowrap" style="width:
9px; height: 18px"
valign="top"> </td>
<td align="left" class="nbdcontent" nowrap="nowrap" style="width:
141px; height: 18px"
valign="top">
</td>
<td align="center" class="nbdcontent" style="height: 18px"
valign="top">
</td>
</tr>
</table>
</td>
</tr>
</table></pre>
|
|
|
|
|
Wrong forum - this belongs in the ASP.net one please.
Also please format your code when you do post there (highlight it and click "code" just above the message text area. The other thing you could do is to just include the relevant markup please. It is unlikely that people are going to spend time reading a large-ish lump of code even to find the relevant bits. If you do both these things, you are much more likely to get help.
Alberto Brandolini: The amount of energy necessary to refute bullshit is an order of magnitude bigger than to produce it.
|
|
|
|
|
Dumping code, asking people to fix it
Download a working example and look for differences with your code.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
please let me know where I did wrong? so that I can rewrite it.
|
|
|
|
|
You dumped a load of unformatted HTML with no indication of where your error may be. And this forum is for C# questions.
|
|
|
|
|
If you take a look at my answer, I've already told you:
1. Put it in the ASP.NET forumn -this is the C'# forum
2. Only include the relevant code, not the whole markup
3. Format the code so people can read it.
Alberto Brandolini: The amount of energy necessary to refute bullshit is an order of magnitude bigger than to produce it.
|
|
|
|
|
I have a problem that is doing my head in.
I want to iterate through the local PC folders, including directories, and calculate a numbering system against each folder in the file system hierarchy.
The root folders should calculate as 1,2,3 etc.
If there were three sub-folders in folder one the calculated numbers should be:
1.1, 1.2,1.3
If there were three sub-folders in the sub-folder above then the calculated numbers should be:
1.1.1, 1.1.2, 1.1.3
If there were three sub-folders in folder two (a root folder) the calculated numbers should be:
2.1, 2.2, 2.3
Or expressed in another way:
1 Root Folder
1.1 Root Sub Folder 1
1.1.1 Sub Folder
1.1.2 Sub Folder
1.2 Root Sub Folder 2
1.2.1 List item
1.2.2 List item
etc. etc.
This logic should then be applied to all folders and sub-folders.
Output Example
1.1.1 | "c:\Root\Folder1\Folder1\"
What I have so far appears to work ok in some situations but can fail in other situations:
private string rootpath = @"C:\FolderHierarchy\";
private string FolderSequenceCountBase = "";
private int CurrentRootPathCount = 0;
private int Counter = 0;
private void CalculateFolderHierarchyNumbers()
{
string[] Dirs = Directory.GetDirectories(rootpath, "*.*", SearchOption.TopDirectoryOnly);
for (int i = 0; i < Dirs.Count(); i++)
{
FolderSequenceCountBase = (i + 1).ToString();
CurrentRootPathCount = i + 1;
Console.WriteLine("Processed folder '{0}'.", Dirs[i] + " = " + (i + 1));
GetSubDirs(Dirs[i]);
}
}
private void GetSubDirs(string item)
{
string[] SubDirs = Directory.GetDirectories(item, "*.*", SearchOption.TopDirectoryOnly);
foreach (var DirPath in SubDirs)
{
Counter += 1;
Console.WriteLine("Processed folder '{0}'.", DirPath + " = " + FolderSequenceCountBase + "." + Counter);
}
Counter = 0;
foreach (var DirPath in SubDirs)
{
FolderSequenceCountBase += ".1";
GetSubDirs(DirPath);
}
}
Hope this is clear.
Thanks
Rick
|
|
|
|
|
It's questions like this that keep women from staying in IT.
|
|
|
|
|
At first I was like wtf?!
Then I was like LOL...
|
|
|
|
|
The way you process the sub folders the order will be different from the example list you posted. I would uses the recursive call directly after each processed folder and pass the relevant values. Also Counter should not be global but local to the function. It would then look something like this.
private void GetSubDirs(string parentFolder, string parentNumber)
{
string[] SubDirs = Directory.GetDirectories(parentFolder, "*.*", SearchOption.TopDirectoryOnly);
for (int i = 0; i < SubDirs.Count(); i++)
{
string curNumber = String.Format("{0}.{1}", parentNumber, i + 1);
GetSubDirs(SubDirs[i], curNumber);
}
}
I leave it to you how to call the recursive function from the outside.
The good thing about pessimism is, that you are always either right or pleasently surprised.
|
|
|
|
|
Freak30 wrote: i < SubDirs.Count()
No need to use the Count extension method on an array - just use the Length property.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
+5 great answer.
« I had therefore to remove knowledge, in order to make room for belief » Immanuel Kant
|
|
|
|
|
I worked on this this morning (GMT +7); when I came back home later I saw that Freak30 had posted a good answer, which I am up-voting.
I'll go ahead and post this since it's slightly different from Freak30's useful code:
private string[] SubDirs;
private void GetSubDirs(string currentDirectory, int counter, string currentDirectoryName)
{
DirectoryInfo di = new DirectoryInfo(item);
if (di.Exists)
{
if (di.Attributes.HasFlag(FileAttributes.Hidden)) return;
try
{
SubDirs = Directory.GetDirectories(item, "*.*", SearchOption.TopDirectoryOnly);
foreach(string subDir in SubDirs)
{
counter++;
string iName = sName + "." + counter.ToString();
Console.WriteLine("{0} Processed Sub-Folder {1}", iName, subDir);
GetSubDirs(subDir, 0, iName);
}
}
catch (Exception)
{
return;
}
}
else
{
return;
}
} Note this version takes three parameters for the recursive directory-walk method: the current directory to parse's filepath, an integer for the internal counter which is always passed with the value #0, and the current directory's name.
« I had therefore to remove knowledge, in order to make room for belief » Immanuel Kant
|
|
|
|
|
This is what I'm trying to do:
Im opening Excel workbook
using (SpreadsheetDocument myDoc = SpreadsheetDocument.Open(filepath, false))
{
WorkbookPart wbPart = myDoc.WorkbookPart;
//myDoc.WorkbookPart.VbaProjectPart
Sheet mySheet = wbPart.Workbook.Descendants<sheet>().
Where(s => s.Name == sheetName).FirstOrDefault();
if (mySheet == null) //sheet bestaat niet
{
throw new ArgumentException("sheetName");
}
WorksheetPart wsPart = (WorksheetPart)(wbPart.GetPartById(mySheet.Id));
Worksheet worksheet = wsPart.Worksheet;
and then a lot of stuff is going on, I'm making list of all the functions, checking formulas, saving errors, not really important.
What I want to do next is to call a VBA code from this workbook and be able to read is as text and use some string manipulation stuff to find some thing out (like how long are the used functions or find comments, whatever).
Someone an idea how make this possible? I would be really greatfull..
|
|
|
|
|
Which version of the Excel-file? If it is an XLSX, you can rename it to a zip and extract its contents.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Look at the WorkBook's VBProject.VBComponents objects
=========================================================
I'm an optoholic - my glass is always half full of vodka.
=========================================================
|
|
|
|
|
Bonjour
Je programme par Visual Studio 11.0 en C#, je ne suis pas un professionnel.
Je cherche un code simple pour recevoir des mails.
J'ai exploré internet, et tous les articles à ce sujet; j'ai compris qu'il faut installer une "librairy" spéciale POP3 non fournie, mais aucune, qui marche, n'est proposée.
Quelqu'un aurait-il une "dll" ou autre, accompagnée d'un code source qui fonctionne simplement, avec explications
en français ?
Merci d'avance.
Cordialement.
JG
|
|
|
|
|
Maybe use English instead. More people will understand your question.
|
|
|
|
|
Hello
I program Visual Studio 11.0 in c#, I am not a professional.
Looking for a simple code to receive mails.
I explored internet, and all the articles about this; I understood that need to install a "" library "" special not supplied POP3, but none that works, is proposed.
Would someone have one 'dll' or another, accompanied by a source code that works simply, with explanations
in french?
Thanks in advance.
Kind regards.
JG
|
|
|
|
|
|
Mailkit[^] is an excellent .Net library that covers emailing.
Hope this helps.
Everyone dies - but not everyone lives
modified 25-Sep-14 8:35am.
|
|
|
|
|
The hamsters have eaten your link:
https://github.com/jstedfast/MailKit[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Thanks for that - fixed ! Damn Hamsters !
Everyone dies - but not everyone lives
|
|
|
|